Blog
Feature
February 26, 20266 min

Admin dashboard, RGPD analytics, and cookie consent

A solo developer needs metrics as much as a team of 50. I needed to see: how many active users, which features are used, is the backend holding up.

The admin dashboard

Admin panel at /admin/dashboard. Real-time stats cards, Recharts graphs (registrations, daily usage, retention). Data comes from Supabase via RPCs.

AlertService

Email alerts (via Resend) when: LLM fallback triggered, repeated voice pipeline errors, excessive rate limiting. Each alert logged in Supabase for history.

GA4 and Consent Mode

GA4 initialized in "denied" mode by default. Consent updated when the user makes their choice. No data collected without explicit consent.

3-toggle cookie consent

Banner with: Necessary (always active), Analytics (GA4, disabled by default), Marketing (future, disabled). Versioned consent — if the policy changes, the banner reappears.

Supabase Tracking

In addition to GA4: anonymous UUID per visitor, page views, conversion paths, CTA clicks. Dual reading: GA4 for web metrics, Supabase for business metrics.