Only send user IDs to matomo when configured to do so
This commit is contained in:
parent
650ecfa7df
commit
007e1b26cd
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ if (OSM.MATOMO) {
|
||||||
success: function () {
|
success: function () {
|
||||||
matomoTracker = Matomo.getTracker(base + "matomo.php", OSM.MATOMO.site);
|
matomoTracker = Matomo.getTracker(base + "matomo.php", OSM.MATOMO.site);
|
||||||
|
|
||||||
if (OSM.user) {
|
if (OSM.user && OSM.MATOMO.set_user) {
|
||||||
matomoTracker.setUserId(OSM.user.toString());
|
matomoTracker.setUserId(OSM.user.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue