We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10de798 commit 7ff02ebCopy full SHA for 7ff02eb
1 file changed
src/app/posthogProvider.tsx
@@ -9,7 +9,19 @@ if (typeof window !== 'undefined') {
9
api_host: "/ingest",
10
ui_host: NEXT_PUBLIC_POSTHOG_UI_HOST,
11
person_profiles: 'identified_only',
12
- capture_pageview: false, // Disable automatic pageview capture, as we capture manually
+ capture_pageview: false, // Disable automatic pageview capture
13
+ autocapture: false, // Disable automatic event capture
14
+ sanitize_properties: (properties: Record<string, any>, _event: string) => {
15
+ if (properties['$current_url']) {
16
+ properties['$current_url'] = null;
17
+ }
18
+ if (properties['$ip']) {
19
+ properties['$ip'] = "null";
20
21
+
22
23
+ return properties;
24
25
});
26
} else {
27
console.log("PostHog telemetry disabled");
0 commit comments