mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix telemtry IDs. (#5649)
This commit is contained in:
committed by
Joram Wilander
parent
6e3e5b8aea
commit
4fd961883a
@@ -98,7 +98,19 @@ export function emitInitialLoad(callback) {
|
|||||||
global.window.mm_license = data.license_cfg;
|
global.window.mm_license = data.license_cfg;
|
||||||
|
|
||||||
if (global.window && global.window.analytics) {
|
if (global.window && global.window.analytics) {
|
||||||
global.window.analytics.identify(global.window.mm_config.DiagnosticId);
|
global.window.analytics.identify(global.window.mm_config.DiagnosticId, {}, {
|
||||||
|
context: {
|
||||||
|
ip: '0.0.0.0'
|
||||||
|
},
|
||||||
|
page: {
|
||||||
|
path: '',
|
||||||
|
referrer: '',
|
||||||
|
search: '',
|
||||||
|
title: '',
|
||||||
|
url: ''
|
||||||
|
},
|
||||||
|
anonymousId: '00000000000000000000000000'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
UserStore.setNoAccounts(data.no_accounts);
|
UserStore.setNoAccounts(data.no_accounts);
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ class WebClientClass extends Client {
|
|||||||
search: '',
|
search: '',
|
||||||
title: '',
|
title: '',
|
||||||
url: ''
|
url: ''
|
||||||
}
|
},
|
||||||
|
anonymousId: '00000000000000000000000000'
|
||||||
};
|
};
|
||||||
global.window.analytics.track('event', properties, options);
|
global.window.analytics.track('event', properties, options);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ export default class Root extends React.Component {
|
|||||||
context: {
|
context: {
|
||||||
ip: '0.0.0.0'
|
ip: '0.0.0.0'
|
||||||
},
|
},
|
||||||
|
anonymousId: '00000000000000000000000000'
|
||||||
});
|
});
|
||||||
}}();
|
}}();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user