Sub topic 9
Making sure you can actually measure it
This chapter assumes you have already chosen a primary metric and set thresholds, as in the earlier chapters. It covers the step between "we know what to measure" and "we can trust the number": instrumentation. Instrumentation means adding code or configuration so the product records the events your metric needs.
Why instrumentation belongs in the criteria
A success criterion is only usable if the data to compute it exists. Teams often write a metric such as "activation within 7 days" and discover at the review that nobody recorded when a reminder was sent. You cannot recover that data afterwards. If the event was not logged on day one, the time box is partly wasted.
Treat instrumentation as part of the launch checklist, not as a later improvement. Launch is blocked until you can compute the metric from real events.
From metric definition to events
Start from the metric definition and work backwards. For the invoice-reminder example, the definition is:
activation_rate = users who send at least one reminder within 7 days / users who sign up
Each noun and verb in that sentence becomes something you must record.
| Part of the definition | What you must record | Typical event or field |
|---|---|---|
| users who sign up | A stable user ID and the sign-up time | `user_signed_up`, `user_id`, `timestamp` |
| send a reminder | One event per reminder sent | `reminder_sent`, `user_id`, `timestamp` |
| within 7 days | Comparable timestamps in one time zone | UTC timestamps |
| exclude noise | A way to filter staff and test accounts | `is_internal` flag |
Keep the list short. Record only the events that feed your primary metric and the one or two supporting metrics. Extra events add work and raise privacy obligations without improving the decision.
A minimal event log
You do not need an analytics platform to start. A table with one row per event is enough. The following Python example uses an in-memory SQLite database to show the idea and computes the activation rate from the raw events.
import sqlite3
from datetime import datetime, timedelta
db = sqlite3.connect(":memory:")
db.execute(
"CREATE TABLE events ("
"user_id TEXT, name TEXT, ts TEXT, is_internal INTEGER DEFAULT 0)"
)
def log(user_id, name, ts, is_internal=0):
db.execute(
"INSERT INTO events VALUES (?, ?, ?, ?)",
(user_id, name, ts.isoformat(), is_internal),
)
start = datetime(2026, 1, 5, 9, 0)
log("u1", "user_signed_up", start)
log("u1", "reminder_sent", start + timedelta(days=2))
log("u2", "user_signed_up", start)
log("u3", "user_signed_up", start)
log("u3", "reminder_sent", start + timedelta(days=9)) # too late
log("qa", "user_signed_up", start, is_internal=1) # test account
query = """
SELECT
COUNT(*) AS signups,
SUM(EXISTS (
SELECT 1 FROM events r
WHERE r.user_id = s.user_id
AND r.name = 'reminder_sent'
AND julianday(r.ts) - julianday(s.ts) <= 7
)) AS activated
FROM events s
WHERE s.name = 'user_signed_up' AND s.is_internal = 0
"""
signups, activated = db.execute(query).fetchone()
print(f"{activated}/{signups} activated = {activated / signups:.0%}")The output is 1/3 activated = 33%. User u3 sent a reminder, but on day 9, so the definition correctly excludes it. The internal account qa is excluded as well. Both exclusions come directly from the written definition, which is why the definition must be exact.
Check the pipeline before launch
Run a dry run with a few fake users and confirm that the computed number matches what you did by hand. Look for these common failures:
- Missing events. The action happens but nothing is logged, for example when a reminder is sent by a background job that skips the logging code.
- Duplicate events. A retry or a double click logs the same action twice and inflates counts. Decide whether you count users or events, and deduplicate by user.
- Unstable identity. A user who signs up on one device and acts on another appears as two people. Use an account ID, not a browser cookie, for your primary metric.
- Mixed time zones. Store UTC and convert only when displaying.
- Test data in the results. Flag internal and test accounts from the start.
Record what you cannot measure
Some assumptions are hard to measure with events alone, such as why users leave. For those, add a small qualitative step, such as a short exit question or five interviews. Write it into the criteria document as a supporting source, and do not let it replace the primary metric.
Exercise
Your primary metric is "users who invite a teammate within 3 days of sign-up / users who sign up". List the events and fields you must record, and name two checks to run before launch.
Show answer
Record a sign-up event (userid, UTC timestamp), an invite-sent event (inviter userid, UTC timestamp), and an internal-account flag. Checks: (1) a dry run with fake users where the computed rate matches a hand calculation, including an invite sent on day 4 that must be excluded; (2) a test that repeated invites from one user count that user once and that internal accounts are filtered out.