A/B and bandit tests

How to run split and multi-armed bandit tests on site pages, choose a goal, read the results and apply the winner, with no deploy or third-party script.

Updated · 3 min read

You can test what converts on the marketing site without a deploy or a third-party script. Pick a published page and a goal, build each variant in the page editor, and start the test. Each visitor sees one variant, always the same one. When the evidence is strong, the results page suggests a winner, and applying it writes the winner into the page's draft, ready to publish.

Start a test

  1. Open Admin → Experiments and click New experiment.
  2. Optionally start from a template. There are three tests worth running first: a new hero headline, a new label on the main button, or the pricing page's middle plan highlighted as "Most popular". The template writes Variant B for you.
  3. Choose the page, what changes and the goal.
  4. Choose the traffic: a fixed split or a multi-armed bandit.
  5. Build each variant, publish the page, then click Start test.

The New experiment page estimates how many visitors the test needs, and how many days that takes, from the page's conversion rate for that goal over the last 28 days. Until 100 visitors have been measured, it starts from 3% and says why. You can overwrite either figure. A bandit usually needs fewer visitors than the estimate; a test with more variants needs more.

What can vary

KindWhat variesWhere you build it
The whole pageEach variant is its own copy of the pageThe full editor, in variant mode, from each variant's Edit page button
One sectionA Split test block holds one version of the section per variantInline on the page's canvas, one tab per variant

A test starts as a draft with Control and Variant B at 50/50. You can add up to eight variants, and the weights must add up to 100. Each variant says in words what it changes from the page. If the page is edited after a variant was copied from it, the variant says so and can catch up while keeping its own edits. Compare shows two variants side by side at desktop or phone width.

Only one page test can run on a page at a time. Variants, goal and traffic can change only while the test is a draft.

Goals

A goal is one to five events from the analytics registry, counted when any or all of them happen. Each can be narrowed to a page or a link address where the event allows it. Examples: a sign-up, a click on the pricing button, a visit to /pricing, a newsletter signup or a new paid subscription. Each visitor converts at most once per test, and only after they were assigned.

Visitors are assigned before the page renders, so the control never flashes. The assignment lives in a first-party cookie with no personal data. Bots get the control and aren't counted. Admins are never counted; they preview any variant by adding ?experiment=<id>&variant=<key> to the page address.

Split or bandit

  • Split sends traffic at random by the weights you set. Use it when you want a clean comparison.
  • Bandit splits by weight until every variant has 100 visitors, then sends more traffic to the variants doing best (Thompson sampling). Use it when you'd rather lose fewer conversions while the test runs.

Read the results

The results page shows visitors, conversions, conversion rate with a 95% interval, uplift against the control, and each variant's chance to beat the control and to be best, day by day. Download CSV saves the daily numbers. Results refresh every 30 seconds while the test runs.

A winner is suggested once every variant taking traffic has at least 100 visitors and one of them has at least a 95% chance to be best. You still complete the test and choose the winner yourself; the dialog preselects the suggestion.

Admin → Experiments opens on a dashboard: tests running, visitors and conversions over 30 days, and a Needs a decision list.

FlagMeans
Traffic split is offA split test's visitors don't match its weights. Check for a broken variant.
Ready to callA winner is suggested.
No clear winnerRunning 28 days or more without a suggested winner.
Idle draftA draft unchanged for 14 days.

Finish a test

Pausing keeps showing returning visitors their variant and assigns nobody new. Completing records a winner, or none to keep the control. Apply winner to page copies the winning variant into the page's draft (for a section test, it replaces the Split test block with the winning version). Publish the page to make it live.

Duplicate makes a new draft with the same page, goal, traffic and variants, and none of the counts.

Something unclear or missing? Ask us and we'll answer, then fix the page.