Merge pull request #5 from CraigyDavi/piwik

Add Piwik analytics script
master
Calinou 2015-08-31 11:22:50 +02:00
commit 17903a8b87
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,17 @@
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://inchra-stats.minetest.net/" : "http://inchra-stats.minetest.net/");
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>
</head>
<body>