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