Add piwik analytics script

Closes #2
master
Craig Davison 2015-08-30 22:27:34 +01:00
parent cb6f429453
commit ec29de89ce
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>