From 83af97d20df927958b5d1c3dd8f840917279c4d4 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 16 Aug 2024 20:17:07 +0530 Subject: [PATCH] fix: enable recording, pageview & pageleave --- frontend/src/telemetry.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/telemetry.ts b/frontend/src/telemetry.ts index e77d8a36..2a9a58b7 100644 --- a/frontend/src/telemetry.ts +++ b/frontend/src/telemetry.ts @@ -47,13 +47,13 @@ function initPosthog(ps: PosthogSettings) { api_host: ps.posthog_host, person_profiles: 'identified_only', autocapture: false, - capture_pageview: false, - capture_pageleave: false, + capture_pageview: true, + capture_pageleave: true, enable_heatmaps: false, - disable_session_recording: true, + disable_session_recording: false, loaded: (ph: typeof posthog) => { window.posthog = ph - ph.identify(window.location.host) + ph.identify(window.location.hostname) }, }) }