From 9cb8f01f4c0bb1bce6ba99a16dff0c29c7fd2aab Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Fri, 3 Jan 2025 10:21:04 +0700 Subject: [PATCH] fix: revert back product analytic with default opt-out --- web/containers/Layout/index.tsx | 1 - web/helpers/atoms/Setting.atom.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/web/containers/Layout/index.tsx b/web/containers/Layout/index.tsx index 38d45ebd09..29fda70de8 100644 --- a/web/containers/Layout/index.tsx +++ b/web/containers/Layout/index.tsx @@ -123,7 +123,6 @@ const BaseLayout = () => { if (isAllowed) { posthog.opt_in_capturing() } else { - posthog.capture('user_opt_out', { timestamp: new Date() }) posthog.opt_out_capturing() } } diff --git a/web/helpers/atoms/Setting.atom.ts b/web/helpers/atoms/Setting.atom.ts index bd398f1e78..3568d87d0a 100644 --- a/web/helpers/atoms/Setting.atom.ts +++ b/web/helpers/atoms/Setting.atom.ts @@ -47,7 +47,7 @@ export const spellCheckAtom = atomWithStorage( ) export const productAnalyticAtom = atomWithStorage( PRODUCT_ANALYTIC, - true, + false, undefined, { getOnInit: true } )