From 00cd82d9762459f25720777592a7b47533703331 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Mon, 22 Oct 2018 15:12:43 -0500 Subject: [PATCH] fix(analytics-ga): Ignore some events --- analytics-ga.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/analytics-ga.js b/analytics-ga.js index 5c00c8890..a5cc4c036 100644 --- a/analytics-ga.js +++ b/analytics-ga.js @@ -126,10 +126,12 @@ return; } - // The e2e rtt, rtp stats and rtt by region stats are not useful in GA, - // and there are too many of them. We just filter them out for now. - if (event.action === 'e2e_rtt' || event.action === 'rtp.stats' - || event.action === 'rtt.by.region') { + const ignoredEvents + = [ 'e2e_rtt', 'rtp.stats', 'rtt.by.region', 'available.device', + 'stream.switch.delay', 'ice.state.changed', 'ice.duration' ]; + + // Temporary removing some of the events that are too noisy. + if (ignoredEvents.indexOf(event.action) !== -1) { return; }