feat: disable pageview capture in PostHog client configuration
This commit is contained in:
@@ -3,7 +3,7 @@ import { PostHog } from "posthog-node"
|
|||||||
export default function PostHogClient() {
|
export default function PostHogClient() {
|
||||||
const posthogClient = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
|
const posthogClient = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
|
||||||
host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
|
host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
|
||||||
capture_pageview: 'history_change',
|
// capture_pageview: 'history_change',
|
||||||
flushAt: 1,
|
flushAt: 1,
|
||||||
flushInterval: 0,
|
flushInterval: 0,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user