X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/08a0fc90e371c20b3f78d25dc81440d7eb505a19..04dcea6f1fecf69893e6c3cb271396d817beaa87:/app/assets/javascripts/piwik.js?ds=inline diff --git a/app/assets/javascripts/piwik.js b/app/assets/javascripts/piwik.js index d327296f6..5353a99ac 100644 --- a/app/assets/javascripts/piwik.js +++ b/app/assets/javascripts/piwik.js @@ -9,14 +9,14 @@ if (OSM.PIWIK) { cache: true, success: function () { piwikTracker = Piwik.getTracker(base + "piwik.php", OSM.PIWIK.site); - + if (OSM.user) { - piwikTracker.setUserId(OSM.user); + piwikTracker.setUserId(OSM.user.toString()); } piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); - + $("meta[name=piwik-goal]").each(function () { piwikTracker.trackGoal($(this).attr("content")); });