Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Rounds floats passed to analytics (instead of truncating them).

Boris Grozevc59d9e7c8b7d
diff --git a/analytics.js b/analytics.js
index 03a178393a..7dc8aed91a 100644
--- a/analytics.js
+++ b/analytics.js
@@ -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);
};