Skip to content

Instantly share code, notes, and snippets.

@Ollo
Created September 8, 2012 20:47
Show Gist options
  • Save Ollo/3679602 to your computer and use it in GitHub Desktop.
Save Ollo/3679602 to your computer and use it in GitHub Desktop.
piwik tracking code
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://ollomedia.com/piwik/" : "http://ollomedia.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script>
<noscript><p><img src="http://ollomedia.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment