Fix telemtry IDs. (#5649)

This commit is contained in:
George Goldberg
2017-03-06 13:10:18 +00:00
committed by Joram Wilander
parent 6e3e5b8aea
commit 4fd961883a
3 changed files with 16 additions and 2 deletions

View File

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

View File

@@ -43,7 +43,8 @@ class WebClientClass extends Client {
search: '',
title: '',
url: ''
}
},
anonymousId: '00000000000000000000000000'
};
global.window.analytics.track('event', properties, options);
}

View File

@@ -46,6 +46,7 @@ export default class Root extends React.Component {
context: {
ip: '0.0.0.0'
},
anonymousId: '00000000000000000000000000'
});
}}();
}