Skip to content

Commit

Permalink
fix: revert back product analytic with default opt-out (#4394)
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur authored Jan 3, 2025
1 parent 538a6bf commit 786d528
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion web/containers/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion web/helpers/atoms/Setting.atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const spellCheckAtom = atomWithStorage<boolean>(
)
export const productAnalyticAtom = atomWithStorage<boolean>(
PRODUCT_ANALYTIC,
true,
false,
undefined,
{ getOnInit: true }
)
Expand Down

0 comments on commit 786d528

Please sign in to comment.