]> _ Git - fluidbook-html5.git/commitdiff
wip #6889 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 30 Apr 2024 16:51:49 +0000 (18:51 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 30 Apr 2024 16:51:49 +0000 (18:51 +0200)
js/libs/fluidbook/fluidbook.stats.js

index 6335a5d7c6f4096a8a4b924bbdcccd5ede0cddd0..67c3f6deb58fb4773daa1819ea11fec2817a547b 100644 (file)
@@ -48,6 +48,9 @@ FluidbookStats.prototype = {
         if (this.matomoServers.length > 0 && !this.hasMatomoTagManager) {
             let u = 'https://' + this.matomoServers[0].server + '/';
             window._paq = window._paq || [];
+            if (MATOMO_USER_ID !== undefined) {
+                window._paq.push(['setUserId', MATOMO_USER_ID]);
+            }
             window._paq.push(["setDoNotTrack", true]);
             window._paq.push(['enableHeartBeatTimer']);
             window._paq.push(['enableLinkTracking']);