X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b394a4d309794d719ebe5e77fc69d2a8411aa161..2aca6920dc3488a381b275d21a31344da02029e6:/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();