analytics: add app name to permanent properties
This commit is contained in:
parent
fdbd681c8f
commit
1c3cf325cb
|
@ -1,6 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import { API_ID } from '../../../modules/API/constants';
|
import { API_ID } from '../../../modules/API/constants';
|
||||||
|
import { getName as getAppName } from '../app/functions';
|
||||||
import {
|
import {
|
||||||
checkChromeExtensionsInstalled,
|
checkChromeExtensionsInstalled,
|
||||||
isMobileBrowser
|
isMobileBrowser
|
||||||
|
@ -167,10 +168,13 @@ export function initAnalytics({ getState }: { getState: Function }, handlers: Ar
|
||||||
permanentProperties.group = group;
|
permanentProperties.group = group;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Report if user is using websocket
|
// Report the application name
|
||||||
|
permanentProperties.appName = getAppName();
|
||||||
|
|
||||||
|
// Report if user is using websocket
|
||||||
permanentProperties.websocket = navigator.product !== 'ReactNative' && typeof config.websocket === 'string';
|
permanentProperties.websocket = navigator.product !== 'ReactNative' && typeof config.websocket === 'string';
|
||||||
|
|
||||||
// permanentProperties is external api
|
// Report if user is using the external API
|
||||||
permanentProperties.externalApi = typeof API_ID === 'number';
|
permanentProperties.externalApi = typeof API_ID === 'number';
|
||||||
|
|
||||||
// Report if we are loaded in iframe
|
// Report if we are loaded in iframe
|
||||||
|
|
Loading…
Reference in New Issue