fix: revert back product analytic with default opt-out (#4394)

This commit is contained in:
Faisal Amir 2025-01-03 11:05:11 +07:00 committed by GitHub
parent 538a6bf923
commit 786d528abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -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()
}
}

View File

@ -47,7 +47,7 @@ export const spellCheckAtom = atomWithStorage<boolean>(
)
export const productAnalyticAtom = atomWithStorage<boolean>(
PRODUCT_ANALYTIC,
true,
false,
undefined,
{ getOnInit: true }
)