We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2c2d9 commit 2d30ebcCopy full SHA for 2d30ebc
src/app/providers.tsx
@@ -3,7 +3,7 @@
3
import posthog from 'posthog-js';
4
import { PostHogProvider } from 'posthog-js/react';
5
6
-if (typeof window !== 'undefined') {
+if (typeof window !== 'undefined' && process.env.NEXT_PUBLIC_POSTHOG_KEY) {
7
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
8
api_host: 'https://events.httptoolkit.tech',
9
autocapture: false, // We don't need events here - just page views is fine.
0 commit comments