X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3259bc7edecbcfc54eb70e3c0a1e07d6b582a46c..5db8031c237918a5339dcf54ee581afec492e6cb:/app/views/layouts/_piwik.html.erb diff --git a/app/views/layouts/_piwik.html.erb b/app/views/layouts/_piwik.html.erb index 59017e0b7..0b719932d 100644 --- a/app/views/layouts/_piwik.html.erb +++ b/app/views/layouts/_piwik.html.erb @@ -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 ) {}