Fix Piwik tracking

master
Calinou 2015-08-31 17:56:27 +02:00
parent 6f49bb4d7d
commit ae97548b91
1 changed files with 11 additions and 9 deletions

View File

@ -27,16 +27,18 @@
<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 ) {}
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u="//inchra-stats.minetest.net/";
_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="//inchra-stats.minetest.net/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
</head>
<body>