]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/piwik.js
Merge remote-tracking branch 'upstream/pull/2462'
[rails.git] / app / assets / javascripts / piwik.js
index d327296f63621e97aacecd7e4b7bdbd043134540..5353a99ac199609cd763903e953083625501cdc0 100644 (file)
@@ -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"));
         });