diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c6fda2c1..8b79a534e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to ### Added - ✨(helm) allow disallowing search engine indexing per instance #2694 +- 🐛(frontend) reduce PostHog volume from web vitals and opt_in spam #2701 ### Fixed diff --git a/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx b/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx index 89e9ede9b..87e13b583 100644 --- a/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx +++ b/src/frontend/apps/impress/src/services/PosthogAnalytic.tsx @@ -69,6 +69,7 @@ export function PostHogProvider({ }, capture_pageview: false, capture_pageleave: true, + capture_performance: { web_vitals: false }, }); const handleRouteChange = () => posthog?.capture('$pageview'); @@ -85,7 +86,7 @@ export function PostHogProvider({ if (isOffline) { posthog.opt_out_capturing(); } else { - posthog.opt_in_capturing(); + posthog.opt_in_capturing({ captureEventName: false }); } }, [isOffline]);