Skip to content
Extraits de code Groupes Projets
Valider 0a37923f rédigé par mattab's avatar mattab
Parcourir les fichiers

Refs #3490 Display User ID in Real time map

parent 617b2e75
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -79,5 +79,6 @@ class UserCountryMap extends \Piwik\Plugin ...@@ -79,5 +79,6 @@ class UserCountryMap extends \Piwik\Plugin
{ {
$translationKeys[] = 'UserCountryMap_WithUnknownRegion'; $translationKeys[] = 'UserCountryMap_WithUnknownRegion';
$translationKeys[] = 'UserCountryMap_WithUnknownCity'; $translationKeys[] = 'UserCountryMap_WithUnknownCity';
$translationKeys[] = 'General_UserId';
} }
} }
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
'visitLocalTime', 'city', 'country', 'referrerType', 'referrerName', 'visitLocalTime', 'city', 'country', 'referrerType', 'referrerName',
'referrerTypeName', 'browserIcon', 'operatingSystemIcon', 'referrerTypeName', 'browserIcon', 'operatingSystemIcon',
'countryFlag', 'idVisit', 'actionDetails', 'continentCode', 'countryFlag', 'idVisit', 'actionDetails', 'continentCode',
'actions', 'searches', 'goalConversions', 'visitorId'].join(','), 'actions', 'searches', 'goalConversions', 'visitorId', 'userId'].join(','),
minTimestamp: firstRun ? -1 : lastTimestamp minTimestamp: firstRun ? -1 : lastTimestamp
}); });
} }
...@@ -214,6 +214,8 @@ ...@@ -214,6 +214,8 @@
return '<h3>' + (r.city ? r.city + ' / ' : '') + r.country + '</h3>' + return '<h3>' + (r.city ? r.city + ' / ' : '') + r.country + '</h3>' +
// icons // icons
ico(r.countryFlag) + ico(r.browserIcon) + ico(r.operatingSystemIcon) + '<br/>' + ico(r.countryFlag) + ico(r.browserIcon) + ico(r.operatingSystemIcon) + '<br/>' +
// User ID
(r.userId ? _pk_translate('General_UserId') + ':&nbsp;' + r.userId + '<br/>' : '') +
// last action // last action
(ad && ad.length && ad[ad.length - 1].pageTitle ? '<em>' + ad[ad.length - 1].pageTitle + '</em><br/>' : '') + (ad && ad.length && ad[ad.length - 1].pageTitle ? '<em>' + ad[ad.length - 1].pageTitle + '</em><br/>' : '') +
// time of visit // time of visit
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter