Skip to content

Add cookie consent banner and remove fake usage stats#2

Merged
sanjitkverma merged 1 commit into
mainfrom
feat/cookie-consent-and-remove-fake-stats
Mar 23, 2026
Merged

Add cookie consent banner and remove fake usage stats#2
sanjitkverma merged 1 commit into
mainfrom
feat/cookie-consent-and-remove-fake-stats

Conversation

@sanjitkverma
Copy link
Copy Markdown
Member

Summary

  • Added a cookie consent banner that gates PostHog analytics on user opt-in — PostHog only initializes after the user clicks "Accept"
  • Declining cookies prevents all analytics code from running
  • Removed the fake usage stats counter strip ("2,847+ Sessions Analyzed", etc.) from the home page

Test plan

  • Visit the site for the first time — cookie banner should appear at the bottom
  • Click "Decline" — banner dismisses, PostHog should not initialize (verify in Network tab)
  • Clear localStorage and reload — banner reappears
  • Click "Accept" — banner dismisses, PostHog initializes and tracks pageviews
  • Reload after accepting — no banner shown, PostHog initializes automatically
  • Verify the fake stats counter strip is no longer on the home page
  • Verify build passes with npm run build

- Add cookie consent banner that gates PostHog analytics initialization
  on user opt-in, stored in localStorage
- PostHog only loads after user accepts; declining prevents all analytics
- Remove fake "Sessions Analyzed / Prompts Decoded / Vibe Scores Given"
  counter strip from the home page
@sanjitkverma sanjitkverma merged commit 8ff273c into main Mar 23, 2026
2 checks passed
@sanjitkverma sanjitkverma deleted the feat/cookie-consent-and-remove-fake-stats branch March 23, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant