OK - fixed this on master branch: https://github.com/piwik/piwik/commit/db60c80d8e8603b810167116598ddd249647eaa5 and https://github.com/piwik/piwik/commit/e6e1b80e708ba112401b9fc2ef0f99cba115cd1e
You should use the following tracking code:
You should use the following tracking code:
<script type="text/javascript"> var _paq = _paq || []; _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.example.com/piwik/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "1"]); 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> <noscript> <img src="http://www.example.com/piwik/piwik.php?idsite=1&rec=1" style="border:0" alt="" /> </noscript>