PrestaShop / ganalytics

Gain clear insights into important metrics about your customers, using Google Analytics in PrestaShop 1.6.
10 stars 44 forks source link

no http response #97

Open octaviancernat opened 8 years ago

octaviancernat commented 8 years ago

Hello,

I'm having trouble making this module work on Prestashop 1.6.1.4 fresh install.

The module it's not recording anything, no mather on the type of page. The tag assistant shows there is no http response. No adblock on the browser, no js errors. I've managed to make it work only by adding "ga('send', 'pageview');" to the code in gabalytics.php, but if it wasn't there I presume it shouldn't be.

So do you have any ideea could be the problem?

Mbertu commented 8 years ago

Same problem here, Prestyashop 1.6.1.6 and plugin version 2.3.4 sems to be an initialization error on the analytics code because if you put two tracking code, once from the plugin and the second one hardcoded in the template the error disappear. I'll try to customize the module to find the exact problem.

Mbertu commented 8 years ago

Ok, solved for me. It was an error in the ecommerce template. I've found that the "ga('send', 'pageview');" is attached in the footer by the module, so check if the $HOOK_FOOTER is correcly included in your footer.tpl file.