Smiles Posted August 7, 2015 Share Posted August 7, 2015 I could not get the new analytics module working in 1.6.1.0 . I read a lot of topics but nothing worked. Now i'm back on the old 1.4 module. As advised in this topic. https://www.prestashop.com/forums/topic/386446-google-analytics-202-not-tracking-after-update/page-3 works perfectly until now. But I want to enable remarketing. In the latest module I fixed this with the following. I added: ga(\'require\', \'displayfeatures\'); to the script ganalytics.php <script type="text/javascript"> (window.gaDevIds=window.gaDevIds||[]).push(\'d6YPbH\'); (function(i,s,o,g,r,a,m){i[\'GoogleAnalyticsObject\']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,\'script\',\'//www.google-analytics.com/analytics.js\',\'ga\'); ga(\'create\', \''.Tools::safeOutput(Configuration::get('GA_ACCOUNT_ID')).'\', \'auto\'); ga(\'require\', \'ec\'); ga(\'require\', \'displayfeatures\'); '.($back_office ? 'ga(\'set\', \'nonInteraction\', true);' : '').' </script>' Now i have the old file but how can i add it? See attachment... I hope someone can help me as the new version is not to good.... ganalytics.php 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