Merge pull request #885 from frappe/mergify/bp/main-hotfix/pr-884
fix: remove invasive settings (backport #884)
This commit is contained in:
commit
815d807fcb
@ -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