Metrics
Metrics are how A vs B knows whether your experiment succeeded or failed. You define what a "conversion" means: a button click, a page visit, a form submission, a purchase. The platform then measures how often each variation (one specific version being tested, the control or one of the challengers) achieves it.
This section covers the everyday metric types first: clicks, pageviews, custom events, and revenue. Further down are the advanced types built for expert users. These are ratio metrics, quantile metrics, composite metrics, and winsorization (capping extreme values, like one giant order, before averaging).
Two ways to create a metric
There are two paths to a new metric, and both produce exactly the same result:
- The metric builder wizard (recommended for most people). Click Build on my site on the Metrics page and A vs B opens your own website with a guided panel on top. To track a button, you click the button. To track a page, you confirm the page. No code and no URL rules to learn. The wizard creates click and pageview metrics. See Metric Builder Wizard.
- The advanced form. Click New metric to fill in the definition yourself. This path covers every metric type, including custom events and org-wide metrics, and gives you full control over matching rules. See Click Metrics and Pageview Metrics.
In this section
Key concepts
Every experiment must have exactly one primary metric (the one metric it's actually judged on). You can also add as many secondary metrics as you like. They give you extra context, but don't affect the winner calculation.
A metric belongs to your organization, not to one experiment. You create it once and attach it to as many experiments as you need. Each metric lives in a single project, or is shared org-wide across every project. Only an organization admin can create an org-wide metric. Any change you make to a metric applies to every experiment that uses it. See What Are Metrics? to learn more about where a metric can be used.