Skip to content
Growth and experiments

What is A/B testing?

3 min read · Updated · By the Reveata team

Short answerA/B testing is an experiment in which visitors are split at random between two versions of a page, email or flow, and you compare a chosen outcome, such as sign-ups or revenue, to learn which version works better.

An A/B test replaces opinion with evidence. Instead of arguing about whether a shorter headline or a different price layout will work, you show both to real visitors at the same time and let their behaviour decide. Version A is usually what you have now (the control); version B is the change.

How an A/B test works

  1. Write a hypothesis. "Moving the pricing table above the testimonials will get more visitors to start a trial." One change, one expected effect.
  2. Pick one primary metric before you start: a goal such as start_trial, or revenue per visitor. Choosing afterwards invites you to cherry-pick whichever number happened to move.
  3. Split traffic at random. Each visitor is assigned to A or B and should keep seeing the same version on later visits.
  4. Run it for a fixed period. Decide the length in advance, cover full weeks so weekday and weekend visitors are both included, and do not stop the moment one side pulls ahead.
  5. Compare the results and check whether the difference is larger than chance alone would produce. That is what statistical significance is about.

A test with more than two versions is an A/B/n test. Testing several elements at once, in every combination, is called multivariate testing, and it needs far more visitors to reach a conclusion.

How to measure variants with Reveata

Reveata has no built-in experiment tool: it does not assign visitors to variants and it has no significance calculator. Use a testing tool, your own code or an edge redirect to split traffic, and use Reveata to measure what each group did, including what they paid.

  • Give each variant its own URL, for example /pricing and /pricing-b. Then filter the dashboard on Entry page or Page (see filters and segments) and compare goal conversions, revenue and revenue per visitor for each.
  • Record the outcome as a goal, such as signup or start_trial, so it can be counted per variant. See custom goals.
  • Add the variant as a property. If you send pageviews yourself (data-auto="false"), you can attach reveata('pageview', { props: { variant: 'b' } }). Custom pageview properties appear in the dashboard's Properties card and can be used as a filter.
  • Use a funnel with the variant page as the first step to see where each version loses people. See funnels.
  • Add a note on the chart on the day the test starts and ends, so later readers know why the numbers moved.

Because payments are linked to visits through revenue attribution, you can judge a variant by money, not only by clicks.

Common mistakes

  • Peeking and stopping early. Checking every day and stopping when B looks ahead turns random noise into false winners.
  • Too little traffic. On a small site a few visitors can swing the result. Run the test longer, or test bigger changes that would have a larger effect.
  • Changing several things at once in what you call an A/B test. If B wins, you will not know why.
  • Testing during unusual periods, such as a launch or a sale, then expecting the result to hold afterwards.
  • Measuring the wrong thing. A variant that gets more clicks on "Start trial" but fewer paying customers is not a winner.

Frequently asked questions

How long should an A/B test run?

Long enough to reach the sample size you planned before starting, and at least one full week so every day of the week is represented. Decide the length in advance rather than stopping when the result looks good.

Can I A/B test with low traffic?

You can, but only large differences will be detectable. With few visitors, test bold changes, measure a step that many people reach, and accept that some tests will end without a clear answer.

Does Reveata split traffic between variants?

No. Reveata measures each variant's visitors, goals and revenue once you give the variants separate URLs or tag them with a pageview property; the split itself has to come from your testing tool or your own code.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is statistical significance?Statistical significance means a difference you measured, such as a higher conversion rate for one page version, is unlikely to be explained by random chance alone, judged against a threshold you set before the test.GlossaryWhat is conversion rate optimisation (CRO)?Conversion rate optimisation (CRO) is the practice of finding out why visitors do not take the action you want, such as signing up or buying, then changing your pages or flow and measuring whether more of them do.GlossaryWhat does building in public mean?Building in public is the practice of openly sharing how you build a product or company, such as progress updates, decisions, mistakes and often real traffic and revenue numbers, with the people who follow along.GlossaryWhat is a growth loop?A growth loop is a closed cycle in which the output of one round, such as new users, content or referrals, becomes the input of the next round, so growth compounds instead of depending on a fresh push of marketing each time.GlossaryWhat is activation rate?Activation rate is the percentage of new users who complete the action that shows they got real value from a product, such as creating a first project or seeing their first report, within a set time after signing up.GlossaryWhat is an aha moment in a product?An aha moment is the point at which a new user first experiences the value a product promised, for example seeing their own data in a useful report, which makes them far more likely to keep using it.