Jump to content

Edit History

Greg077

Greg077

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 :)

 

Greg077

Greg077

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 :)

 

×
×
  • Create New...