diff --git a/src/platform/monitoring/web-vitals.js b/src/platform/monitoring/web-vitals.js index a5af8a71ddca..ced3a4f8262a 100644 --- a/src/platform/monitoring/web-vitals.js +++ b/src/platform/monitoring/web-vitals.js @@ -23,7 +23,7 @@ const recordWebVitalsEvent = event => { const trackWebVitals = // Exclude production for now. - !environment.isProduction && + !environment.isProduction() && // Exclude cypress containers and localhost from tracking web vitals. environment.BASE_URL.indexOf('localhost') < 0;