Browse Source

Merge pull request #2357 from bgrozev/analytics-update

Analytics update
master
virtuacoplenny 7 years ago
parent
commit
9eff669b0b
No account linked to committer's email address
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      react/features/analytics/functions.js

+ 7
- 7
react/features/analytics/functions.js View File

39
 
39
 
40
     const state = getState();
40
     const state = getState();
41
     const config = state['features/base/config'];
41
     const config = state['features/base/config'];
42
-    const { analyticsScriptUrls } = config;
43
-    const { user } = state['features/base/jwt'];
42
+    const { analyticsScriptUrls, deploymentInfo } = config;
43
+    const { group, server, user } = state['features/base/jwt'];
44
     const handlerConstructorOptions = {
44
     const handlerConstructorOptions = {
45
-        version: JitsiMeetJS.version,
46
-        user
45
+        envType: (deploymentInfo && deploymentInfo.envType) || 'dev',
46
+        group,
47
+        subproduct: deploymentInfo && deploymentInfo.environment,
48
+        user,
49
+        version: JitsiMeetJS.version
47
     };
50
     };
48
 
51
 
49
     _loadHandlers(analyticsScriptUrls, handlerConstructorOptions)
52
     _loadHandlers(analyticsScriptUrls, handlerConstructorOptions)
50
         .then(handlers => {
53
         .then(handlers => {
51
             const roomName = state['features/base/conference'].room;
54
             const roomName = state['features/base/conference'].room;
52
-            const { group, server } = state['features/base/jwt'];
53
             const permanentProperties = {};
55
             const permanentProperties = {};
54
 
56
 
55
             if (server) {
57
             if (server) {
61
 
63
 
62
             // Optionally, include local deployment information based on the
64
             // Optionally, include local deployment information based on the
63
             // contents of window.config.deploymentInfo.
65
             // contents of window.config.deploymentInfo.
64
-            const { deploymentInfo } = config;
65
-
66
             if (deploymentInfo) {
66
             if (deploymentInfo) {
67
                 for (const key in deploymentInfo) {
67
                 for (const key in deploymentInfo) {
68
                     if (deploymentInfo.hasOwnProperty(key)) {
68
                     if (deploymentInfo.hasOwnProperty(key)) {

Loading…
Cancel
Save