Elite Outsiders ← Back data

Analytics map

Source of truth: Notion · EO Analytics Refreshed:
D1 tables
Event types
Endpoints

D1 tables

TableRowsLast write

Event types (events table)

Type30dTotal

Endpoints + dashboards

PathReads

Analytics process · Claude ∩ AL

Working agreement + design rules for every data point tracked and displayed on EO.

Rule 1 · drill-down
Every displayed data point links to an existing page that drills deeply into the data, OR opens a drawer (side panel) on click showing the exact data values displayed.
Rule 2 · yellow bar
Each "existing page" lives in tools.eliteoutsiders.com/, with a yellow line bar (#fbbf24) at the start of the row on the parent menu.
Rule 3 · Type A vs Type B
Type A (Core data, Clients, Clients-detail): AL curated, strict layouts. Type B (all /data pages): Claude Code visual free hand, emerald/rose/violet/sky/amber palette, 88px hero KPI, drill-down drawers, vertical scroll allowed.
Rule 4 · title coherence
Tile menu = <title> tab = page <h1>. Strict match (optional period suffix).
Rule 5 · funnel order
On every data sub-menu: order top-of-funnel → bottom (acquisition → engagement → conversion → retention). Visual scan reflex for AL.
Rule 6 · backward-compat
Any renamed URL/data keeps the old path via _redirects 301. No internal link or external bookmark breaks.
Rule 7 · RGPD consent
Tracking site public via tracking.js + cookie banner CNIL 13 mois. consent_level=full mint visitor_id persistent ; minimal = session-only anonyme.
Rule 8 · server-side enrichment
Chaque event est enrichi server-side dans /api/events avec country/region/city, device_class, ua_browser/os, source_class, is_bot, user_email (si auth), avant insert D1.
Rule 9 · error_events watchdog
Server-side 4xx/5xx errors logged into error_events. CRON11 daily 06:00 UTC checks the past 24h, Resend email if > 0. No silent bugs.
Rule 10 · extended smoke
On every deploy: npm run deploy:prod runs the standard smoke + an extended smoke auto-extracted from /alllinks (50+ URLs). Zero hidden regression.
Rule 11 · bot filter
All data aggregates filter on COALESCE(is_bot,0)=0. Bot detection via CF botManagement + UA regex fallback.
Rule 12 · self-update doc
Toute nouvelle table D1 / endpoint /api/admin/* / dashboard tools = update Notion 📊 EO Analytics — Source of truth + hard-coded list dans analytics-map.js.

12 rules · last updated 2026-05-08 · this is the agreement between Claude Code and AL on how data flows + displays on EO.