fix: enable recording, pageview & pageleave
This commit is contained in:
parent
7c434db5d8
commit
83af97d20d
@ -47,13 +47,13 @@ function initPosthog(ps: PosthogSettings) {
|
|||||||
api_host: ps.posthog_host,
|
api_host: ps.posthog_host,
|
||||||
person_profiles: 'identified_only',
|
person_profiles: 'identified_only',
|
||||||
autocapture: false,
|
autocapture: false,
|
||||||
capture_pageview: false,
|
capture_pageview: true,
|
||||||
capture_pageleave: false,
|
capture_pageleave: true,
|
||||||
enable_heatmaps: false,
|
enable_heatmaps: false,
|
||||||
disable_session_recording: true,
|
disable_session_recording: false,
|
||||||
loaded: (ph: typeof posthog) => {
|
loaded: (ph: typeof posthog) => {
|
||||||
window.posthog = ph
|
window.posthog = ph
|
||||||
ph.identify(window.location.host)
|
ph.identify(window.location.hostname)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user