From 0039b948325ad9caa0bbaa6ec47ddd345cbf6ba2 Mon Sep 17 00:00:00 2001 From: jessop Date: Mon, 6 Jul 2020 10:18:01 -0400 Subject: [PATCH] add userid for matomo --- ui/analytics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/analytics.js b/ui/analytics.js index c5f0d967a..5bec8710a 100644 --- a/ui/analytics.js +++ b/ui/analytics.js @@ -93,8 +93,8 @@ const analytics: Analytics = { } }, setUser: userId => { - // SEND USERID TO MATOMO? if (internalAnalyticsEnabled && userId) { + window._paq.push(['setUserId', String(userId)]); // @if TARGET='app' Native.getAppVersionInfo().then(({ localVersion }) => { sendMatomoEvent('Version', 'Desktop-Version', localVersion);