Create A/B tests by chatting with AI and launch them on your website within minutes.

Try it for FREE now

Guardrail Metric

Last updated

Quick answer

A guardrail metric is a measure you decide, before an A/B test starts, must not deteriorate while you try to improve the primary metric. It is the constraint on the decision, not a second prize for the variant to win.

Key takeaways

  • The primary metric is what you hope to move. A guardrail is what must not get worse.
  • A conversion-rate win with a falling average order value can reduce revenue per visitor. That is not a ship.
  • Write the guardrail and the amount of harm you will tolerate before the first visitor, then check it at launch and at the end.

Definition

A guardrail metric is a measure you decide, before an A/B test starts, must not deteriorate while you try to improve the primary metric. It is the constraint on the decision, not a second prize for the variant to win.

What Guardrail Metric means in A/B testing

The primary metric matches the hypothesis. A product-page copy test might use add-to-cart rate. That rate can rise because the page attracts cheaper orders, angers people into tickets, or slows the next page down. A guardrail watches one of those failure modes. Typical guardrails on a commerce test are average order value , revenue per visitor, refund rate, and support contacts. A page-speed test uses a conversion guardrail in the other direction. The QA checklist asks for guardrails at setup, checks that the events actually fire, and tells you to watch them in the first two days.

Why Guardrail Metric matters

Optimizing a single rate is how teams ship a local win and a business loss. The primary metric was chosen because it moves sooner and is easier to power. The guardrail is closer to money or to harm, and it is easier to ignore when the dashboard's main number is green. Writing the allowed damage in advance stops that argument from being invented after the chart is seen.

Example of Guardrail Metric

Primary metric: add-to-cart rate. Control converts 800 of 10,000 visitors, which is 8.0%. The variant converts 920 of 10,000, which is 9.2%. Average order value, the guardrail, is $62 on the control and $51 on the variant. Revenue per visitor is 0.080 × $62 = $4.96 on the control and 0.092 × $51 = $4.69 on the variant. Add-to-cart is up 15% relative. Revenue per visitor is down about 5%. The checklist's own example of this pattern is a conversion-rate lift with a crashing average order value, and it is not a win. You do not ship. You rewrite the variant so it is not only pulling in smaller baskets.

How to use Guardrail Metric

In the test plan, name one primary metric and one to three guardrails. For each guardrail, write the movement that would block a ship, such as "revenue per visitor down more than 2%" or "error rate up on the variant." Confirm the events fire on both arms before launch. At the end, read the guardrail on the same sample as the primary metric. If the primary wins and the guardrail breaches the limit you wrote down, the result is a failed test, not a partial win.

Common mistake

A common mistake is promoting a guardrail to the primary metric after the primary comes back flat. That is a second look at a metric you did not power. Another is using a sitewide revenue number that includes pages outside the test, so a campaign on another URL looks like the variant hurt the guardrail.

Related A/B testing terms

FAQ

How many guardrails should one test have?

A few that would actually change the decision: usually revenue quality, a downstream step, and a page-experience check such as error rate or a Core Web Vital. A long list of extra metrics becomes another way to peek. You will always find one that moved by chance.

Does a guardrail need the same sample size as the primary metric?

Often it needs more, because the harm you care about is smaller than the lift you are hunting, or because the guardrail event is rarer. If you cannot power a refund-rate guardrail, say so in the plan and use a directional check plus a manual review, instead of pretending a flat refund count proves safety.

What if the primary metric wins and the guardrail is flat?

That is the clean ship, provided the guardrail was measured on the same visitors and the test ran its planned sample. Flat means you did not see the harm you defined. It does not mean every unmeasured metric is safe.

Try the A/B Testing Tool That's Free Up to 100K Monthly Tracked Users

Visual editor, AI-generated variants with MidaGX, redirect testing, and GA4 integration — free forever in the Mida Sandbox. No credit card required.

Decorative graphicDecorative graphicDecorative graphicDecorative graphic