Sub topic 4
Choosing Primary, Guardrail, and Secondary Metrics
Assume you know basic product terms such as funnels and KPIs, and that you can interpret proportions and percentages. This chapter focuses on choosing metrics for an experiment. It does not cover randomization or sample-size calculations.
A metric is a defined way to measure user behavior or system performance. Good metric choices connect the hypothesis to a decision. They also make it clear what success and harm would look like before the experiment starts.
The three metric roles
An experiment should usually have one primary metric, several guardrail metrics, and a small set of secondary metrics.
| Metric role | Main question | Example |
|---|---|---|
| Primary | Did the change achieve its main goal? | Checkout completion rate |
| Guardrail | Did the change cause unacceptable harm? | Payment error rate |
| Secondary | What else can help explain the result? | Average order value |
Primary metric
The primary metric is the main outcome used to judge the hypothesis. Choose one whenever possible. A single primary metric keeps the decision focused and reduces the temptation to select whichever result looks best later.
For a checkout address-autofill experiment, the primary metric might be:
> Checkout completion rate = completed purchases divided by eligible checkout starts.
Define the numerator, denominator, eligibility rules, time window, and unit of analysis. “Purchases increased” is too vague. It could mean more purchases per user, more purchases per session, or more total purchases because the treatment received more traffic.
The primary metric should be sensitive to the expected change and close to the user or business outcome described in the hypothesis. If the hypothesis says fewer form fields will reduce checkout friction, completion rate is more suitable than a page-view count.
Guardrail metrics
Guardrail metrics detect meaningful damage that the primary metric might hide. They should cover important user, business, technical, or compliance risks.
Useful guardrails for this example include:
- Payment error rate
- Refund or cancellation rate
- Page-load time at the 95th percentile
- Support contacts about checkout
A guardrail is not automatically a reason to stop for any small fluctuation. Define what counts as meaningful before launch. For example, the team might stop or investigate if payment errors rise by at least 0.5 percentage points.
Guardrails need owners. Engineering may own latency and error rates, while product or operations may own refunds and support contacts.
Secondary metrics
Secondary metrics provide context and help explain the primary result. They can reveal mechanisms, differences between user groups, or longer-term effects.
Examples include:
- Address-field completion time
- The percentage of users who use autofill
- Average order value
- Repeat purchase rate
- Conversion by device type
Do not treat every secondary metric as a success criterion. The more metrics you inspect, the more likely at least one will appear positive by chance. Label secondary metrics as exploratory unless the team has a planned statistical method and decision rule for them.
Define metrics before launch
Write metric definitions in the experiment brief. A compact specification might look like this:
primary_metric:
name: checkout_completion_rate
numerator: completed_orders
denominator: eligible_checkout_starts
unit: user_id
guardrail_metrics:
- payment_error_rate
- page_load_time_p95
secondary_metrics:
- address_autofill_usage_rate
- average_order_valueThe data team should confirm that the required events exist and that the definitions produce stable values. Product should confirm that the metrics represent the intended outcome. Engineering should confirm that the feature can emit the necessary events and technical measurements.
Common errors
- Choosing several primary metrics and declaring success if any one improves.
- Using a proxy metric, such as button clicks, when the real goal is completed purchases.
- Ignoring guardrails because the primary metric improved.
- Changing metric definitions after seeing the results.
- Treating a small movement as meaningful without a pre-agreed threshold.
- Comparing metrics calculated from different populations without documenting why.
Exercise
An experiment increases checkout completion but also increases payment errors by 0.8 percentage points. Which metric roles should guide the decision?
Show answer
Checkout completion is the primary metric, and payment error rate is a guardrail. Apply the pre-agreed guardrail threshold. The team should not ship automatically just because the primary metric improved.