From 1a59b8cecb0e748ef4c041ae33815c0ae5cd81d7 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 20 Nov 2024 22:39:33 +0700 Subject: [PATCH] chore: add persistence localStorage --- web/app/posthog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/posthog.js b/web/app/posthog.js index d6a6bf0bb..daa2a7ea2 100644 --- a/web/app/posthog.js +++ b/web/app/posthog.js @@ -7,6 +7,7 @@ if (typeof window !== 'undefined') { posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, { api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST, person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well + persistence: 'localStorage', }) } export function CSPostHogProvider({ children }) {