Operations

Website A/B testing

How to run an A/B test on a website that sells: what to test first, how many visitors each version needs and when a winner is real.

· 8 min read · Editor: Max

An A/B test needs over 80,000 visitors per version to prove a 10% lift on a site converting 2% of visits, Axelion calculated in November 2026. Website A/B testing shows two versions of a page, button or chat to different visitors at the same time, so the results of each version can be compared fairly. A version wins only when the statistics say so, never after one good afternoon.

The stakes keep growing. US retail e-commerce sales reached $347.3 billion in the third quarter of 2026, seasonally adjusted, or 17.9% of all retail sales, the Census Bureau said on 19 November 2026. At that scale a change of half a percentage point in conversion, the share of visits that end in a lead (a visitor's name and contact) or an order, moves real money for a shop of any size. A store that earns $40,000 a month from 2% of its visits earns $50,000 at 2.5%, with the same traffic and the same ad budget.

The Census Bureau itself refuses to call a change real without enough evidence. Every quarterly change in its e-commerce release carries a margin, and when the 90% confidence interval of a change includes zero, the release says the bureau lacks "sufficient statistical evidence" that the change differs from zero. A website owner reading a test result deserves the same discipline.

What is website A/B testing

Website A/B testing is a controlled experiment: version A and version B run side by side, visitors are split between them at random, and one number decides the result. The split happens at the same time on purpose. A test that runs version A in October and version B in November measures October against November, with the holidays, the weather and the ad calendar all mixed in.

Three rules keep the experiment clean.

  1. One visitor, one version. A buyer who sees the green button on the first page and the blue button on the second page belongs to neither group. The visitor is assigned once and kept in that version for the whole visit.
  2. One change at a time. A test that swaps the headline, the photo, the price display and the button at once can show that B beats A, but never which change did the work. Bundle changes only when the goal is a full redesign and the question is simply "old or new".
  3. One goal agreed before launch. The goal is the action that brings revenue: a lead with a name and contact, a booked call, an order. Clicks and time on page are signals, not results.

What to test first on a website that sells

Test first the elements every visitor sees before deciding to stay: the first screen and its main button. The first screen carries the offer, the proof and the next step, and a weak one loses buyers before any other page can help.

Next comes the conversation layer, the place where a visitor turns into a lead. On a site with a sales chat, five elements decide whether a question becomes a contact:

  • the photo and name of the assistant in the chat window;
  • the button that opens the chat and its label;
  • the first message the visitor reads;
  • the moment the contact card appears in the conversation;
  • the banners and promo blocks that point visitors to the chat or the offer.

The order matters because traffic is limited. Every test uses up weeks of visitors, so each one has to target a decision with money behind it. Changing the footer font is a test nobody needs.

How many visitors an A/B test needs

An A/B test needs enough visitors in each version to produce at least 20 conversions, and far more to prove a modest gain. Two numbers set the size: the current conversion rate and the smallest lift worth detecting. The lower the conversion rate, the more visits each conversion costs.

Visitors needed per version of an A/B test, by baseline conversion rate, Axelion calculation, November 2026

Baseline conversion rateVisits per version for 20 conversionsVisits per version to detect a 50% relative liftVisits for the whole two-version test
1%2,0007,75015,500
2%1,0003,8267,652
3%6672,5185,036
5%4001,4712,942
10%2006861,372

Checked 24 November 2026.

The second column is plain division: 20 conversions divided by the conversion rate. The third uses the standard formula for comparing two proportions, with 95% confidence and 80% power, the chance of catching a lift that is really there, rounded up to the next visitor. A 50% relative lift means 2% rising to 3%, or 5% to 7.5%.

The table turns into a calendar. A site with 300 visits a day and a 2% rate fills both versions of the 50% test in under four weeks. The same site chasing the 10% lift from the first paragraph, 2% to 2.2%, needs 21 times as many visitors, which takes over a year. Small sites test big changes; only large sites can afford to hunt small ones.

Run every test for at least one full week, even when the numbers arrive sooner: buyers on a Monday morning behave differently from buyers on a Saturday night.

When a variant is really the winner

A variant is the winner when the 95% confidence interval for the gap between the two versions lies entirely above zero, after both versions have collected enough conversions. A confidence interval is the range of values the data so far cannot rule out at that level of confidence.

A worked example shows why patience pays. Version A gets 20 leads from 1,000 visits and version B gets 30 leads from 1,000 visits. B looks 50% better, yet the 95% interval for the gap runs from minus 0.4 to plus 2.4 percentage points, so a gap of zero is still possible. At 40 against 60 leads from 2,000 visits each, the same rates give an interval that starts just above zero, and B wins.

Three mistakes destroy more tests than bad ideas do.

  • Stopping at the first spike. Checking results every morning and stopping the day B looks ahead turns random noise into a decision. Set the sample size before launch and read the result when it is reached.
  • Measuring clicks instead of leads. A louder button collects more clicks and sometimes fewer contacts. The goal agreed before launch is the only number that decides.
  • Hunting for segments after the fact. Splitting the results by country, device or day after the test ends will always find some group where B won. Segments worth checking are named before launch.

Even split or more traffic to the leader

An even split gives the cleanest answer and suits decisions that will stand for months, such as a new first screen or a new chat greeting. Each version gets half the visitors from the first day to the last, and the result says how much better the winner is.

The alternative is a bandit, named after the slot machine with several arms: the test starts even, then sends a growing share of visitors to the version that converts best so far. A bandit loses fewer leads during the test, because the weaker version gets less traffic as soon as it falls behind. The price is a weaker answer: the losing version collects fewer visits, so the size of the gap stays less certain.

The choice follows the life of the change.

  • A permanent element, such as the main headline, the pricing layout or the contact card, gets an even split.
  • A short promotion, such as a holiday banner that runs for two weeks, gets a bandit, because there is no time to learn first and earn later.
  • A test with three or more versions starts even and moves to a bandit only after every version has reached its minimum of conversions.

How Axelion runs A/B tests in the chat and on the site

Axelion, an AI sales agent that answers visitors in a website chat, splits visitors between variants and keeps each visitor in one variant for the whole visit, so every number belongs to one version. In each conversation a visitor asks a question in the chat, leaves a name and contact, and gets the answer; the saved contact is the lead each variant is judged by.

The chat itself is testable piece by piece, from the assistant's photo and name to the moment the contact card appears, along with the rules and texts the agent follows, and blocks of your own site run as experiments too. For every variant the console shows visits, conversations and leads side by side, and the statistics and A/B testing page explains where each number comes from.

Promo blocks follow a stricter rule. One line of code puts a card or a banner, marked as advertising in the language of the page, on any page of the site. A campaign either splits traffic evenly or gives more of it to the variant that converts best, and a variant is called the winner only when its 95% confidence interval says so, after at least 300 viewable impressions and 20 conversions for each variant. A viewable impression means at least half of the block stayed on screen for one second.

Leads from every variant land in the same console with the page they came from, and from the Pro plan they reach your team's Telegram chat as they arrive; the pricing page lists what each plan includes. Which four numbers matter when judging the agent itself, beyond any single test, is covered in the article on measuring an AI sales agent.


A test plan fits on one line: one change, one goal, a sample size written down before launch, and a full week at minimum. The Census Bureau publishes its next quarterly e-commerce estimate on 19 February 2027; a 50% test started this week on a site with 300 visits a day and a 2% rate will have its answer weeks before that release.

Axelion answers in seconds, around the clock. It replies in your website chat, recommends the right product from your pages, saves every lead and hands complex cases to your team. WhatsApp and Telegram on Business. See it on your own website →

Related articles

AI vs human customer service

← All articles