Skip to content

Commit dba5799

Browse files
authored
improvement(posthog): improve posthog config to be more lightweight (#2851)
1 parent 583f5c4 commit dba5799

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

apps/sim/app/_shell/providers/posthog-provider.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ export function PostHogProvider({ children }: { children: React.ReactNode }) {
1616
ui_host: 'https://us.posthog.com',
1717
defaults: '2025-05-24',
1818
person_profiles: 'identified_only',
19-
capture_pageview: true,
19+
autocapture: false,
20+
capture_pageview: false,
2021
capture_pageleave: false,
2122
capture_performance: false,
23+
capture_dead_clicks: false,
24+
enable_heatmaps: false,
2225
session_recording: {
2326
maskAllInputs: false,
2427
maskInputOptions: {
@@ -29,13 +32,7 @@ export function PostHogProvider({ children }: { children: React.ReactNode }) {
2932
recordHeaders: false,
3033
recordBody: false,
3134
},
32-
autocapture: {
33-
dom_event_allowlist: ['click', 'submit', 'change'],
34-
element_allowlist: ['button', 'a', 'input'],
35-
},
36-
capture_dead_clicks: false,
3735
persistence: 'localStorage+cookie',
38-
enable_heatmaps: false,
3936
})
4037
}
4138
}, [])

0 commit comments

Comments
 (0)