From ee7cb345ca6ed96e33bcb25317a638d7163ab9f0 Mon Sep 17 00:00:00 2001 From: Ashutosh Tripathi <39340292+ashucoder9@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:15:58 +0530 Subject: [PATCH] enable cookieless tracking Signed-off-by: Ashutosh Tripathi <39340292+ashucoder9@users.noreply.github.com> --- app/providers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/providers.js b/app/providers.js index 19216f4..6bdb1ca 100644 --- a/app/providers.js +++ b/app/providers.js @@ -4,10 +4,11 @@ import { PostHogProvider } from 'posthog-js/react' if (typeof window !== 'undefined') { posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, { - api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST + api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST, + persistence: 'memory' //enables cookieless tracking }) } export function PHProvider({ children }) { return {children} -} \ No newline at end of file +}