From 007e1b26cd293686ab6236750db41bd5fb1cf5a1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 4 Dec 2022 18:54:07 +0000 Subject: [PATCH] Only send user IDs to matomo when configured to do so --- app/assets/javascripts/matomo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/matomo.js b/app/assets/javascripts/matomo.js index 34af54ce7..f259b1358 100644 --- a/app/assets/javascripts/matomo.js +++ b/app/assets/javascripts/matomo.js @@ -10,7 +10,7 @@ if (OSM.MATOMO) { success: function () { matomoTracker = Matomo.getTracker(base + "matomo.php", OSM.MATOMO.site); - if (OSM.user) { + if (OSM.user && OSM.MATOMO.set_user) { matomoTracker.setUserId(OSM.user.toString()); } -- 2.39.5