Permalink
Browse files

Add piwik analytics script

  • Loading branch information...
Yiannis Tsiouris
Yiannis Tsiouris committed Mar 30, 2012
1 parent 7fbb9af commit 4c7243d9054e11348e45b9840ac98fe5c42d6643
Showing with 18 additions and 0 deletions.
  1. +18 −0 templates/default.html
View
@@ -32,6 +32,24 @@
})();
</script>
+ <!-- Piwik -->
+ <script type="text/javascript">
+ var pkBaseURL = (("https:" == document.location.protocol) ?
+ "https://fozzie.foss.ntua.gr:1780/piwik/" :
+ "http://fozzie.foss.ntua.gr:1780/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://fozzie.foss.ntua.gr:1780/piwik/piwik.php?idsite=1"
+ style="border:0" alt="" /></p></noscript>
+ <!-- End Piwik Tracking Code -->
</head>
<body>
<!-- Header -->

0 comments on commit 4c7243d

Please sign in to comment.