]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/_piwik.html.erb
Merge branch 'master' into openstreetbugs
[rails.git] / app / views / layouts / _piwik.html.erb
1 <!-- Piwik -->
2 <script type="text/javascript">
3 var pkBaseURL = (("https:" == document.location.protocol) ? "https://<%= PIWIK_LOCATION %>/" : "http://<%= PIWIK_LOCATION %>/");
4 document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
5 </script><script type="text/javascript">
6 try {
7 var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", <%= PIWIK_SITE %>);
8 piwikTracker.trackPageView();
9 piwikTracker.enableLinkTracking();
10 } catch( err ) {}
11 </script><noscript><p><img src="http://<%= PIWIK_LOCATION %>/piwik.php?idsite=<%= PIWIK_SITE %>" style="border:0" alt="" /></p></noscript>
12 <!-- End Piwik Tracking Code -->