← Back to Blog
October 22, 2026 5 min read

How to Choose A/B Test Metrics: One Primary, a Few Guardrails

a/b testingmetricsguardrailsexperiment design

Most experiments that end in a shrug started with a vague goal. "Improve the pricing page" is a direction. "Raise the share of visitors who start checkout" is a metric. Choosing well before launch is the cheapest way to make every result useful.

Start with one primary metric

Your primary metric answers a single question: did the change do what we built it to do? Pick one, write it down, and let it decide the outcome. A signup page test should be judged on signups. A pricing page test should be judged on checkout starts or purchases. With one primary metric, the result is a clear yes or no instead of a debate over which numbers to celebrate.

Good primary metrics sit close to the change. A headline edit affects what visitors do next on that page, so a click or form start reacts quickly and gives you a clean signal. Revenue per visitor is valuable too, and it works best when the change touches price or plan choice directly.

Add guardrails that protect the experience

Guardrails are metrics you watch to make sure a win is a real win. A shorter signup form may lift completions while lowering the quality of the leads. A bolder banner may lift clicks while slowing the page. Choose two or three guardrails that reflect what matters to the business, such as refund rate, activation within seven days, page load time, or support contacts. Decide in advance how much movement is acceptable, then ship the winner when the primary metric improves and the guardrails hold steady.

Use diagnostic metrics to learn why

Diagnostic metrics explain a result without deciding it. If a variant wins, scroll depth, button clicks and form field progress show where the lift came from. Those details become the hypothesis for your next test. Experiment Flow lets you send custom events with track(experimentId, eventType, data), so you can capture these steps alongside the main conversion.

Record the conversion with a value

The SDK call convert(experimentId, value, goalName) takes a numeric value and an optional goal name. When no value is supplied, it records 1. Supply the order total for purchases, and a plain 1 for signups. Naming the goal, for example "checkout_started" or "purchase", keeps your results readable when several goals run on the same page.

ef.convert(42, 29.00, 'purchase');

A quick checklist before you launch

  • Write the hypothesis in one sentence: "Changing X will raise Y because Z."
  • Name one primary metric and the direction you expect.
  • List two or three guardrails with the movement you will accept.
  • Choose the unit, such as visitor or user, and keep it consistent for the whole test.
  • Pick a diagnostic event or two that will help explain the outcome.

Metrics for bandits

Bandits need one number per decision: a reward. Convert your primary metric into a reward between 0 and 1 where possible, such as 1 for a purchase and 0 for no purchase. The bandit then shifts traffic toward the arm that earns more of it. Your guardrails still deserve a look in the dashboard while traffic moves.

Try it

Create an experiment in Experiment Flow, name your goal, and send your first conversion in minutes. Start free and give your next test a metric plan that makes the answer obvious.

Ready to optimize your site?

Start running experiments in minutes with Experiment Flow. Plans from $29/month.

Get Started