Merge pull request #784 from bgrozev/round-analytics-values
Rounds floats passed to analytics (instead of truncating them).
This commit is contained in:
commit
202ad0542f
|
@ -12,7 +12,7 @@
|
|||
|
||||
Analytics.prototype.sendEvent = function (action, data) {
|
||||
// empty label and add the value, the value should be integer or null
|
||||
var value = parseInt(data);
|
||||
var value = Math.round(parseFloat(data));
|
||||
|
||||
ga('send', 'event', 'jit.si', action, "", value ? value : null);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue