Harden analytics consent banner storage and ToS deep-link (#37)
Unit Tests / test (pull_request) Successful in 12s

Version consent in localStorage (v1 + legacy migrate), point banner at Terms analytics section, and document the always-on vs optional policy. Banner/provider shipped in #42.
This commit is contained in:
2026-07-27 09:02:26 -05:00
parent 966ad7aba4
commit 11b5734812
6 changed files with 54 additions and 23 deletions
+2
View File
@@ -227,6 +227,8 @@ See [server-infra IMPLEMENTATION.md](https://git.aimloperations.com/ai_ml_operat
- Script: `https://tianji.aimloperations.com/tracker.js`
- **Page views** always load on prod/beta (no consent gate)
- **Custom events / identify** require analytics consent (`AnalyticsConsentBanner` + `trackEvent` / `identifyUser`)
- Consent choice stored in `localStorage` key `hesychia_analytics_consent_v1` (`granted` / `denied`)
- Banner links to `/terms_of_service/#analytics` for the always-on vs optional split
## Related repos