]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/_piwik.html.erb
Make spam scoring work with new rich text system
[rails.git] / app / views / layouts / _piwik.html.erb
1 <script type="text/javascript">
2 var _paq = _paq || [];
3 (function(){ var u="<%= request.protocol %><%= PIWIK_LOCATION %>/";
4 _paq.push(['setSiteId', <%= PIWIK_SITE %>]);
5 _paq.push(['setTrackerUrl', u+'piwik.php']);
6 _paq.push(['trackPageView']);
7 _paq.push(['enableLinkTracking']);
8 <% if flash[:piwik_goal] -%>
9 _paq.push(['setSiteId', <%= flash[:piwik_goal] %>);
10 <% end -%>
11 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js';
12 s.parentNode.insertBefore(g,s); })();
13 </script>
14 <noscript><p><img src="<%= request.protocol %><%= PIWIK_LOCATION %>/piwik.php?idsite=<%= PIWIK_SITE %>" style="border:0" alt="" /></p></noscript>