Short answer
Guardrail metrics are the numbers you are not trying to improve but must not damage, such as refunds, page speed or unsubscribes; you set an acceptable margin for each before the test and only ship a winner if every guardrail stays within it.
Key takeaways
- A success metric asks whether the change helped; a guardrail asks whether it hurt something else.
- Pick three to five guardrails: business health, user experience and data quality.
- Test guardrails for non-inferiority against a margin you set in advance, not for significance.
- Sample ratio mismatch is a guardrail too: if the split is off, no other number can be trusted.
A test can win on its main metric and still be a bad idea. A pop-up that grabs email addresses can lift signups while visitors leave faster. A free-shipping banner can raise orders while margins fall. Guardrail metrics are how you catch that before the change goes live for everyone.
What is a guardrail metric?
A guardrail metric is a measure that has to stay within an agreed margin of its usual level for a change to ship, even though the change was aimed at something else.
Every experiment has a success metric, the thing the change is meant to move. Guardrails sit beside it. Spotify's experimentation team describes the split this way: success metrics look for evidence that the hypothesis is right, guardrail metrics look for harmful side effects. A launch needs a success metric that improved and guardrails that held.
Which guardrails should an online store use?
Pick one or two from each of three groups: business health, user experience and data quality.
| Group | Example guardrails | What harm it catches |
|---|---|---|
| Business health | Average order value, gross margin per visitor, refund or return rate | More orders that are smaller, cheaper or come back |
| User experience | Page load time, bounce rate, support contacts, unsubscribes | A change that annoys people or breaks something |
| Data quality | Sample ratio, share of visitors with tracking events, error rates | A test whose numbers can't be trusted at all |
Choose guardrails that the change could plausibly affect. A new product photo layout should be watched for page speed and returns. A checkout change should be watched for payment errors and support tickets. Copying the same long list into every test makes it noise.
Why is sample ratio mismatch a guardrail?
If the traffic split differs from what you planned, the groups are no longer comparable, so every other metric in the test is suspect.
A 50/50 test that ends with 52,000 visitors in A and 48,000 in B usually means something filtered or redirected one group differently: a bot rule, a slow page, a tracking bug. Check it in the SRM checker before you look at anything else. A p-value below 0.001 there stops the analysis.
How do you test a guardrail properly?
Set a non-inferiority margin before the test and check whether the confidence interval for the change stays above it.
A regular significance test asks "is B different from A?". For a guardrail the question is narrower: "is B not worse than A by more than X?". That is a non-inferiority test.
- Before launch, agree the margin for each guardrail. Example: average order value may not fall by more than 2%.
- After the test, compute the confidence interval for the change in that metric.
- If the whole interval sits above −2%, the guardrail passes.
- If the interval reaches below −2%, the change might be doing unacceptable harm, even if the result is "not significant".
That last point is where most teams slip. "No significant drop in order value" is not proof that order value held. With a small sample the interval can be wide enough to hide a real 5% drop. The Spotify paper above makes the related point that guardrails need enough power, otherwise a team can fail to see harm and still feel safe.
How do you choose the margin?
Base each margin on what the harm would cost compared with what the main metric is expected to gain.
Start with money where you can. If a test is expected to add 4% to orders, a 1% drop in average order value is a fair price; a 5% drop is not. For experience metrics, use what you already tolerate: if page load time varies by 100 milliseconds from week to week, a margin of 50 milliseconds is too tight to test and 300 may be too loose. Write each margin as a number, not a feeling, and keep the same margins for similar tests so results stay comparable. When nobody can agree on a margin, that is usually a sign the guardrail was not really needed.
What do you do when a winner fails a guardrail?
Don't ship it as is; find out why the guardrail moved, then decide whether a fixed version is worth testing.
Example: a bolder "Buy now" button lifts orders per visitor by 6%, significant. Return rate rises from 8% to 10%, outside the agreed margin of one percentage point. The extra orders may be impulse buys that come back.
Options:
- Look at net revenue after returns per visitor. If it still improved, the guardrail margin may have been too strict, and you can make that call openly.
- Change the design to keep the clarity without the push, and test again.
- Drop the change if the extra returns cost more than the extra orders earn.
What you shouldn't do is quietly drop the guardrail from the report. The significance calculator gives you the interval for each metric; put them all in the write-up.
How many guardrails are too many?
More than five or six guardrails per test usually means some will fail by chance and the team will learn to ignore them.
Each guardrail is another test. With ten of them, one is likely to look worse purely from noise. Keep the list short, choose metrics tied to real costs, and write down the margins where everyone can see them before the test starts.
Common questions
What is the difference between a guardrail metric and a secondary metric?
A secondary metric is something you look at to understand the result, such as add-to-cart rate when the goal is orders. A guardrail has a rule attached: if it gets worse by more than the agreed margin, the change does not ship, however good the main metric looks.
How many guardrail metrics should a test have?
Three to five is enough for most tests. Each one adds a chance that random noise looks like harm, and a list of twenty guardrails tends to get ignored.
Do guardrail metrics need a bigger sample?
Sometimes. Showing that a metric did not fall by more than a small margin can need as much data as detecting an improvement. If a guardrail matters a lot, size the test for it as well as for the main metric.
What if a guardrail is borderline?
Look at the confidence interval. If it overlaps the margin, you do not yet know whether the harm is acceptable. Run longer, accept the risk knowingly, or fix the cause and test again.