dalexander Posted May 25, 2017 Share Posted May 25, 2017 I have setup Piwik analytics with my Prestashop website and tried adding the code to the Prestashop theme's header and saved it but it's not showing visitors in Piwki.Am I putting the below code in the right place (Prestashop Theme Header.tpl)?Piwik Code:<!-- Piwik --><script type="text/javascript">var _paq = _paq || [];/* tracker methods like "setCustomDimension" should be called before "trackPageView" */_paq.push(["setCookieDomain", "*.vintacast.com"]);_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);(function() {var u="//thealexandercompany.net/analytics/";_paq.push(['setTrackerUrl', u+'piwik.php']);_paq.push(['setSiteId', '5']);var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);})();</script><noscript><p><img src="//thealexandercompany.net/analytics/piwik.php?idsite=5&rec=1" style="border:0;" alt="" /></p></noscript><!-- End Piwik Code -->Thanks! Link to comment Share on other sites More sharing options...
dalexander Posted May 25, 2017 Author Share Posted May 25, 2017 I tried adding the Literal tag as I saw the thread below: https://www.prestashop.com/forums/topic/267936-solved-where-to-add-piwik-code/It is still not working. In that thread, it said to add it in the footer but Piwik says I need to add it before the closing head tag.PLEASE HELP!Thanks! Link to comment Share on other sites More sharing options...
El Patron Posted May 25, 2017 Share Posted May 25, 2017 here is free module that may work the way work for your situtation https://dh42.com/free-prestashop-modules/prestashop-piwik-statistics/ Link to comment Share on other sites More sharing options...
dalexander Posted May 25, 2017 Author Share Posted May 25, 2017 Thanks, I tried using the plugin but my Piwik is still not showing visitors on the website. Link to comment Share on other sites More sharing options...
mausbaus Posted March 3, 2019 Share Posted March 3, 2019 On 5/25/2017 at 2:32 PM, El Patron said: here is free module that may work the way work for your situationhttps://dh42.com/free-prestashop-modules/prestashop-piwik-statistics/ Worth mentioning the module is not working in 1.7 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