summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-03-06 13:10:18 +0000
committerJoram Wilander <jwawilander@gmail.com>2017-03-06 08:10:18 -0500
commit4fd961883a152e9d5c27c5da0a847c5368e2c1a0 (patch)
treec7c4e2f0f5003e14c10bc08e81824abeee83347a /webapp
parent6e3e5b8aea1567663baf3ceb86e53ffb9ad90fbe (diff)
downloadchat-4fd961883a152e9d5c27c5da0a847c5368e2c1a0.tar.gz
chat-4fd961883a152e9d5c27c5da0a847c5368e2c1a0.tar.bz2
chat-4fd961883a152e9d5c27c5da0a847c5368e2c1a0.zip
Fix telemtry IDs. (#5649)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/global_actions.jsx14
-rw-r--r--webapp/client/browser_web_client.jsx3
-rw-r--r--webapp/components/root.jsx1
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'
});
}}();
}