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