Skip to content

Commit

Permalink
Add stats for 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hofstaedtler committed Dec 8, 2011
1 parent 89929fc commit 6536557
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions errors/404.html
Expand Up @@ -51,5 +51,20 @@ <h2>Sorry, the requested page couldn't be found!</h2>
href="http://wiki.grml.org/">grml-wiki</a>.</p>

</div>

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stats.grml.org/piwik/" : "http://stats.grml.org/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.setDocumentTitle('404/URL = ' + String(document.location.pathname+document.location.search).replace(/\//g,"%2f") + '/From = ' + String(document.referrer).replace(/\//g,"%2f"));
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://stats.grml.org/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->

</body>
</html>

0 comments on commit 6536557

Please sign in to comment.