Sfoglia il codice sorgente

fix(analytics-ga): Ignore some events

master
hristoterezov 5 anni fa
parent
commit
00cd82d976
1 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 6
    4
      analytics-ga.js

+ 6
- 4
analytics-ga.js Vedi File

@@ -126,10 +126,12 @@
126 126
             return;
127 127
         }
128 128
 
129
-        // The e2e rtt, rtp stats and rtt by region stats are not useful in GA,
130
-        // and there are too many of them. We just filter them out for now.
131
-        if (event.action === 'e2e_rtt' || event.action === 'rtp.stats'
132
-            || event.action === 'rtt.by.region') {
129
+        const ignoredEvents
130
+            = [ 'e2e_rtt', 'rtp.stats', 'rtt.by.region', 'available.device',
131
+                'stream.switch.delay', 'ice.state.changed', 'ice.duration' ];
132
+
133
+        // Temporary removing some of the events that are too noisy.
134
+        if (ignoredEvents.indexOf(event.action) !== -1) {
133 135
             return;
134 136
         }
135 137
 

Loading…
Annulla
Salva