Skip to main content
Blog

Conversion optimization

How to A/B test a landing page, step by step

Landing page A/B testing in 7 steps, from sizing the test to shipping the version that sells.

Start for free

To A/B test a landing page, show half your visitors the current page (A) and half a version with one change (B), on the same link, then keep whichever version earns more orders. The hard parts are choosing one change worth testing, sending enough visitors to trust the result, and not stopping early. This guide covers all seven steps, the sample size math for ad traffic, and what to test first.

Takeaways: Pick one goal, ideally orders or add-to-carts. Work out the visitors you need before you start: at a 3% conversion rate, a 20% lift takes about 14,000 visitors per version. Change one thing. Split visitors on one link so your ads and search listing never change. Call the winner at a 95% chance to beat the original, then ship it.

What is landing page A/B testing?

Landing page A/B testing (also called split testing) compares two versions of one landing page by sending each version to part of the same traffic and measuring which one converts better. Version A is the page you run today, the control. Version B, the challenger, changes one thing: the headline, the offer, the hero image or the buy box.

Because both versions get the same visitors at the same time, the difference in results comes from the change, not from a new ad, a sale or the day of the week. For a store, the result that matters is money: add-to-carts and orders, not time on page.

Diagram: one link sends 50% of visitors to version A, the original page, and 50% to version B, the same page with one change to the headline. Both feed into orders, where you keep the version that sells.
Both versions share one link and the same visitors, so the only difference between them is the one change.

How to A/B test a landing page in 7 steps

These steps work on any landing page. Where Replo does a step for you, it says so.

1. Pick the page and the one number that decides it

Start with the landing page that gets the most paid traffic, since a small lift there pays the most. Then choose one goal for the test:

  • An order, best when the page sells directly
  • An add-to-cart, when orders are too few
  • A click on the main button, for a quiz or a lead form

Decide it now. If you pick the goal after the test, you'll find a winner in whichever number happened to move.

2. Work out how many visitors you need

Before you build anything, check that the page gets enough traffic to detect the change you hope for. You need three inputs: your current conversion rate, the smallest lift worth acting on, and your daily visitors.

Put them into the A/B test significance calculator, which returns the visitors per version and the days the test needs. If the answer is three months, test something bolder or test a page with more traffic. The next section has worked numbers.

Replo's A/B test significance calculator with a page converting at 3%, 1,000 visitors a day and a 20% lift. The result reads 13,914 visitors per version, about 28 days at 1,000 a day split two ways.
Enter your rate, traffic and the lift you hope for: at 1,000 visitors a day, a 20% lift takes about four weeks to confirm.

3. Write a hypothesis from what visitors actually do

A good test starts from evidence, not a hunch. Look at three things first:

  • The ad that sends the traffic: does the page repeat its promise?
  • Heatmaps: where shoppers click, and how far they scroll
  • Your analytics: where visitors drop off before buying

Heatmaps in Replo run on every published page, so you can see whether shoppers ever reach the offer. Then write the hypothesis in one line: "Because most phone visitors never scroll past the hero, moving the offer above the fold will raise orders."

Three heatmap views of a product page for Marlow, an example rainwear brand. The scroll view in the middle is warm across the first screen, marked Everyone sees this and Most get here, then cools to Few get here by the reviews.
The scroll view shows where visitors stop. Whatever sits below the point most of them reach is a weaker test than the hero.

4. Build the challenger, changing one thing

Make version B identical to A except for the one change in your hypothesis. If you change the headline, the image and the price at once, you won't know which one moved the number.

In Replo, describe the change and Replo builds the new version: "make a version of this page with the headline from our best Meta ad". Check it on a phone before the test starts, since most ad traffic arrives there.

5. Split traffic on one link

Send each visitor to one version at random and keep them on it for the whole test, so a returning shopper doesn't see both. The cleanest way is to split on the page's own link. Your ads, emails and search listing keep pointing at one address, and nothing has to change when the test ends.

A/B testing in Replo works this way: Replo picks a version for each visitor before the page loads, so the URL never changes and nothing flickers. Pages in a Shopify theme have their own A/B testing in Theme Builder. For more on store setups, see A/B testing on Shopify.

6. Wait for the sample size you planned

Let the test run until both versions reach the visitors from step 2, and for at least one full week so weekday and weekend shoppers both count. Don't stop because version B looks ahead on day three. Early leads in small samples often shrink or flip.

Replo holds the verdict: a result reads Too early until each version has 100 visitors, 10 conversions and 7 days. Treat that as the floor, and still wait for your planned sample.

The Results tab of an example Replo A/B test, from Replo's help docs, after 14 days and 2,696 visitors. A banner reads 25% off headline is ahead, so keep the experiment running: 81% chance it beats the original, short of the 95% needed to call it. Version B converts at 8.5% against 7.5% for the original.
In this example, version B leads after two weeks, but at an 81% chance to win Replo says to keep the test running.

7. Read the result and ship the winner

Call a winner only when it clears your bar. Replo calls a version the winner once it has a 95% chance to beat the original, and shows the result in Insights next to your traffic, orders and revenue. Heatmaps for each version show why it won.

Ship the winner to every visitor, in the app or by asking Replo. If neither version wins, keep the original: you've learned that this change doesn't matter to your shoppers, and the next test should try something bigger. Write down every result, wins and losses, so you don't repeat a test.

How many visitors does a landing page test need?

