Jump to content

Goolge analytics "Demographics and Interest Reports" code update.


Recommended Posts

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

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

  • 1 month later...

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

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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 by niravaseem (see edit history)
Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...