Get user consent information using url sent via sms

I am working on a mobile app using ionic framework. In this app we send sms to users and what I would like to do is to send a url via this sms. When a user clicks on the user get information like accept or reject of certain offer.

I have been googling on this and there were suggestions for using google analytics am not sure if this is the best way.

Am not sure if the information i provided is enough pretty new to ionic forum. Please do let me know if anymore details are needed on this. Any kind of suggestions are welcome.

Thanks in advance.