PE·183
Product Metrics
Measuring whether a product works, for users, the business and the engineering system: metric frameworks (North Star, AARRR pirate metrics, Google's HEART), precise definitions and why they matter, event tracking plans and schemas, acquisition and channel attribution, activation and the "aha moment", engagement (DAU/MAU stickiness, feature adoption), retention computed as cohort tables, conversion funnels, revenue (MRR, ARPU, expansion), churn in its several forms, customer lifetime value, acquisition cost and payback, cost to serve and unit economics, then engineering metrics (latency percentiles, error rate, availability and error budgets, and DORA's delivery metrics: deployment frequency, lead time, change fail rate, recovery time, rework rate) computed from logs, connecting engineering metrics to product outcomes, dashboards and metric reviews, and the classic traps (vanity metrics, Goodhart's law, Simpson's paradox, survivorship), all computed on a synthetic TiffinBox dataset with pandas and SQL.
Start here: numbers that tell you whether the product works
A product metric is a number that tracks user or business behaviour: how many people sign up, how many get value, how many come back, how much they pay, what it costs to serve them. Engineers need metrics to know whether what they shipped mattered, and to spot problems that no error log shows.
The life of a customer, as metrics
| Stage | Question | Example metric at TiffinBox |
|---|---|---|
| acquisition | are people arriving? | sign-ups per week, by channel |
| activation | do they get first value? | % of sign-ups with a paid delivery within 7 days |
| engagement | do they use it? | meals per active week |
| retention | do they come back? | % of a sign-up cohort still active in week 8 |
| revenue | do they pay? | revenue per subscriber per month |
| unit economics | is each customer worth it? | lifetime value vs acquisition cost and cost to serve |
Definitions decide the number
The lab ran SQL over TiffinBox's synthetic data for one week in October and asked "how many active subscribers?":
any event in the app 1,167
opened the app 970
ordered in the app 523
had a paid delivery 1,201
All four are "active users". The right one depends on the question (for a meal subscription, a paid delivery is the real value), and a metric is only useful if everyone uses the same written definition.
Two traps the lab measured
- Denominators. Week-4 retention was 68.7% of activated subscribers but 37.9% of everyone who signed up. Both are correct; mixing them up in a meeting isn't.
- Recent cohorts look worse. Average active weeks per subscriber fell from 10.3 (April sign-ups) to 2.2 (October), purely because October's customers haven't had time to stay longer. A cohort table that compares cohorts at the same age showed retention was actually steady (week-4: 68.5–69.4% for every cohort).
How deep to go in product metrics
Volume 17 defines six mastery levels; for product metrics they look like this:
| Level | You can… |
|---|---|
| L1 | explain the funnel stages, retention and why definitions matter |
| L2 | write SQL for activation, retention cohorts, funnels and revenue |
| L3 | explain censoring, denominators, cohort analysis, LTV and unit economics |
| L4 | reconcile conflicting dashboards and spot Simpson's paradox, survivorship and mix shifts |
| L5 | design a metric tree, tracking plan and review cadence for a product |
| L6 | run metric governance: certified definitions, data quality and decision forums |
Why metrics
Metrics turn opinions into evidence: is the product growing, are users getting value, is the business sustainable, is engineering delivering reliably? They also shape behaviour: teams optimise what they measure, so choosing and defining metrics is a design decision with consequences.
Frameworks
North Star metric
One metric that best captures the value delivered to customers and predicts long-term business success, supported by input metrics teams can move. For TiffinBox: "meals delivered on time to active subscribers per week". It grows when users subscribe, stay, eat more meals and get them on time; it doesn't grow from tricks like charging for unwanted meals.
AARRR (pirate metrics)
Dave McClure's funnel of the customer lifecycle: Acquisition → Activation → Retention → Referral → Revenue. Useful for spotting the leakiest stage.
HEART
Google's framework for user-experience metrics: Happiness (satisfaction, NPS), Engagement (frequency, depth), Adoption (new users of a feature), Retention, Task success (completion, time, errors). Each is defined through Goals → Signals → Metrics: what we want, what behaviour indicates it, how we quantify it.
Definitions matter
"Active user" means nothing until defined. Write metric definitions like code:
| Element | Example: "week-4 retention" |
|---|---|
| Population | Subscribers whose first delivery was in the cohort week |
| Event | Received at least one delivery |
| Window | Days 21–27 after the first delivery |
| Exclusions | Internal/test accounts, refunded fraud accounts |
| Time zone | Asia/Kolkata calendar days |
| Source of truth | deliveries table (status = delivered), not app events |
| Owner | Growth analytics; definition versioned in the metrics layer |
Store definitions in a semantic layer / metrics store (dbt semantic layer, Cube, LookML, MetricFlow) so dashboards, experiments and ad-hoc queries compute the same number.
Instrumentation: the tracking plan
Product metrics come from events (what users did) and business records (orders, payments, deliveries).
- Tracking plan: a reviewed list of events with names, properties, types, triggers and owners, versioned like an API.
- Naming convention:
object_actionin past tense (meal_skipped,plan_selected,checkout_completed). - Common properties: user id (pseudonymous), anonymous id, session id, timestamp (UTC) and time zone, platform, app version, experiment assignments.
- Server-side events for anything financial or critical (payments, deliveries); client-side events for UI behaviour (they're lost to ad blockers, offline devices and app crashes).
- Validate events against schemas in CI and at ingestion (chapter 150); broken tracking silently breaks every downstream metric.
- Privacy: no raw PII in event properties; consent where required; retention limits.
{
"event": "meal_skipped",
"user_id": "u_8f2c1a",
"timestamp": "2026-10-21T15:42:10Z",
"tz": "Asia/Kolkata",
"properties": {
"delivery_date": "2026-10-22",
"plan": "veg_20",
"hours_before_cutoff": 15.3,
"source": "home_card",
"credit_issued": true
},
"context": {"platform": "android", "app_version": "4.12.0", "experiments": {"one-tap-skip": "treatment"}}
}
A synthetic TiffinBox dataset
The rest of the chapter computes metrics on generated data so every formula is runnable:
import numpy as np, pandas as pd
rng = np.random.default_rng(42)
n = 6000
signup = pd.Timestamp("2026-04-06") + pd.to_timedelta(rng.integers(0, 26 * 7, n), unit="D")
channel = rng.choice(["referral", "instagram", "google", "office_drive"], n, p=[0.25, 0.35, 0.25, 0.15])
schedule = rng.choice(["hybrid", "full_time"], n, p=[0.6, 0.4])
users = pd.DataFrame({"user_id": np.arange(n), "signup": signup, "channel": channel, "schedule": schedule})
# Activation: completed first paid delivery within 7 days of sign-up
p_activate = np.where(users.channel == "referral", 0.72, np.where(users.channel == "office_drive", 0.65, 0.48))
users["activated"] = rng.random(n) < p_activate
users["first_delivery"] = users.signup + pd.to_timedelta(rng.integers(1, 6, n), unit="D")
# Weekly activity: survival with a weekly churn hazard that is higher for hybrid users
rows = []
for u in users[users.activated].itertuples():
hazard = 0.11 if u.schedule == "hybrid" else 0.06
for week in range(26):
if week > 0 and rng.random() < hazard: break
meals = rng.binomial(5, 0.55 if u.schedule == "hybrid" else 0.9)
rows.append((u.user_id, week, u.first_delivery + pd.Timedelta(weeks=week), meals))
activity = pd.DataFrame(rows, columns=["user_id", "week", "week_start", "meals"])
activity = activity[activity.week_start < pd.Timestamp("2026-10-19")] # data ends "today"
len(users), int(users.activated.sum()), len(activity) # 6,000 users, 3,294 activated, 26,018 active weeks
Acquisition
- Sign-ups (or visitors, installs) by channel, cost per channel, and quality of each channel (activation and retention by channel, not just volume).
- Attribution: which touchpoint gets credit (last-click, first-click, multi-touch, data-driven). All are models with biases; privacy changes (mobile tracking restrictions, cookie limits) make user-level attribution increasingly incomplete, so teams combine it with incrementality tests (geo or holdout experiments) and marketing-mix models.
acq = users.groupby("channel").agg(signups=("user_id", "size"), activation_rate=("activated", "mean"))
acq.sort_values("signups", ascending=False).round(2)
Activation
Activation is the moment a new user first experiences the core value (the "aha moment"). For TiffinBox: first meal delivered on time and rated ≥ 4. Find candidate activation events by checking which early behaviours predict long-term retention (then validate causally with experiments, since correlation can mislead). Improve activation by shortening time to value: fewer sign-up steps, sensible defaults, onboarding focused on the first success.
Engagement
- DAU, WAU, MAU: distinct active users per day/week/month, under a meaningful definition of "active".
- Stickiness = DAU/MAU (or WAU/MAU for weekly products): how habitual the product is.
- Depth and frequency: meals per subscriber per week; sessions per user; feature adoption (% of active users who used the planner) and retention of the feature itself.
- Engagement should reflect value, not just time spent: for TiffinBox, more app sessions might mean confusion.
weekly = activity.assign(wk=activity.week_start.dt.to_period("W"))
wau = weekly.groupby("wk").user_id.nunique()
meals_per_active = weekly.groupby("wk").meals.sum() / wau
pd.DataFrame({"WAU": wau, "meals_per_active": meals_per_active.round(2)}).tail(4)
Retention
Cohort retention tables
Group users by cohort (sign-up or first-delivery week) and compute the share still active N weeks later. Reading across a row shows one cohort's decay; reading down a column shows whether newer cohorts retain better (the effect of product changes).
act = activity.merge(users[["user_id", "first_delivery", "schedule"]], on="user_id")
act["cohort"] = act.first_delivery.dt.to_period("M")
cohort_size = act[act.week == 0].groupby("cohort").user_id.nunique()
active = act.groupby(["cohort", "week"]).user_id.nunique().unstack() # NaN = week not observable yet
retention = active.div(cohort_size, axis=0)
retention[[0, 1, 4, 8, 12]].round(2) # rows: monthly cohorts; columns: weeks since first delivery
# 2026-04 cohort: 1.00, 0.91, 0.68, 0.47, 0.32 … recent cohorts show NaN for weeks that haven't happened
# (a young cohort's last cell is only partly observed, e.g. Sep week 4 = 0.45, so it reads low)
# Retention by segment, using only cohorts old enough to observe week 12 (immature cohorts bias late weeks down)
mature = act[act.first_delivery <= pd.Timestamp("2026-10-19") - pd.Timedelta(weeks=13)]
seg = mature.groupby(["schedule", "week"]).user_id.nunique().unstack()
(seg[[4, 8, 12]].T / seg[0]).T.round(2) # the hybrid problem from chapter 181 shows up immediately
# week 4/8/12: full_time 0.77 / 0.60 / 0.47 · hybrid 0.63 / 0.40 / 0.26
Retention variants: N-day/N-week retention (active on exactly that period), unbounded/rolling retention (active on or after day N), revenue retention (below). Choose the period that matches the product's natural usage frequency (weekly for lunch subscriptions, daily for messaging, monthly for invoicing).
Conversion and funnels
A funnel measures the share of users who progress through ordered steps (landing → sign-up → plan selected → payment → first delivery). Compute both step conversion and overall conversion, within a time window, and segment by channel, platform and app version to locate drop-offs.
steps = ["visited", "signed_up", "plan_selected", "payment_added", "first_delivery"]
counts = pd.Series([50_000, 6_000, 4_300, 3_500, 3_340], index=steps)
funnel = pd.DataFrame({"users": counts,
"step_conversion": (counts / counts.shift(1)).round(3),
"overall": (counts / counts.iloc[0]).round(3)})
funnel # the biggest leak is visit → sign-up (12%); overall 6.7%
-- Funnel from events with an ordered, time-bounded definition (PostgreSQL)
WITH firsts AS (
SELECT user_id,
MIN(ts) FILTER (WHERE event = 'signed_up') AS t1,
MIN(ts) FILTER (WHERE event = 'plan_selected') AS t2,
MIN(ts) FILTER (WHERE event = 'payment_added') AS t3
FROM events WHERE ts >= DATE '2026-10-01' GROUP BY user_id
)
SELECT COUNT(t1) AS signed_up,
COUNT(*) FILTER (WHERE t2 > t1 AND t2 < t1 + INTERVAL '7 days') AS selected_plan,
COUNT(*) FILTER (WHERE t3 > t2 AND t3 < t1 + INTERVAL '7 days') AS added_payment
FROM firsts;
Revenue
| Metric | Definition |
|---|---|
| MRR / ARR | Monthly (annual) recurring revenue from active subscriptions |
| ARPU / ARPA | Average revenue per user (account) over a period |
| New, expansion, contraction, churned MRR | Components of MRR change; net new MRR = new + expansion − contraction − churned |
| Gross margin | (Revenue − cost of goods sold) / revenue |
| Conversion to paid | Free/trial → paying |
| Average order value | For transactional products |
Churn
"Churn" has several meanings; always state which:
- Customer (logo) churn rate: customers lost during a period / customers at the start.
- Revenue churn: MRR lost from cancellations and downgrades / starting MRR.
- Net revenue retention (NRR): (starting MRR + expansion − contraction − churn) / starting MRR; above 100% means existing customers grow revenue even with churn (common in B2B).
- Voluntary vs involuntary: involuntary churn from failed payments (expired cards, mandate failures) is often a large, fixable share: retries, reminders and updating payment methods recover it.
- Monthly ↔ annual: annual retention = (1 − monthly churn)¹²; 5% monthly churn means only 54% of customers remain after a year, not 40%.
def annual_from_monthly(churn_m): return 1 - (1 - churn_m) ** 12
round(annual_from_monthly(0.05), 3) # 0.46 lost per year → 54% retained
# Monthly logo churn from the synthetic data: subscribers active in month m but not in m+1
monthly = activity.assign(m=activity.week_start.dt.to_period("M")).groupby("m").user_id.apply(set)
months = list(monthly.index)
churn = {str(months[i]): 1 - len(monthly.iloc[i] & monthly.iloc[i + 1]) / len(monthly.iloc[i])
for i in range(len(months) - 2)} # skip the last, incomplete month
{k: round(v, 3) for k, v in list(churn.items())[-3:]} # ≈ 26–28% a month: very high, mostly hybrid users
Lifetime value, acquisition cost and payback
Customer lifetime value (LTV): expected gross profit from a customer over their lifetime.
- Simple steady-state formula: LTV ≈ ARPU × margin % / churn rate (per period). With ARPU ₹4,400/month, the 19% contribution margin computed below, and 9% monthly churn: 4,400 × 0.19 / 0.09 ≈ ₹9,300. At the ~28% monthly churn in the synthetic data above it would be only ≈ ₹3,000: retention is the biggest LTV lever.
- More robust: cohort-based LTV, summing actual margin per cohort over observed months and projecting the tail from the retention curve; discount future months for long horizons.
- CAC (customer acquisition cost): total acquisition spend / new customers, per channel.
- LTV : CAC ratio (a common heuristic target is ≥ 3 for subscription businesses) and CAC payback (months of gross profit to recover CAC).
def ltv_simple(arpu, gross_margin, monthly_churn): return arpu * gross_margin / monthly_churn
def payback_months(cac, arpu, gross_margin): return cac / (arpu * gross_margin)
ltv = ltv_simple(4400, 0.19, 0.09) # ≈ ₹9,289
cac = {"referral": 900, "instagram": 3200, "google": 2600, "office_drive": 1800}
{ch: {"ltv_cac": round(ltv / c, 1), "payback_m": round(payback_months(c, 4400, 0.19), 1)} for ch, c in cac.items()}
# referral 10.3× (1.1 months) · instagram 2.9× (3.8) · google 3.6× (3.1) · office_drive 5.2× (2.2)
# Different channels have different retention too: compute LTV per channel, not one global LTV.
Cost to serve and unit economics
Cost to serve is the cost of delivering the product to one unit (customer, order, meal, API call): it decides whether growth makes the company healthier or just bigger.
TiffinBox's contribution margin per meal:
price_per_meal = 220 # ₹, 20-meal plan
costs = {
"food": 92, "packaging": 14, "kitchen_fee": 18,
"delivery": 34, # rider cost per meal after batching ~12 meals per trip
"payment_fees": 4.4, # ~2% of price
"support": 6, # support cost per meal (falls if skips are self-serve!)
"cloud_and_sms": 1.6, # infrastructure + notifications
"waste_and_refunds": 8,
}
contribution = price_per_meal - sum(costs.values())
margin_pct = contribution / price_per_meal
round(contribution, 1), f"{margin_pct:.0%}" # ₹42.0 per meal, 19%
def delivery_cost(meals_per_trip, trip_cost=410): return trip_cost / meals_per_trip
[round(delivery_cost(m), 1) for m in (6, 12, 18)] # density drives cost: 68, 34, 23 ₹ per meal
Engineering affects cost to serve directly: self-serve flows cut support cost; routing and batching algorithms cut delivery cost; efficient infrastructure and right-sized AI usage (chapter 158) cut per-request cost. Cost per transaction belongs on engineering dashboards next to latency.
Engineering metrics
Service health
| Metric | Definition | Notes |
|---|---|---|
| Latency | Time to serve a request; report percentiles (p50, p95, p99), not averages | Measure where users feel it (client or edge), per endpoint |
| Error rate | Failed requests / total (by error class: 5xx, timeouts, business errors) | Exclude expected client errors deliberately |
| Availability | Successful requests / total (request-based) or up minutes / total minutes (time-based) | Defined by an SLI, targeted by an SLO (chapter 116) |
| Saturation | Utilisation of the limiting resource | Leading indicator of latency |
Error budgets: an SLO of 99.9% monthly availability allows 0.1% failures, about 43 minutes of full downtime per 30-day month. When the budget is spent, reliability work takes priority over features.
lat_ms = np.concatenate([rng.lognormal(5.0, 0.35, 9800), rng.lognormal(7.0, 0.5, 200)]) # 2% slow tail
pd.Series(lat_ms).quantile([0.5, 0.95, 0.99]).round(0), round(lat_ms.mean()) # p50 149, p95 285, p99 1,020 ms; mean 178 hides the tail
slo = 0.999
minutes = 30 * 24 * 60
round((1 - slo) * minutes, 1) # 43.2 minutes of error budget per 30 days
Delivery performance (DORA)
DORA's research groups software delivery performance into throughput and instability metrics:
| Metric | Group | Definition |
|---|---|---|
| Deployment frequency | Throughput | How often changes are deployed to production |
| Change lead time | Throughput | Time from commit to running in production |
| Failed deployment recovery time | Throughput | Time to recover from a deployment that needed immediate intervention |
| Change fail rate | Instability | Share of deployments needing immediate intervention (rollback, hotfix) |
| Deployment rework rate | Instability | Share of deployments that are unplanned, made because of a production incident |
These are system metrics for teams and services, for improvement, not for ranking individuals. Research consistently finds that throughput and stability improve together in high-performing teams; speed achieved by skipping safety shows up in the instability metrics.
deploys = pd.DataFrame({
"deployed_at": pd.to_datetime(["2026-10-01 11:00", "2026-10-02 15:30", "2026-10-03 10:10", "2026-10-06 12:00",
"2026-10-07 16:45", "2026-10-08 11:20", "2026-10-09 14:00", "2026-10-10 10:30"]),
"first_commit_at": pd.to_datetime(["2026-09-29 10:00", "2026-10-01 18:00", "2026-10-02 09:00", "2026-10-03 17:00",
"2026-10-06 10:00", "2026-10-08 09:00", "2026-10-08 13:00", "2026-10-09 16:00"]),
"failed": [False, False, True, False, False, False, True, False],
"recovered_at": pd.to_datetime([None, None, "2026-10-03 10:52", None, None, None, "2026-10-09 15:40", None]),
"unplanned_fix": [False, False, False, True, False, False, False, True],
})
days = (deploys.deployed_at.max() - deploys.deployed_at.min()).days + 1
dora = {
"deploys_per_day": round(len(deploys) / days, 2),
"median_lead_time_h": round(((deploys.deployed_at - deploys.first_commit_at).dt.total_seconds() / 3600).median(), 1),
"change_fail_rate": deploys.failed.mean(),
"median_recovery_min": ((deploys.recovered_at - deploys.deployed_at).dt.total_seconds() / 60).dropna().median(),
"rework_rate": deploys.unplanned_fix.mean(),
}
dora # 0.89 deploys/day · lead time 25.1 h · change fail rate 25% · recovery 71 min · rework 25%
Connecting engineering metrics to product outcomes
Engineering metrics matter because they move product metrics:
- Latency → conversion and engagement (slower checkout pages convert worse; measure your own elasticity with experiments that add small delays, or with natural variation).
- Error and crash rates → retention and support cost.
- Availability during the 11:00–13:00 lunch peak matters far more than at 3 am: define SLOs on user journeys ("place/skip an order"), weighted to business hours.
- Delivery performance → speed of learning: more frequent, safer deploys mean more experiments per quarter.
- Cost per request → gross margin.
Dashboards for a product team should show product outcomes, the guardrails, and the engineering metrics that drive them on one page.
Dashboards and metric reviews
- Few metrics, clearly defined, with targets, trends and annotations (releases, incidents, campaigns).
- Segment by default: platform, cohort, channel, schedule type; averages hide problems.
- Weekly metric review: what changed, why, what we'll do; link to experiments and incidents.
- Alert on metric breaks (sudden drops in events often mean broken tracking, not user behaviour).
- Data quality checks on the pipelines that compute metrics (chapter 150).
Traps
| Trap | Example | Defence |
|---|---|---|
| Vanity metrics | Total sign-ups ever, app downloads, page views | Prefer rates, cohorts and value-linked metrics |
| Goodhart's law ("when a measure becomes a target, it ceases to be a good measure") | Support team rewarded for short handle time closes tickets unresolved | Pair targets with guardrails; review behaviour behind numbers |
| Simpson's paradox | Overall retention improves while every segment gets worse, because the mix shifted toward full-time users | Always segment; compare like with like |
| Survivorship bias | Surveying only current users about why people stay | Include churned users and non-users |
| Correlation as causation | "Planner users retain better, so the planner causes retention" (engaged users use more features) | Experiments, or careful causal methods |
| Averages over skewed data | Mean latency, mean revenue per user | Percentiles and distributions |
| Changing definitions silently | "Active" redefined mid-quarter | Versioned metric definitions in a semantic layer |
# Simpson's paradox in two lines of data: each segment's retention falls, but the total rises
q1 = pd.DataFrame({"segment": ["hybrid", "full_time"], "users": [800, 200], "retained": [320, 120]})
q2 = pd.DataFrame({"segment": ["hybrid", "full_time"], "users": [300, 700], "retained": [111, 406]})
for name, q in (("Q1", q1), ("Q2", q2)):
print(name, (q.retained / q.users).round(2).tolist(), round(q.retained.sum() / q.users.sum(), 2))
# Q1 [0.4, 0.6] 0.44 · Q2 [0.37, 0.58] 0.52 → every segment worse, overall better (mix shift)
Lab: product metrics in SQL
Setup. PostgreSQL 16 on the lab machine. Data, a stated substitute: the chapter's synthetic TiffinBox dataset (seed 42) loaded into three tables: tb_users (6,000 sign-ups from April to October 2026, with channel, work schedule, activation and first delivery), tb_activity (26,018 active subscriber-weeks with meals taken) and tb_events (78,929 app events generated for those weeks: opens, menu browsing, orders, skips). The data ends on 2026-10-18. It's synthetic, so its "findings" are built in; what the lab measures is how metric definitions and analysis choices change the numbers you'd report.
Experiment 1: four definitions of "active"
For the week of 12–18 October:
select
(select count(distinct user_id) from tb_events where day between '2026-10-12' and '2026-10-18') as any_event,
(select count(distinct user_id) from tb_events where day between '2026-10-12' and '2026-10-18' and event = 'open_app') as opened_app,
(select count(distinct user_id) from tb_events where day between '2026-10-12' and '2026-10-18' and event = 'order') as ordered_in_app,
(select count(distinct user_id) from tb_activity where meals > 0 and week_start between '2026-10-06' and '2026-10-18'
and week_start + 6 >= '2026-10-12') as paid_delivery_week;
| Definition | Active subscribers |
|---|---|
| any app event | 1,167 |
| opened the app | 970 |
| ordered in the app | 523 |
| a paid delivery that week | 1,201 |
The smallest is 44% of the largest. Subscribers get value without opening the app (deliveries arrive anyway), so app-event definitions undercount the people who matter; "ordered in the app" measures a behaviour (manual ordering) that a subscription mostly makes unnecessary. Write the chosen definition down, with its SQL, in a shared metric catalogue.
Experiment 2: the denominator
Week-4 retention for subscribers observed at least four weeks:
| Denominator | Retention |
|---|---|
| activated subscribers | 0.687 |
| all sign-ups | 0.379 |
Neither is wrong; the second also includes the 45% who never activated. Label every rate with its denominator.
Experiment 3: cohorts versus averages
Average observed active weeks per activated subscriber, by sign-up month:
| Cohort | Apr | May | Jun | Jul | Aug | Sep | Oct |
|---|---|---|---|---|---|---|---|
| avg weeks seen | 10.26 | 10.28 | 9.26 | 8.19 | 6.22 | 3.95 | 2.19 |
This looks like a product in steep decline. The cohort table, which only fills a cell once every member of the cohort is old enough to be measured, says otherwise:
| Cohort | Week 1 | Week 4 | Week 8 | Week 12 |
|---|---|---|---|---|
| Apr | 0.911 | 0.688 | 0.468 | 0.325 |
| May | 0.902 | 0.692 | 0.503 | 0.365 |
| Jun | 0.922 | 0.688 | 0.475 | 0.343 |
| Jul | 0.916 | 0.694 | 0.474 | — |
| Aug | 0.906 | 0.685 | — | — |
| Sep | 0.897 | — | — | — |
| Oct | 0.940 | — | — | — |
Retention at each age was flat across cohorts (week 4: 0.685–0.694). The "decline" was right-censoring: recent customers simply haven't had time. Lifetime and LTV estimates need survival methods (Kaplan–Meier, or modelling the weekly churn hazard), not averages of what has been observed so far.
Experiment 4: channels and value
Price ₹120 per meal, 30% contribution margin, value observed so far per sign-up:
| Channel | Sign-ups | Activation | Margin per sign-up so far |
|---|---|---|---|
| referral | 1,514 | 0.709 | ₹702 |
| office drive | 872 | 0.630 | ₹670 |
| 2,125 | 0.470 | ₹473 | |
| 1,489 | 0.453 | ₹470 |
Instagram brings the most sign-ups and among the least value per sign-up. Compare this per-sign-up value with each channel's acquisition cost (CAC) to decide budgets; and since these values are also censored, compare channels within the same sign-up months.
Try it yourself
- Write the week-8 retention query split by
scheduleand confirm the hybrid gap from the Start Here chapter. - Estimate the weekly churn hazard per schedule and compute expected lifetime weeks without censoring bias.
- Build a funnel (sign-up → activation → week-4 retained → week-8 retained) by channel.
- Add test accounts (10% of events from 5 users) and show how unfiltered metrics move.
Revision sheet: product metrics
Key ideas
- Frameworks: AARRR (acquisition, activation, retention, referral, revenue), HEART (happiness, engagement, adoption, retention, task success), North Star metric with input metrics.
- Definitions (event, window, filters, denominator) are part of the metric; keep them in a catalogue with SQL.
- Tracking plan: named events, properties, owners, privacy classification, tests.
- Retention by cohort at equal age; survival thinking for lifetimes; beware right-censoring.
- Funnels with step definitions and time windows; segment by channel, platform, cohort.
- Revenue: MRR/ARR, ARPU, expansion and contraction; churn (logo vs revenue).
- Unit economics: LTV vs CAC, payback period, contribution margin, cost to serve (including infrastructure and AI inference cost per user).
- Engineering metrics: DORA (deployment frequency, lead time, change failure rate, time to restore), SLOs.
- Traps: vanity metrics, Goodhart's law, Simpson's paradox, mix shifts, survivorship, novelty effects.
Numbers to remember
- Lab: four "active" definitions ranged 523–1,201.
- Lab: week-4 retention 68.7% of activated vs 37.9% of sign-ups.
- Lab: average weeks fell 10.3 → 2.2 by cohort purely from censoring; week-4 retention flat at ~69%.
Pitfalls
- Undefined or drifting metric definitions.
- Comparing cohorts at different ages.
- Rates without denominators.
- Counting test accounts and bots.
- Optimising one metric with no guardrails.
Glossary
- Cohort: users grouped by start period.
- Right-censoring: outcomes not yet observable for recent units.
- LTV / CAC: lifetime value / customer acquisition cost.
- North Star metric: the single metric that best captures delivered value.
- Goodhart's law: a measure that becomes a target stops being a good measure.