X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b394a4d309794d719ebe5e77fc69d2a8411aa161..f906373be251d79988335e96e8046c7f001c613b:/app/assets/javascripts/piwik.js diff --git a/app/assets/javascripts/piwik.js b/app/assets/javascripts/piwik.js index a48e903ad..19b5619a2 100644 --- a/app/assets/javascripts/piwik.js +++ b/app/assets/javascripts/piwik.js @@ -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();