]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/_piwik.html.erb
Replace request.request_uri with request.fullpath
[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 <% if flash[:piwik_goal] -%>
11 piwikTracker.trackGoal(<%= flash[:piwik_goal] %>);
12 <% end -%>
13 } catch( err ) {}
14 </script><noscript><p><img src="http://<%= PIWIK_LOCATION %>/piwik.php?idsite=<%= PIWIK_SITE %>" style="border:0" alt="" /></p></noscript>
15 <!-- End Piwik Tracking Code -->