"Did it work?"
Three months after the "save address" feature shipped, the head of e-commerce asks whether it was worth building. The team says it works: no bugs, nice UI. That is not the question. The question is whether repeat orders got faster or more frequent, and nobody can answer because nobody wrote down what to measure before it shipped.
A feature KPI is a number, defined before the build, that answers "did this do what we said it would?". Picking it is a Junior+ analyst's job, and it takes about an hour if you do it in order.
Step 1: start from the "so that"
The user story already names the benefit: so that I do not retype my address on every order. The metric lives in that sentence. Turn the benefit into something countable:
| Benefit in the story | Countable version |
|---|---|
| "do not retype the address" | share of repeat orders that use a saved address |
| "checkout is faster" | median time from cart to order confirmation for returning customers |
| "fewer failed deliveries" | share of orders with an address correction after dispatch |
Pick one primary metric. More than one and nobody knows which one counts when they disagree.
Step 2: build the metric tree
A single metric is a leaf on a tree whose root is a business goal. Draw the path so that the stakeholder sees how their goal connects to your number:

Reading up the tree: more repeat orders using a saved address → faster checkout for returning customers → higher repeat-purchase rate → revenue. You will not prove the whole chain; you commit to the leaf and show the plausible path.
Step 3: define it so that two people get the same number
This is where most feature KPIs quietly fail. "Share of repeat orders using a saved address" sounds precise; it is not. Write the definition as a small spec:
Metric: Saved-address adoption
Numerator: orders by customers with ≥1 previous order, where the delivery
address was selected from saved addresses (not typed)
Denominator: all orders by customers with ≥1 previous order
Window: calendar week, Mon–Sun, UTC
Excludes: staff accounts, test orders, orders cancelled within 1 h
Source: orders table (address_source = 'saved' | 'typed'), customer.first_order_at
Baseline: 0% (feature did not exist); comparison = typed vs saved checkout time
Target: 40% by week 8 after release
Owner: e-commerce analyst (Maya), reviewed weekly in the product sync
Every line removes an argument: "did you count guests?" (no, denominator), "did you include the test orders?" (no, excludes), "when do we look?" (week 8). The Source line is the one that makes a developer add a column (address_source) that would otherwise not exist, and that is the point: the metric is a requirement.
Step 4: guard rails
A primary metric can be gamed by accident. Saved-address adoption goes up if you hide the "type a new address" option, and failed deliveries go up with it. Name one or two guard-rail metrics that must not get worse:
- Delivery failures per 1,000 orders (must not rise).
- Checkout abandonment at the address step (must not rise).
A feature is a success when the primary metric moves and the guard rails hold. Write both in the ticket; the guard rails usually already exist in a dashboard, so this costs nothing.
Step 5: baseline, target, and when to look
- Baseline: the value before the change. If it cannot be measured (new behaviour), measure the nearest proxy (checkout time for typed addresses) so that you have something to compare.
- Target: a number a stakeholder said out loud, with a date. "40% by week 8" can be wrong; "increase adoption" cannot be anything.
- Review date: in the calendar, with a name. Metrics without a review date are decoration.
Writing it into the ticket
A short block at the end of the story is enough:
- Primary metric: saved-address adoption, definition linked, target 40% by week 8.
- Guard rails: delivery failures per 1,000 orders; address-step abandonment.
- Instrumentation: orders.address_source column; event address_selected with source. (This is a story of its own if the data does not exist.)
- Review: 8 weeks after release, in the product sync, owner Maya.
The instrumentation line is where analysts earn the feature: without it the review will be a feeling.
With AI
Models are good at proposing candidate metrics and at listing guard rails you might forget. They will also invent targets ("increase by 25%") with no basis; a target comes from a baseline and a stakeholder. Use the model for the long list, write the definition block yourself, and get the target from a person with a budget.
Try it (5–10 minutes)
Feature: "Customers can reschedule a delivery from the tracking page instead of calling support."
- Write the primary metric from the "so that". Then write its definition block, all nine lines.
- Name two guard rails and say what accidental behaviour each one catches.
- Draw the metric tree from your leaf up to a business goal in three steps. Which step would you not be able to prove?
Where this shows up in real work
- Product analyst and BA job posts ask for "defining success metrics" and "KPIs for features"; the interview case is usually "how would you know this worked?".
- In real teams the metric definition block is what ends the quarterly argument about whether a feature "worked"; the team that has it gets the next budget.
- Freelance product work is increasingly paid against outcomes; a defined metric with a baseline is what makes that contract possible.
Sources worth reading
Practice it on real drills
Define metrics for a featureReport / dashboard requirementsOptions appraisal (build / buy / do nothing)