From 4fd961883a152e9d5c27c5da0a847c5368e2c1a0 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 6 Mar 2017 13:10:18 +0000 Subject: Fix telemtry IDs. (#5649) --- webapp/actions/global_actions.jsx | 14 +++++++++++++- webapp/client/browser_web_client.jsx | 3 ++- webapp/components/root.jsx | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx index 90805d057..c4b29a231 100644 --- a/webapp/actions/global_actions.jsx +++ b/webapp/actions/global_actions.jsx @@ -98,7 +98,19 @@ export function emitInitialLoad(callback) { global.window.mm_license = data.license_cfg; 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); diff --git a/webapp/client/browser_web_client.jsx b/webapp/client/browser_web_client.jsx index ef543ca34..8f32f4e26 100644 --- a/webapp/client/browser_web_client.jsx +++ b/webapp/client/browser_web_client.jsx @@ -43,7 +43,8 @@ class WebClientClass extends Client { search: '', title: '', url: '' - } + }, + anonymousId: '00000000000000000000000000' }; global.window.analytics.track('event', properties, options); } diff --git a/webapp/components/root.jsx b/webapp/components/root.jsx index 4e7c19452..06a22f395 100644 --- a/webapp/components/root.jsx +++ b/webapp/components/root.jsx @@ -46,6 +46,7 @@ export default class Root extends React.Component { context: { ip: '0.0.0.0' }, + anonymousId: '00000000000000000000000000' }); }}(); } -- cgit v1.2.3-1-g7c22