Generated tracking code incorrect
-
I’m running multiple sites in a WP multisite setup. Upgrading to the latest wp-piwik broke the generation of the correct tracking code for my sites. I noticed 2 things:
1. the piwik url no longer contains my virtual hostname, but the IP-number of my server;
2. the setSiteId points to the wrong site;Here’s what wp-piwik generated for me:
<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(['setRequestMethod', 'POST']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://123.123.123.123/" _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', 2]); 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 -->
Anyone aware of this or having the same problem?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Generated tracking code incorrect’ is closed to new replies.