> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abtestly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# A/B test guardrail metrics and primary goals

> Every experiment has exactly one primary goal that decides the winner, and any number of guardrails that catch collateral damage.

Every experiment measures at least two things: the thing you want to
improve, and the things you cannot afford to break. The first is the
**primary goal**. The others are **guardrails**.

> [!NOTE]
>
> **Availability.** The two [system guardrails](https://docs.abtestly.com/goals/system-defaults.md)
> attach automatically on **every plan, including Legacy Free**.
> Attaching your own goals as guardrails is listed from the **Starter
> plan** upward on the [pricing page](https://abtestly.com/pricing).
> The free tier closed to new signups on 5 September 2026; see [the Free tier](https://docs.abtestly.com/plans.md#the-free-tier).
>
> On every plan, an experiment has exactly one primary goal. ABTestly
> never lets two goals decide one verdict, so there is no combination
> rule, because there is never anything to combine.

## Primary

The primary goal decides the verdict. When the results page says
"Variant B wins", it means "wins on the primary goal". Exactly one goal
is primary; pick it in the experiment editor under **What to measure**.
Promoting a goal to primary clears its guardrail flag automatically, so
a goal is never both at once.

Pick the primary goal that maps to the thing you actually want to
change. For a checkout test, primary is usually a purchase or a
checkout completion event. For a landing page test, it is usually the
CTA click that leads into the funnel, not the eventual purchase, which
happens far downstream and adds noise.

**Rule of thumb:** the primary should fire on a large enough share of
visitors that the confidence interval closes in a reasonable time.
Very downstream events with tiny fire rates take forever to call.

## Guardrails

Guardrails are goals you do not want to *win*, you want them to *not
break*. Once the primary goal has a winner, that same variation is
checked against every guardrail.

Common guardrails:

* **Increase Engagement** and **Engaged session**, attached
  automatically. See [System defaults](https://docs.abtestly.com/goals/system-defaults.md).
* **Revenue per visitor**, for tests near the funnel, to catch a
  "clicks more but buys less" pattern.
* **A downstream conversion**, for early funnel tests, to catch the
  same pattern one step later.

## How a guardrail is judged

A guardrail resolves to one of four states, evaluated only after the
primary goal has a winner:

| State | What it means |
| - | - |
| Not evaluated | The primary goal has no winner yet, so nothing is checked. |
| Not enough evidence | The winning variation or its control is below 100 visitors on this guardrail. |
| Holding | The winner is not conclusively worse than control on this guardrail. |
| Breached | The winner is conclusively worse than control on this guardrail. |

Guardrails use the same statistics engine as the primary. Frequentist,
sequential, or Bayesian, whichever engine you picked for the
experiment applies to all of its goals. A breach requires both that the
engine's evidence threshold is met **and** that the effect direction is
downward.

> [!WARNING]
>
> **"Holding" is not proof of safety.** It means no conclusive harm was
> detected, which is a different claim. ABTestly runs no equivalence or
> non inferiority test, and there is no margin you can set, so a
> guardrail with thin data will read as holding even when a meaningful
> regression is entirely compatible with what was observed. Read the
> guardrail's interval to see what sizes of harm have not been ruled out
> before you treat holding as a green light.
>
> There is also **no correction across guardrails**. Each is judged on
> its own threshold. Attaching many guardrails to one experiment raises
> the chance that at least one reads as breached by chance alone, in the
> same way running many tests does. Attach the guardrails you would act
> on, not every metric you have.

## What to do with a guardrail breaching win

Three options:

1. **Ship anyway if you understand the tradeoff.** A test that lifts
   revenue by 5 % but drops engagement by 1 % might still be net
   positive, depending on what engagement means for your business.
2. **Iterate.** Take the winning variation, fix the guardrail problem,
   re-test.
3. **Do not ship.** The lift did not survive contact with a guardrail
   that matters.

The results page will call it out. It does not decide for you.

## Do I always need guardrails?

For a first pass, no. The two system guardrails auto attach and cover
the two most common failure modes.

Add task specific guardrails when you know a specific downstream metric
is what actually matters: a purchase for a hero test, a return rate
for a shipping information test, a support ticket rate for a
documentation change.

## Detaching the system guardrails

You can detach them per experiment (they do not disappear from the
library). Detach when you have a good reason:

* **A test on a page that is intentionally a dead end.** A confirmation
  page is designed to end the visit.
* **A single page app where the "second page" concept does not fit.**
  The ten second condition still works, but you may prefer a goal that
  reflects your app's own definition of engagement.

Otherwise, leave both attached. They are cheap and they catch real
mistakes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.