ソースを参照

Removes browser suffix adding to all action names.

Passing the browser name as parameter.
master
damencho 9年前
コミット
7cd5a80206
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      modules/statistics/AnalyticsAdapter.js

+ 2
- 2
modules/statistics/AnalyticsAdapter.js ファイルの表示

@@ -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
 

読み込み中…
キャンセル
保存