stoosh Posted December 2, 2013 Share Posted December 2, 2013 I would like to take avantage of Googles "Demographics and Interest Reports" but in order to do this google analytics states that I need to update the tracking code. Can anyone show/tell me how to do this? Thanks Stoosh Link to comment Share on other sites More sharing options...
El Patron Posted December 2, 2013 Share Posted December 2, 2013 I would like to take avantage of Googles "Demographics and Interest Reports" but in order to do this google analytics states that I need to update the tracking code. Can anyone show/tell me how to do this? Thanks Stoosh what version of prestashop and analytics module are you using? Link to comment Share on other sites More sharing options...
stoosh Posted December 2, 2013 Author Share Posted December 2, 2013 what version of prestashop and analytics module are you using? Thanks for your reply, I'm using Prestashop 1.5.6.0 and Google analytics module version 1.4.3. Link to comment Share on other sites More sharing options...
El Patron Posted December 2, 2013 Share Posted December 2, 2013 the included code by ganalytics can be found in modules/ganalytics/header.tpl make sure to back up your header.tpl file before modifying scroll to the bottom... Link to comment Share on other sites More sharing options...
stoosh Posted December 2, 2013 Author Share Posted December 2, 2013 Thank you for your help, I have managed to make the necessary changes successfully. Much appreciated. Link to comment Share on other sites More sharing options...
atcom Posted January 18, 2014 Share Posted January 18, 2014 Hi, I try to change the code in header.tpl ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; with ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; then in google analystic I click on the button "Validation code tracking" but doesn't work could you help me? I have prestashop 1.5.6.1 with the google analystic 1.5 module Regards Andrea 1 Link to comment Share on other sites More sharing options...
niravaseem Posted February 5, 2014 Share Posted February 5, 2014 (edited) Hi, I try to change the code in header.tpl ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; with ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; then in google analystic I click on the button "Validation code tracking" but doesn't work could you help me? I have prestashop 1.5.6.1 with the google analystic 1.5 module Regards Andrea Hi, Both the lines of code are same that you have written above: Change this line ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; with this ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; Edited February 5, 2014 by niravaseem (see edit history) Link to comment Share on other sites More sharing options...
alex.killioglu Posted June 4, 2014 Share Posted June 4, 2014 Hi, I made the change but it didnt work. What else can I do to fix it? Best Regards Link to comment Share on other sites More sharing options...
Boni Satani Posted July 11, 2014 Share Posted July 11, 2014 Hi, I made the change but it didnt work. What else can I do to fix it? Best Regards Can you edit the GA code in the source code directly? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now