Sub topic 9
Making sure you can actually measure it
This chapter assumes you already have a written primary metric with a definition, a baseline, targets, a minimum sample and a time box. It also assumes you can read short Python scripts and understand percentages and ratios. Here the question changes from "what should we measure?" to "will the data exist, and will it be right, when the decision date arrives?"
A success criterion that you cannot compute is only a wish. Many MVP experiments fail for this reason. The team launches, waits six weeks, and then finds that the events were never logged, users cannot be linked across sessions, or half the "users" are the team's own test accounts. At that point the time box is spent and the decision is made by gut feeling, which is what pre-committed criteria were meant to prevent.
Start from the metric definition, not from the tool
Pick the tool last. Start by breaking the metric definition into the facts that must be recorded.
The running example is the invoice-reminder tool. Its primary metric is:
activation_rate = users who send >= 1 reminder within 7 days / users who sign upThe definition contains five things you must be able to determine:
| Part of the definition | What you must record | Typical failure |
|---|---|---|
| "users" | A stable identifier per person | Anonymous sessions counted as users, so one person counts twice |
| "sign up" | A timestamped sign-up event | Sign-up logged only on the client, so it is lost when the browser closes |
| "send a reminder" | A server-side event when a reminder leaves the system | Logging button clicks instead of reminders actually delivered |
| "within 7 days" | A timestamp on both events, in one time zone | Mixed local and UTC times shift events across the window boundary |
| "users who sign up" (denominator) | The full set of sign-ups, including those who did nothing | Logging only active users, so the rate is always near 100% |
If a row has no answer, change the metric or add the missing instrumentation before launch. Do not leave it for later.
Write a tracking plan
A tracking plan is a short list of the events you will log and the properties each one carries. It is the bridge between the criteria document and the code. Keep it to the events your metrics need. Every extra event adds maintenance and raises the chance of a mistake.
tracking_plan: invoice-reminder-tool
id_field: user_id # assigned server-side at sign-up, never reused
timestamps: UTC, ISO 8601, written by the server
events:
- name: signed_up
fires_when: account is created and the user_id is assigned
properties: [user_id, ts, acquisition_channel]
used_by: activation_rate (denominator)
- name: accounting_tool_connected
fires_when: OAuth connection succeeds
properties: [user_id, ts, provider]
used_by: leading indicator
- name: reminder_sent
fires_when: the email provider accepts the message
properties: [user_id, ts, invoice_id]
used_by: activation_rate (numerator)
exclusions:
- internal and test accounts, flagged by is_internal at creationThe used_by field is useful. If an event is not used by any metric in the criteria document, remove it. If a metric needs an event that is not in the plan, you have found a gap while it is still cheap to fix.
Choose the event source deliberately
Where an event is recorded affects how trustworthy it is.
- Server-side events are the most reliable. Ad blockers, closed tabs and flaky networks do not affect them. Use them for anything that decides the outcome, such as sign-ups, payments and the core action.
- Client-side events are easier to add but can be lost. Browsers block tracking scripts, and a user can close the page before the request completes. They suit secondary signals such as which screen a user viewed. They are a poor choice for the numerator or denominator of your primary metric.
- Third-party analytics tools save setup time. Before you rely on one, check that you can export raw events and that you know how it identifies users. Tools that report only aggregates can make it hard to verify a number or recompute it under a different definition.
- Manual records are legitimate for a very small MVP. A spreadsheet that you update by hand after each customer call can be more accurate than a half-working analytics setup. This is common when the MVP is a concierge or "Wizard of Oz" service. Use it when you expect fewer than a few dozen users and the key event is something you personally observe.
Identity: the part that breaks most often
Your metric counts people, but most tools see browsers or sessions. A rate whose numerator counts users and whose denominator counts sessions is meaningless.
Follow these rules:
- Assign a
user_idon the server at sign-up and attach it to every later event. - Decide how pre-sign-up visitors are linked to the account. If your criteria include a visit-to-sign-up rate, you also need an anonymous ID that is merged with the
user_idwhen the account is created. - Never reuse an ID. A deleted account must not hand its ID to a new user.
- Count each user once per metric. A user who sends ten reminders is one activated user.
Time windows and users who have not finished yet
A definition such as "within 7 days of sign-up" creates a subtle trap. A user who signed up two days ago has not had a full window. Counting them in the denominator pulls the rate down for reasons unrelated to product quality.
The fix is to include only matured users in the rate. A matured user is one whose full window has elapsed at the time you measure. Report the still-in-window users separately.
A measurement script you can test before launch
Write the metric computation before launch and run it on fake data. The script below applies the rules from this chapter: it excludes internal users, counts each user once, honors the time window, separates users still in the window, and reports orphan events. An orphan is a reminder_sent event whose user has no signed_up event. Orphans signal an instrumentation bug.
from datetime import datetime, timedelta
WINDOW = timedelta(days=7)
def parse(ts):
return datetime.fromisoformat(ts)
def activation_report(events, internal_users, as_of):
ordered = sorted(events, key=lambda e: parse(e["ts"]))
signups = {}
reminders = {}
for e in ordered:
uid = e["user_id"]
if uid in internal_users:
continue
if e["event"] == "signed_up" and uid not in signups:
signups[uid] = parse(e["ts"]) # first sign-up only
elif e["event"] == "reminder_sent":
reminders.setdefault(uid, []).append(parse(e["ts"]))
matured = {u: t for u, t in signups.items() if t + WINDOW <= as_of}
activated = [
u for u, t in matured.items()
if any(t <= r <= t + WINDOW for r in reminders.get(u, []))
]
orphans = sorted(set(reminders) - set(signups))
return {
"signups": len(signups),
"matured": len(matured),
"activated": len(activated),
"rate": round(len(activated) / len(matured), 3) if matured else None,
"still_in_window": len(signups) - len(matured),
"orphan_users": orphans,
}
events = [
{"user_id": "u1", "event": "signed_up", "ts": "2026-01-05T09:00:00"},
{"user_id": "u1", "event": "signed_up", "ts": "2026-01-05T09:00:02"}, # duplicate
{"user_id": "u1", "event": "reminder_sent", "ts": "2026-01-06T10:00:00"},
{"user_id": "u2", "event": "signed_up", "ts": "2026-01-05T11:00:00"},
{"user_id": "u2", "event": "reminder_sent", "ts": "2026-01-20T11:00:00"}, # too late
{"user_id": "u3", "event": "signed_up", "ts": "2026-01-06T08:00:00"},
{"user_id": "u4", "event": "signed_up", "ts": "2026-01-20T08:00:00"}, # window still open
{"user_id": "team1", "event": "signed_up", "ts": "2026-01-04T08:00:00"},
{"user_id": "team1", "event": "reminder_sent", "ts": "2026-01-04T09:00:00"},
{"user_id": "u5", "event": "reminder_sent", "ts": "2026-01-10T09:00:00"}, # no sign-up
]
report = activation_report(
events, internal_users={"team1"}, as_of=datetime(2026, 1, 22)
)
print(report)
# {'signups': 4, 'matured': 3, 'activated': 1, 'rate': 0.333, 'still_in_window': 1, 'orphan_users': ['u5']}Each line of fake data tests one rule. If you change the script and the output no longer matches the comment, you have broken a rule. Keep this script and its fake data. You will run the same code on real data at the decision date.
Dry-run before launch
Test the measurement as carefully as the product. A reasonable pre-launch routine has these steps:
- Create two or three test accounts and flag them as internal.
- Walk through the whole journey, from sign-up to the core action, and note the time.
- Check that every event in the tracking plan appears in your data store, with the right
user_idand a UTC timestamp. - Run the metric script on this data and confirm the result matches what you did by hand.
- Repeat on a different browser or device. This catches ad blockers and identity problems.
Add a few cheap checks to run during the experiment too, such as once a week:
- The number of
signed_upevents matches the number of rows in the accounts table. - No orphan events appear.
- No day has zero events when you know people used the product.
- The share of events with a missing
user_idis near zero.
Common measurement failures
| Failure | How it shows up | Prevention |
|---|---|---|
| Tracking added after launch | Early users have no data, so the baseline is missing | Freeze the tracking plan before launch and test it |
| Test accounts in the data | Rates look better than reality in small samples | Flag internal accounts at creation and exclude them in the script |
| Duplicate events | Counts exceed the number of real actions | Count distinct users, not events |
| Time zone mix-ups | Users appear to act before they signed up | Store UTC from the server only |
| Metric changed mid-experiment | Numbers before and after are not comparable | Version the definition and change it only with a recorded reason |
| Denominator missing | Rate looks like 100% | Log sign-ups independently of any later action |
Privacy and proportionality
Collect only what the metrics need. An MVP rarely needs names, free-text content or precise locations in its event stream. Use the user_id in analytics and keep personal details in the accounts system. If your users are in a region with data protection rules, check whether your analytics tool needs consent before it records anything. A smaller event set is also easier to test.
What to put in the criteria document
Add a short measurement section to your one-page criteria document:
- The tracking plan, or a link to it, and the source (server, client or manual) of each metric event.
- Where the raw events are stored and who can export them.
- The name of the script or query that computes each metric, kept under version control.
- The date of the pre-launch dry run and its result.
- A line stating which accounts are excluded and how they are flagged.
Exercise
Your sign-up flow logs signed_up only from the browser, after the confirmation page loads. During the experiment you see 140 rows in the accounts table but only 112 signed_up events. Name the effect this has on activation_rate and the change you would make.
Show answer
The denominator is too small because about 28 users are missing from it, while their reminder events are still logged on the server. The activation rate is therefore inflated, and some reminder events become orphans. Move the signed_up event to the server, where it fires when the account is created, and recompute the rate from the accounts table for the period already affected. Record the bug and the corrected figures instead of silently changing the numbers.
Exercise
Today is 2026-02-10. A user signed up on 2026-02-06, and your metric is "sends at least one reminder within 7 days of sign-up". Should this user be in the activation rate today? Why?
Show answer
No. Their 7-day window runs until 2026-02-13, so they have not had the full window. Counting them as "not activated" would bias the rate downward. Report them as still in window and add them to the rate once their window has closed.