legal: implement EU/UK cookie + analytics consent (or document geo-gate) #177
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source:
/legal/attorney-review-checklist.mditem A3.Problem. PostHog is initialized unconditionally at app start with
persistence: 'localStorage+cookie'(frontend/src/main.tsx:17-23). Google Fonts loads on every public page fromfonts.googleapis.comandfonts.gstatic.com(frontend/index.html:11-13) — both before any consent is obtained.Why it matters. For EU/UK visitors, ePrivacy Directive Art. 5(3) and UK PECR require prior consent before non-essential cookies and tracking-grade storage are set. The generated Cookie Policy already references a consent mechanism that doesn't exist in code.
Two acceptable paths:
Implement consent management (recommended for a B2B SaaS reachable globally):
init()behind affirmative consent; pre-consent, only essential storage (auth tokens, theme preference) may be set@fontsource) to eliminate the IP-exposure-to-Google disclosure entirelyGeo-gate the product from EU/UK and document the decision. (Not recommended — kills enterprise expansion.)
Acceptance criteria.
/legal/cookie-policy.md'Consent mechanism for EU/UK' row in implementation-verification.md flips from ❌ → ✅Blocker for: publishing legal docs and accepting EU/UK signups in good faith.
Companion files:
/legal/attorney-review-checklist.md(item A3)/legal/cookie-policy.md