From adb1b334415f1ac2574c33927de8dd7aaad6e0d8 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 1 Sep 2016 14:13:17 -0500 Subject: [PATCH] Adds browser name as parameter. --- analytics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analytics.js b/analytics.js index fb3e62de9..656a5fec1 100644 --- a/analytics.js +++ b/analytics.js @@ -10,13 +10,13 @@ ga('send', 'pageview'); } - Analytics.prototype.sendEvent = function (action, data, label) { + Analytics.prototype.sendEvent = function (action, data, label, browserName) { // empty label if missing value for it and add the value, // the value should be integer or null var value = Math.round(parseFloat(data)); ga('send', 'event', 'jit.si', - action, label ? label : "", value ? value : null); + action + '.' + browserName, label ? label : "", value ? value : null); }; ctx.Analytics = Analytics;