feat: disable pageview capture in PostHog client configuration

This commit is contained in:
2025-06-20 15:27:05 +00:00
committed by GitHub
parent 3004ec64d7
commit 60ab09a4a6

View File

@@ -3,7 +3,7 @@ import { PostHog } from "posthog-node"
export default function PostHogClient() {
const posthogClient = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
capture_pageview: 'history_change',
// capture_pageview: 'history_change',
flushAt: 1,
flushInterval: 0,
})