Is there a way to track visitors via piwik.org?
I found a old thread on subsonic where Madevil answered a question regarding google analytics .
http://forum.subsonic.org/forum/viewtopic.php?t=10117
I think this is a very similar case and I hope one can just change code for google analytics by the code for piwik.org.
Is this true?
Do I have to change the underlying code?
Where do I have to insert the code in madsonic?
Code: Select all
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//192.168.240.33/";
_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.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//192.168.240.33/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
Guy