]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_piwik.html.erb
Make sure all forms have the correct authenticity token
[rails.git] / app / views / layouts / _piwik.html.erb
index 59017e0b77d37744c639a5bd005a983b30457f18..0b719932d1caf004123e73db3f53a505e3d54d84 100644 (file)
@@ -7,6 +7,9 @@ try {
 var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", <%= PIWIK_SITE %>);
 piwikTracker.trackPageView();
 piwikTracker.enableLinkTracking();
+<% if flash[:piwik_goal] -%>
+piwikTracker.trackGoal(<%= flash[:piwik_goal] %>);
+<% end -%>
 } catch( err ) {}
 </script><noscript><p><img src="http://<%= PIWIK_LOCATION %>/piwik.php?idsite=<%= PIWIK_SITE %>" style="border:0" alt="" /></p></noscript>
 <!-- End Piwik Tracking Code -->