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 769e4c0 commit ee7cb34Copy full SHA for ee7cb34
app/providers.js
@@ -4,10 +4,11 @@ import { PostHogProvider } from 'posthog-js/react'
4
5
if (typeof window !== 'undefined') {
6
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, {
7
- api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST
+ api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
8
+ persistence: 'memory' //enables cookieless tracking
9
})
10
}
11
12
export function PHProvider({ children }) {
13
return <PostHogProvider client={posthog}>{children}</PostHogProvider>
-}
14
+}
0 commit comments