Claude Templates / A-tier · High leverage

Admin & Ops

The Admin Analytics Dashboard Playbook

The visualization half: KPI tiles, funnels, channel breakdown, per-page drill-down.

ADMIN-ANALYTICS-DASHBOARD-PLAYBOOK.md · 15 sections · 2,908 words · 22 KB · markdown

By Moe Ameen, founder of BILT · Published · Updated

The Admin Analytics Dashboard Playbook builds the screens that read first-party analytics data: a date-range engine anchored to one timezone, KPI tiles with sparklines, a conversion funnel, a channel classifier that recovers stripped referrers, UTM, SEO and AI-source conversion tables, a per-page drill-down, an Active Now globe of the last five minutes of visitors, and optional weekly LLM-written reports.

Key takeaways

  • Every range and bucket is anchored to one timezone (the reference app uses New York).
  • A channel classifier labels traffic, including AI sources with stripped referrers.
  • Self-referrer hygiene keeps your own domain out of every table.
  • Weekly narrative reports are optional.

Customer Analytics collects the data; this builds the room you read it in. A timezone-anchored range engine, KPI tiles with sparklines, a conversion funnel, channel classification that recovers referrer-stripped AI traffic, UTM and SEO tables, a live-visitor globe, and weekly emailed reports.

What does the Admin Analytics Dashboard Playbook build?

It builds /admin/dashboard/analytics, a page-detail drill-down, a reports page and three API routes for active visitors, report generation and visitor journeys.

Section 4 covers the commercial join from visitor to user to paid account, which the file calls the number that matters.

When should you build the analytics dashboard?

Build it in week 4, once page_events is filling up. Without ingest data the dashboard has nothing to show.

The file explains why it builds a dedicated page rather than pointing Metabase or GA at the events table.

What do you need first?

You need Customer Analytics and the Admin Console in place, plus a billing table for the visitor-to-paid join.

Decide your timezone anchor, your own domains to exclude and your funnel steps before you start.

What's inside

What does the playbook give you?

When to use it

Week 4, after ingest is live.

Straight from the file

What does the writing look like?

This is the read/visualize half. The ingest half (schema, /api/track, visitor IDs, attribution, RPC) lives in CUSTOMER-ANALYTICS-PLAYBOOK — build that first, this consumes its tables. CUSTOMER-ANALYTICS §10 describes these views in four prose paragraphs; this playbook is that §10 fully expanded into the real 3,500-LOC surface.

Table of contents

Which sections does the file cover?

  1. 0. Use this spec
  2. 1. Why a dedicated dashboard (vs piping pageevents to Metabase / GA UI)
  3. 2. Architecture
  4. 3. The ET-anchored range engine (copy this verbatim — it's the load-bearing piece)
  5. 4. The commercial join (the number that matters)
  6. 5. AnalyticsSummary — the one object the whole dashboard renders
  7. 6. The channel classifier (the secret sauce — port it faithfully)
  8. 7. Self-referrer + KPI-exclusion hygiene (don't skip — it silently corrupts every table)
  9. 8. Active Now — live globe
  10. 9. Weekly reports (optional — the LLM narrative layer)
  11. 10. Auth model
  12. 11. Performance discipline
  13. 12. Common pitfalls
  14. 13. Build order
  15. 14. Kickoff prompt

How do you run it?

Drop ADMIN-ANALYTICS-DASHBOARD-PLAYBOOK.md into your repo, then tell Claude Code: “Read ADMIN-ANALYTICS-DASHBOARD-PLAYBOOK.md and implement it in this codebase.” It's written for an agent to execute end to end. Search the file for angle-bracket placeholders and swap in your own project names, domains, and keys before the first run.

↓ Download the playbook

Who is this for, and who should skip it?

Best for

  • Founders who check acquisition and conversion daily
  • Apps already running the Customer Analytics playbook
  • Teams that want AI-source traffic counted, not lumped into Direct

Not ideal for

  • Apps using GA4 or Mixpanel as the source of truth
  • Products without an admin console
  • Teams that only need a monthly export
  • Builders who won't adapt paths: the file points to a reference app you won't have

What else do people ask?

In what order does the Admin Analytics Dashboard Playbook build things?

The Admin Analytics Dashboard Playbook builds in seven steps: confirm ingest, port the timezone range engine with KPI tiles and sparklines, add the commercial join and conversion tables, port the channel classifier, add the Direct and assisted-conversion breakdowns, add the Active Now globe, then optionally page drill-down and weekly reports. It pauses for review after step 2, since the range engine is the part most likely to need tuning for your app.

Can I use a timezone other than New York?

Yes. The Admin Analytics Dashboard Playbook says to change only ANALYTICS_TZ, because everything downstream is relative to it. It warns against UTC, where "Today" means "since 8pm yesterday" for a US operator.

Are the weekly LLM reports required?

No. The Admin Analytics Dashboard Playbook marks weekly reports optional and says to skip them for a v1. When built, they send an ISO-week summary to an LLM, store the markdown in a reports table, and can run on a Trigger.dev cron for weekly email.

What is in the Admin Analytics Dashboard Playbook download?

The Admin Analytics Dashboard Playbook is a markdown file of about 2,900 words. It has the file tree, the range-engine helper list, the ordered channel classifier rules, a table mapping AnalyticsSummary fields to dashboard cards, the build order and a kickoff prompt. It describes the reference source (a 3,620-line queries.ts and a 1,551-line AnalyticsView.tsx) rather than shipping it.

Can I trust the paid column in the conversion tables?

Only as a direction. The Admin Analytics Dashboard Playbook calls the visitor-to-paid join lossy by design, because the Stripe webhook carries no visitor cookie, so it uses event-based signups for funnel math and treats paid as a hint about which source is worth more.

How do we know this?

This page is based on the playbook file itself, ADMIN-ANALYTICS-DASHBOARD-PLAYBOOK.md, which Moe Ameen wrote from the Kompozy codebase (called BKE in the file). We read the file on November 4, 2026; the facts here come from it, not from independent testing in other codebases.

More admin & ops playbooks

← All 28 Claude templates