Skip to content

Commit 22f845d

Browse files
disable posthog capturing
1 parent 28c071e commit 22f845d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎src/v2/components/Providers/PostHogProvider.tsx‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,9 @@ if (typeof window !== "undefined") {
3434

3535
persistence: "memory",
3636

37-
// Disable in development
37+
// Disable PostHog on Guild Classic
3838
loaded: (ph) => {
39-
if (
40-
process.env.NODE_ENV !== "production" ||
41-
window.location.host !== "guild.xyz"
42-
)
43-
ph.opt_out_capturing()
39+
ph.opt_out_capturing()
4440
},
4541
})
4642
}

0 commit comments

Comments
 (0)