Simple Website
Privacy-first analytics with explicit consent.
This demo starts with analytics disabled, asks for a clear opt-in choice, logs consent changes server-side, and lets visitors withdraw consent at any time.
What this example includes
- Bottom consent bar shown only when no consent cookie exists
- Floating cookie preferences button after a choice is made
- Preferences modal for allowing or withdrawing non-essential cookies
- Server-side JSONL audit trail in
consent-log.jsonl - Google Analytics loaded only after opt-in consent