diff --git a/src/common/components/3rdparty/PostHogAnalytics.tsx b/src/common/components/3rdparty/PostHogAnalytics.tsx index aa9acb78d..984450114 100644 --- a/src/common/components/3rdparty/PostHogAnalytics.tsx +++ b/src/common/components/3rdparty/PostHogAnalytics.tsx @@ -94,12 +94,17 @@ export function OptionalPostHogAnalytics() { _posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY || '', { api_host: '/a/ph', // client analytics host - default: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://us.i.posthog.com' ui_host: 'https://us.posthog.com', - defaults: '2025-05-24', + defaults: '2026-01-30', capture_exceptions: true, // captures exceptions using Error Tracking // capture_pageview: false, // we used to handle this manually, but changed to the 'defaults' option which captures pageviews automatically // capture_pageleave: true, // we used to track goodbyes, now included in 'defaults' person_profiles: 'identified_only', disable_surveys: true, // disable surveys + + // disable feature flags; at most we'd check them at boot for surveys + advanced_disable_feature_flags: true, + advanced_only_evaluate_survey_feature_flags: true, + debug: Release.IsNodeDevBuild, // enable debug mode in development (was: `loaded: (ph) => if (Release.IsNodeDevBuild) ph.debug();`) });