]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/piwik.js
Merge remote-tracking branch 'openstreetmap/pull/954'
[rails.git] / app / assets / javascripts / piwik.js
index a48e903add43ee638029805e80323307b20fc596..19b5619a2558cef99ab7deec512841dd487d9eff 100644 (file)
@@ -10,6 +10,10 @@ if (OSM.PIWIK) {
       success: function () {
         piwikTracker = Piwik.getTracker(base + "piwik.php", OSM.PIWIK.site);
       
+        if (OSM.user) {
+          piwikTracker.setUserId(OSM.user.toString());
+        }
+
         piwikTracker.trackPageView();
         piwikTracker.enableLinkTracking();