]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/piwik.js
Remove require_terms_agreed configuration option
[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();