Skip to content

Commit

Permalink
fix(analytics-ga): Ignore some events
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoterezov committed Oct 22, 2018
1 parent 61deb74 commit 00cd82d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions analytics-ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 00cd82d

Please sign in to comment.