Skip to content
Glossary

A/B testing

A/B testing compares two versions of something, such as a headline, a pricing page or a signup form, by showing each version to a random share of visitors at the same time. The version that converts better wins, provided the difference is larger than chance alone would explain.

Updated

Also called: A/B test, split testing, split test, bucket testing

How a test works

  1. Pick one goal

    Decide up front what counts as success, such as starting a trial, and how you'll measure it. One primary metric keeps the result honest.

  2. Change one thing

    Version A is what you have now; version B changes the headline, the layout or the offer. Changing several things at once tells you B is better, not why.

  3. Split visitors at random

    Each visitor sees one version, assigned by chance, and keeps seeing it. Random assignment is what makes the two groups comparable.

  4. Fix the sample size

    Before you start, work out how many visitors each version needs to detect the change you care about. See sample size.

  5. Run it, then read it once

    Stop at the planned sample size and test the difference for statistical significance.

A worked example

A pricing page test over two weeks (illustrative numbers).
VersionVisitorsTrials startedConversion rate
A (current)4,0001604.0%
B (new headline)4,0002005.0%

B converts 1 point higher, a 25% relative lift. A two-proportion test gives p ≈ 0.03: a gap this large would be unlikely if the versions really performed the same. The 95% confidence interval for the difference runs from about 0.1 to 1.9 points, so the true gain could be small.

Mistakes that ruin tests

  • Peeking. Checking daily and stopping the moment B pulls ahead raises the chance of a false winner well above the 5% you think you're accepting.
  • Too little traffic. Small tests can only detect large effects. 'Not significant' often just means the test was too small.
  • Versions at different times. A before-and-after comparison mixes your change with seasonality, campaigns and news.
  • Changing the split mid-test. Moving from 50/50 to 90/10 halfway mixes different periods of traffic into each group.
  • One person in both groups. If people can see both versions, the comparison is no longer clean.

A/B tests with Linqry

Linqry doesn't assign variants or run experiments; your testing tool or your own code decides who sees which version. Linqry counts what each group does. Two setups work well:

  • Separate paths. Serve the versions at different URLs, such as /pricing and /pricing-b. Build one funnel per version, with the page as step one and your goal event as step two.
  • Exposure events. Keep one URL and fire an event named after the version shown, such as pricing-viewed-a or pricing-viewed-b, as step one of each funnel.

Each funnel's step conversion is that version's conversion rate. Name versions in the event name rather than in a property: properties are stored, but the dashboard doesn't break counts down by property value.

Related terms

Frequently asked questions

How long should an A/B test run?

Until it reaches the sample size you planned, and for at least one full week so every weekday is included. Stopping as soon as the result looks significant overstates the winner.

Is split testing the same as A/B testing?

Usually, yes. Some people reserve split testing for versions that live at different URLs, but the method and the statistics are the same.

Measure your own site without cookies

No card required · 30-day trial · No cookies