add userid for matomo

This commit is contained in:
jessop 2020-07-06 10:18:01 -04:00 committed by Sean Yesmunt
parent 7e8a8dbdec
commit 0039b94832

View file

@ -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);