Hello,
first of all i'm using Prestashop 1.7.
I'm using paid SEO from google adword and I would like to have more informations about where the customer is coming from when he uses the contact form.
I found an interesting setting to do that in google adwords called "URL options", basically it's gonna add parameters to the link the paid ad is pointing to.
For example when ad is pointing to the url:
example.com/some_category/259-some_product.html
when clicking the ad google is going to add parameters like this:
example.com/some_category/259-some_product.html?Google_ad=1&adgroupid=21
So i'm wondering how I could make it so these parameters are copied in the URL of every pages the customer is going, so when he fills in the contact form I can just extract those parameters and add them to the mail body.
Do I have to override and modify almost every functions in the Link.php class? is there another way?
Thanks!