Jump to content

Advanced Integration with Google Analytics


Greg077

Recommended Posts

Hi all,

I am a new user of PrestaShop. I want to add a new option to my home page. I wonder, how I have to add code to register User Timings (https://developers.google.com/analytics/devguides/collection/analyticsjs/user-timings) and in which file I have to edit? I tried adding the following code to every index.tpl file:

{literal}
<script>
ga('send', {
  hitType: 'timing',
  timingCategory: 'JS Dependencies',
  timingVar: 'load',
  timingValue: 3549
});
</script>
{literal}

Unfortunately, my Google Analytics Debugger plugin does not get any signal from this code.

Maybe someone knows how to do resolve this problem :)

 

Edited by Greg077 (see edit history)
Link to comment
Share on other sites

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...