Browse Source

Removes browser suffix adding to all action names.

Passing the browser name as parameter.
master
damencho 9 years ago
parent
commit
7cd5a80206
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/statistics/AnalyticsAdapter.js

+ 2
- 2
modules/statistics/AnalyticsAdapter.js View File

@@ -4,7 +4,7 @@ function NoopAnalytics() {}
4 4
 NoopAnalytics.prototype.sendEvent = function () {};
5 5
 
6 6
 function AnalyticsAdapter() {
7
-    this.browserActionSuffix = '.' + RTCBrowserType.getBrowserName();
7
+    this.browserName = RTCBrowserType.getBrowserName();
8 8
 }
9 9
 
10 10
 // some events may happen before init or implementation script download
@@ -35,7 +35,7 @@ AnalyticsAdapter.prototype.sendEvent = function (action, data, label) {
35 35
     }
36 36
     try {
37 37
         this.analytics.sendEvent(
38
-            action + this.browserActionSuffix, data, label);
38
+            action, data, label, this.browserName);
39 39
     } catch (ignored) {}
40 40
 };
41 41
 

Loading…
Cancel
Save