mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 09:45:10 +00:00
add userid for matomo
This commit is contained in:
parent
7e8a8dbdec
commit
0039b94832
1 changed files with 1 additions and 1 deletions
|
@ -93,8 +93,8 @@ const analytics: Analytics = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setUser: userId => {
|
setUser: userId => {
|
||||||
// SEND USERID TO MATOMO?
|
|
||||||
if (internalAnalyticsEnabled && userId) {
|
if (internalAnalyticsEnabled && userId) {
|
||||||
|
window._paq.push(['setUserId', String(userId)]);
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
Native.getAppVersionInfo().then(({ localVersion }) => {
|
Native.getAppVersionInfo().then(({ localVersion }) => {
|
||||||
sendMatomoEvent('Version', 'Desktop-Version', localVersion);
|
sendMatomoEvent('Version', 'Desktop-Version', localVersion);
|
||||||
|
|
Loading…
Add table
Reference in a new issue