WP-Piwik generated Tracking Script no longer works
-
Hello WordPress Support Team!
Recently I updated Piwik to 2.0.3 (It was a jump from 1.X I think).
Since then the Tracking Code JavaScript that the WP-Piwik Plug-In genereates is no longer identical to the Tracking Code JavaScript that PIWIK generates. What’s worse is, that the Tracking Code JavaScript that WP-Piwik Plug-In generates no longe works! Meaning nothing gets counted in Piwik. So I had to disable the “Insert Trackingcode” Option in the WP-Piwik Plug-In, then manually insert the code generated from piwik into the footer of all my sites.We are using WP-Piwik 0.9.9.8
here is an example of old code:
<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; {$options} _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://webanalyse.rudolf-mueller.de/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', 8]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Piwik Code -->here is an example of new code:
<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://webanalyse.rudolf-mueller.de/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "8"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Piwik Code -->Thanks for your support
The topic ‘WP-Piwik generated Tracking Script no longer works’ is closed to new replies.