From 895da1a8125581e8b9476ace591123ab59d7b3d3 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 2 Jun 2025 19:03:54 +0530 Subject: [PATCH] fix: remove invasive settings (#884) --- frontend/src/telemetry.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/telemetry.ts b/frontend/src/telemetry.ts index c7c93acd..e8945398 100644 --- a/frontend/src/telemetry.ts +++ b/frontend/src/telemetry.ts @@ -49,7 +49,8 @@ function initPosthog(ps: PosthogSettings) { capture_pageview: true, capture_pageleave: true, enable_heatmaps: false, - disable_session_recording: false, + disable_session_recording: true, + advanced_disable_decide: true, loaded: (ph: typeof posthog) => { window.posthog = ph ph.identify(window.location.hostname) @@ -67,17 +68,9 @@ function capture( } function startRecording() { - if (!isTelemetryEnabled()) return - if (window.posthog?.__loaded) { - window.posthog.startSessionRecording() - } } function stopRecording() { - if (!isTelemetryEnabled()) return - if (window.posthog?.__loaded && window.posthog.sessionRecordingStarted()) { - window.posthog.stopSessionRecording() - } } // Posthog Plugin