fix: remove invasive settings (#884)
(cherry picked from commit 895da1a8125581e8b9476ace591123ab59d7b3d3)
This commit is contained in:
parent
f0e17f49fe
commit
f0e03f6594
@ -49,7 +49,8 @@ function initPosthog(ps: PosthogSettings) {
|
|||||||
capture_pageview: true,
|
capture_pageview: true,
|
||||||
capture_pageleave: true,
|
capture_pageleave: true,
|
||||||
enable_heatmaps: false,
|
enable_heatmaps: false,
|
||||||
disable_session_recording: false,
|
disable_session_recording: true,
|
||||||
|
advanced_disable_decide: true,
|
||||||
loaded: (ph: typeof posthog) => {
|
loaded: (ph: typeof posthog) => {
|
||||||
window.posthog = ph
|
window.posthog = ph
|
||||||
ph.identify(window.location.hostname)
|
ph.identify(window.location.hostname)
|
||||||
@ -67,17 +68,9 @@ function capture(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function startRecording() {
|
function startRecording() {
|
||||||
if (!isTelemetryEnabled()) return
|
|
||||||
if (window.posthog?.__loaded) {
|
|
||||||
window.posthog.startSessionRecording()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopRecording() {
|
function stopRecording() {
|
||||||
if (!isTelemetryEnabled()) return
|
|
||||||
if (window.posthog?.__loaded && window.posthog.sessionRecordingStarted()) {
|
|
||||||
window.posthog.stopSessionRecording()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Posthog Plugin
|
// Posthog Plugin
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user