Stringify user ID
authorTom Hughes <tom@compton.nu>
Wed, 12 Nov 2014 09:44:21 +0000 (09:44 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 12 Nov 2014 09:44:21 +0000 (09:44 +0000)
app/assets/javascripts/piwik.js

index d327296f63621e97aacecd7e4b7bdbd043134540..19b5619a2558cef99ab7deec512841dd487d9eff 100644 (file)
@@ -11,7 +11,7 @@ if (OSM.PIWIK) {
         piwikTracker = Piwik.getTracker(base + "piwik.php", OSM.PIWIK.site);
       
         if (OSM.user) {
-          piwikTracker.setUserId(OSM.user);
+          piwikTracker.setUserId(OSM.user.toString());
         }
 
         piwikTracker.trackPageView();