|
@@ -5,7 +5,6 @@ import {
|
5
|
5
|
TYPE_UI
|
6
|
6
|
} from '../../service/statistics/AnalyticsEvents';
|
7
|
7
|
import { getLogger } from 'jitsi-meet-logger';
|
8
|
|
-import browser from '../browser';
|
9
|
8
|
|
10
|
9
|
const MAX_CACHE_SIZE = 100;
|
11
|
10
|
|
|
@@ -54,15 +53,9 @@ const logger = getLogger(__filename);
|
54
|
53
|
* action, actionSubject, source, containerType, containerId, objectType,
|
55
|
54
|
* objectId
|
56
|
55
|
*/
|
57
|
|
-export default class AnalyticsAdapter {
|
58
|
|
- /**
|
59
|
|
- * The options to configure Statistics.
|
60
|
|
- * @typedef {Object} AnalyticsOptions
|
61
|
|
- * @property {string} statsId - The id that will be used to be passed with all analytics for current session.
|
62
|
|
- */
|
|
56
|
+class AnalyticsAdapter {
|
63
|
57
|
/**
|
64
|
58
|
* Creates new AnalyticsAdapter instance.
|
65
|
|
- * @param {AnalyticsOptions} options - The options to use creating the AnalyticsAdapter.
|
66
|
59
|
*/
|
67
|
60
|
constructor(options) {
|
68
|
61
|
this.options = options;
|
|
@@ -108,12 +101,6 @@ export default class AnalyticsAdapter {
|
108
|
101
|
* @type {null}
|
109
|
102
|
*/
|
110
|
103
|
this.conferenceName = '';
|
111
|
|
-
|
112
|
|
- this.addPermanentProperties({
|
113
|
|
- 'callstats_name': this.options.statsId,
|
114
|
|
- 'user_agent': navigator.userAgent,
|
115
|
|
- 'browser_name': browser.getName()
|
116
|
|
- });
|
117
|
104
|
}
|
118
|
105
|
|
119
|
106
|
/**
|
|
@@ -357,3 +344,5 @@ export default class AnalyticsAdapter {
|
357
|
344
|
}
|
358
|
345
|
}
|
359
|
346
|
}
|
|
347
|
+
|
|
348
|
+export default new AnalyticsAdapter();
|