소스 검색

Adds browser name as parameter.

j8
damencho 8 년 전
부모
커밋
adb1b33441
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      analytics.js

+ 2
- 2
analytics.js 파일 보기

@@ -10,13 +10,13 @@
10 10
     ga('send', 'pageview');
11 11
   }
12 12
 
13
-  Analytics.prototype.sendEvent = function (action, data, label) {
13
+  Analytics.prototype.sendEvent = function (action, data, label, browserName) {
14 14
     // empty label if missing value for it and add the value,
15 15
     // the value should be integer or null
16 16
     var value = Math.round(parseFloat(data));
17 17
 
18 18
     ga('send', 'event', 'jit.si',
19
-        action, label ? label : "", value ? value : null);
19
+        action + '.' + browserName, label ? label : "", value ? value : null);
20 20
   };
21 21
 
22 22
   ctx.Analytics = Analytics;

Loading…
취소
저장