Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

analytics: add app name to permanent properties

Saúl Ibarra Corretgé1c3cf325cb44
diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.js
index ab87fbd346..24d3024767 100644
--- a/react/features/analytics/functions.js
+++ b/react/features/analytics/functions.js
@@ -1,6 +1,7 @@
// @flow
import { API_ID } from '../../../modules/API/constants';
+import { getName as getAppName } from '../app/functions';
import {
checkChromeExtensionsInstalled,
isMobileBrowser
@@ -167,10 +168,13 @@ export function initAnalytics({ getState }: { getState: Function }, handlers: Ar
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 is external api
+ // Report if user is using the external API
permanentProperties.externalApi = typeof API_ID === 'number';
// Report if we are loaded in iframe