The visitors you need depend on your conversion rate and on the lift you want to detect. These are visitors per version, at 95% confidence and 80% power, from the standard two-proportion formula the A/B test sample size calculator shows with your own numbers:

  • 2% conversion, 20% lift: about 21,100 per version
  • 3% conversion, 20% lift: about 13,900 per version
  • 3% conversion, 10% lift: about 53,200 per version
  • 3% conversion, 30% lift: about 6,500 per version
  • 5% conversion, 20% lift: about 8,200 per version

Two things follow. First, halving the lift you want to detect roughly quadruples the visitors you need, so small tweaks need big traffic. Second, a page with 1,000 visitors a day that converts at 3% can detect a 20% lift in about four weeks, split evenly. If your page gets less, test bigger changes: a new offer, not a new button color.

Bar chart titled Halve the lift you want to catch, and the test needs about 4 times the visitors. Visitors per version on a page converting at 3%: 6,454 for a 30% lift, 13,914 for a 20% lift and 53,210 for a 10% lift.
Going from a 20% lift to a 10% lift takes the test from about 14,000 to 53,000 visitors per version.

What to test first on a landing page

Start closest to the purchase, where a change moves orders rather than clicks:

  • The headline your ad promised: match the hook that earned the click.
  • The offer: a discount, a bundle or free shipping, stated above the fold.
  • The hero image: the product in use against the product alone, at phone size.
  • The buy box: price, reviews and the button, in the order shoppers read them.
KindTail's Pee PAWD product page with four places to test numbered: 1 the headline, 2 the offer banner for $100 in free gifts, 3 the hero image and 4 the buy box with Add to cart.
All four sit on the first screen of KindTail's product page, where every visitor sees them.

For tests other stores have run, from headlines to bundles, see our A/B test ideas for stores. For the parts every landing page needs before you test it, see the anatomy of a landing page.

Mistakes that ruin a landing page test

  • Stopping at the first good day. Checking daily and stopping on a lead inflates false winners. Wait for the planned sample.
  • Changing several things at once. You'll get a result but not a reason. Change one thing, or run a multivariate test with far more traffic.
  • Testing during a sale. A holiday spike brings shoppers who behave unlike your usual traffic. Run tests across normal weeks.
  • Splitting with a redirect. Sending half your visitors to a second URL adds a redirect, can flash the original page first and leaves a duplicate page in search. Google's website testing guidance asks for a canonical tag and a temporary redirect if you do. A one-link split avoids all of it.
  • Calling it on clicks when you sell products. A button that earns more clicks can still earn fewer orders. Judge by the goal you picked in step 1.
Google Search Central's website testing guidance with two lines highlighted: use the rel canonical link attribute on alternate URLs to point at the original, and use a 302 temporary redirect, not a 301 permanent redirect.
A test on two URLs needs a canonical tag and a temporary redirect, per Google. A test on one link needs neither.

Two stores that test their landing pages every week

Testing pays off when it becomes a habit rather than a one-off. Healthy Metal, a magnesium drink brand, ran 50 to 100 tests on one free-trial offer page fed by Meta ads, from banner colors to section design. One pricing test on its welcome offer page raised conversion rate 67% and revenue per visitor 54%.

Cords Club, a jewelry brand, tests product and collection page redesigns before rolling them out store-wide, and grew revenue per visitor 9% in 14 days.

Run your next landing page test in Replo

Replo runs the whole loop on every Replo site. Say what to try, and Replo builds the new version, splits visitors on one link and keeps the version that sells. Results sit next to your orders and revenue in Insights, with heatmaps for each version.

Replo's heatmap panel on an example dog toy store's home page, with the Revenue, Clicks, Scroll and Moves tabs. It lists each element by the revenue it led to: Shop Best Sellers in the hero earned $662 from 20 clicks.
Replo ties each click to the orders that followed, so you can see which part of a version earned the money.

Frequently asked questions

How do I A/B test a landing page?
Pick one goal, such as orders. Work out how many visitors each version needs, change one thing, and split visitors between the two versions on the same link. Wait until you reach the sample size you planned, then keep the version with at least a 95% chance to beat the original.
How many visitors does a landing page A/B test need?
It depends on your conversion rate and the lift you want to detect. At a 3% conversion rate, spotting a 20% lift takes about 14,000 visitors per version at 95% confidence and 80% power. Smaller lifts need far more. Plan it with a significance calculator before you start.
How long should I run a landing page A/B test?
At least one full week, so weekdays and weekends both count, and until each version reaches the sample size you planned. Most store tests run two to four weeks. Don't stop the moment one version pulls ahead: early leads often fade.
Can I stop a test early if it looks significant?
No. Checking every day and stopping at the first good result inflates false winners. Decide the sample size up front and wait for it. In Replo, a result reads Too early until each version has 100 visitors, 10 conversions and 7 days, and that floor is a minimum, not a target.
Does A/B testing a landing page hurt SEO?
Not if the test is set up cleanly. Google asks testers to avoid showing search engines different content than visitors, and to keep tests no longer than needed. Splitting visitors on one link, with no redirect to a second URL, keeps one page in search and nothing to clean up after.
What's the difference between A/B testing and split testing?
Usually nothing. Both compare two versions of a page by sending each to part of your traffic. Some people use split testing for two separate URLs and A/B testing for two versions on one URL. Multivariate testing changes several elements at once and needs far more traffic.

Start A/B tests

Replo splits your traffic between two versions of a page and tells you which one sells more.