fix: enable recording, pageview & pageleave

This commit is contained in:
Shariq Ansari 2024-08-16 20:17:07 +05:30
parent 7c434db5d8
commit 83af97d20d

View File

@ -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)
},
})
}