Conversion Rate Optimization

A/B Testing for Ecommerce: What to Test, How Much Traffic You Need and How to Run It on Shopify

A practical guide to ecommerce A/B testing: split and multivariate tests compared, the traffic each test needs, what to test first, how to run experiments on Shopify, and how Lull doubled transactions by testing stories instead of buttons.

Updated October 30, 2026
Visitors per variant to detect a 10% lift at a 2% conversion rate
78K
Lull completed transactions after testing three landing page stories
+100%
Win rate of well-designed tests, vs 35% for poor ones (Optimizely)
58%
Two browser windows split from one point, the orange version showing a rising line, representing an A/B test

A/B testing in ecommerce means showing two versions of a page, offer or checkout to randomly split shoppers at the same time and keeping the one that sells more. It only works with enough traffic: at a 2% conversion rate, detecting a 10% lift takes about 78,000 visitors per version. The tests that pay off change what the page says, not just how it looks.

In short
  • Work out the traffic a test needs before you design it. Small stores should test bigger changes or measure add-to-cart.
  • Test the story and the offer before the buttons. Lull doubled completed transactions by testing three landing page stories.
  • On Shopify, Rollouts now runs theme and checkout experiments natively; apps cover prices, shipping and revenue metrics.
  • Decide the metric, sample size and duration before launch, and don't stop a test because one version looks ahead.
Optimizely, 173K tests
58%
win rate for well-designed experiments, vs 35% for poorly designed ones
Lull
+100%
completed transactions after testing three different landing page stories
Multi-variant tests
1.7x
up to this much more impact than simple two-version tests (Optimizely)

What is A/B testing in ecommerce?

An A/B test, also called a split test, sends each visitor at random to version A (the control) or version B (the change) and compares a business metric such as conversion rate, add-to-cart rate or revenue per visitor. Both versions run in the same weeks, to the same kind of traffic, so a difference that holds up statistically can be credited to the change rather than to a sale, an ad campaign or the season.

Three methods are often lumped together:

MethodHow it worksTraffic neededBest for
A/B testTwo or more versions of the same page, traffic split at randomModerateMost ecommerce tests: offers, page layouts, product page content
Split URL testEach version lives at its own URL and visitors are redirectedModerateWhole-page or whole-theme redesigns and different landing pages
Multivariate testSeveral elements change at once and every combination is measuredVery highHigh-traffic pages where you need to know how elements interact

Optimizely's analysis of 173,000 experiments run by more than 1,200 companies between 2018 and 2026 found that three in four were simple A/B tests and only 0.15% were multivariate. Tests with more than one challenger, such as three different versions against the control, delivered up to 1.7 times more impact. For most stores the useful move is not more elements per test but more meaningfully different versions.

Do you have enough traffic to A/B test?

This is the first question, because it decides what you can test. The visitors each version needs depend on your baseline rate and the smallest lift worth detecting. A common approximation, at 95% confidence and 80% power, is 16 × p × (1 − p) ÷ (p × lift)², where p is the baseline rate.

Baseline rateTo detect a 10% lift20% lift30% lift
1% purchase conversion158,000 per version40,00018,000
2% purchase conversion78,000 per version20,0008,700
3% purchase conversion52,000 per version13,0005,700
6% add-to-cart rate25,000 per version6,3002,800

A two-version test needs double these numbers in total. A product page with 10,000 sessions a month at a 2% conversion rate would take roughly four months to detect a 20% lift in purchases, but about five weeks to detect the same lift in add-to-cart rate, which averages 5.96% in Dynamic Yield's benchmarks.

Not enough traffic? Test bigger changes, measure a step higher in the funnel such as add-to-cart, test on the pages that get the most sessions, or release the change and measure it against a clean baseline. A small test that never reaches its sample is not a result.

What should you A/B test first?

Most stores start with elements: button colors, headline wording, image order. Those tests are easy to build, but the differences they produce are usually too small for the traffic most stores have, so they end inconclusive. The bigger opportunities sit in what the page says and offers.

LevelWhat you testExamplesWhen it fits
StoryWhy someone should buyThree landing pages built around three different motivationsLow conversion in a crowded category, or paid traffic that won't convert
OfferHow the value is packagedBundle vs single product, free shipping threshold, "free" vs "just pay shipping"Shoppers engage but hesitate at the price or the cart
Page structureWhat information appears and in what orderBenefits above the fold, reviews next to the price, shorter product descriptionsShoppers scroll but don't add to cart
FrictionSteps and fields that slow buyers downExpress payment buttons, guest checkout, shipping costs shown earlierDrop-off concentrated at cart or checkout
ElementHow a single detail looks or readsButton text, color, image orderHigh-traffic pages where the story already works

Optimizely's data points the same way. Hypotheses about clarifying value were used in more than a quarter of experiments and won 41% of the time, while findability and urgency hypotheses, only 14% of tests combined, won 60% and 56% of the time. The website conversion funnel guide shows how to find the stage that loses the most orders, which is where the first test should go.

By page, the strongest candidates are usually:

  • Landing pages: the headline promise, the story, the offer and the proof right below it.
  • Product pages: the order of benefits, ingredients or specs, review placement, bundles and subscription options.
  • Collection pages: filters, sorting, how much information each product card shows.
  • Cart and checkout: shipping cost visibility, express payment options, guest checkout. See checkout flow optimization.

Example: how Lull doubled transactions by testing stories

Lull sells mattresses, a category where every brand promises better sleep. Its landing pages worked, but they told the same story as everyone else. Instead of testing headline variations of that story, Glued built three landing pages that each told a different one:

  • Sleep Experts positioned buyers as people who understand sleep science.
  • Dream Environments used rich visuals to show different mattress features.
  • Effortless Sleep emphasized simplicity and price value.
+100%
Lull · completed transactions
With begin checkout up 12.5% and average revenue per user up 61%. The winning story was not the one anyone predicted, which is why it had to be tested. Source: Lull case study.

The same thinking applies to offers. Skin At Work tested "FREE" against "Just Pay for Shipping" as the framing of its offer, alongside making its educational content easier to reach and a dedicated BFCM bundles page. Over the engagement, its conversion rate rose 407% and its ad costs fell 87%. More examples are in CRO case studies.

How to run an ecommerce A/B test, step by step

  1. Start from evidence. Use analytics, heatmaps and recordings, surveys and support tickets to find where and why shoppers drop off.
  2. Write the hypothesis. "If we [change], then [metric] will rise because [reason from the research]." The reason is what makes a losing test useful: it tells you which assumption was wrong.
  3. Choose the metrics. One primary metric, such as purchases per visitor, plus guardrails that must not fall, such as average order value and revenue per visitor. A discount can raise conversion rate and lower revenue.
  4. Calculate sample size and duration. Fix both before launch, run whole weeks, and avoid launching into a sale period unless the sale is what you are testing.
  5. QA every version. Check each one on mobile and desktop, in every browser your shoppers use, and confirm purchases are tracked correctly. See Shopify conversion tracking.
  6. Don't peek and stop. Looking every day and stopping when a version pulls ahead inflates false winners. Let it reach the planned sample.
  7. Analyze and segment. Check the result on mobile and desktop separately; desktop converts at 3.7% against 2% on mobile in Contentsquare's data, so a change can help one and hurt the other.
  8. Ship and document. Release the winner, record the hypothesis, result and learning, and use it to choose the next test.

How to A/B test on Shopify

Shopify now offers native testing. Rollouts, under Markets in the Shopify admin, can schedule changes, release them to a percentage of visitors, or run an experiment that compares a treatment against a control. Since June 2026 it can A/B test two entirely different themes or checkout setups. For theme experiments it reports conversion rate, bounce rate, reached-checkout rate and add-to-cart rate; for checkout experiments, checkout conversion rate. Revenue per visitor is not among the metrics Shopify lists for experiments.

OptionWhat it testsGood forLimits
Shopify RolloutsWhole themes and checkout configurationsRedesigns, new templates, checkout setups, without an appReports rates, not revenue per visitor; tests whole themes rather than single elements
Shopify testing appsPrices, shipping, offers, content, templatesPrice and shipping tests, revenue as the primary metricMonthly fee; for example, Intelligems lists plans from $69 a month on the Shopify App Store
General testing platformsAny page element or flow, with targetingLarge catalogs, several markets, programs with many tests a monthHigher cost and setup; scripts can slow pages if implemented badly

Google Optimize, once the default free option, shut down on September 30, 2023, so older guides that recommend it are out of date. Invesp puts testing tools at $200 to $1,500 a month, and building a standard test at 10 to 30 developer hours. CRO agency pricing covers the full cost of a testing program.

Common A/B testing mistakes

  • Calling a test early. A lead after a few days is usually noise.
  • Testing changes too small to detect. A tweak that might move conversion 2% needs more traffic than most stores get in a year.
  • Changing several things without knowing which mattered. Fine for a story test, as long as you read the result as "this version wins", not "this button wins".
  • Judging by conversion rate alone. Check order value and revenue per visitor before you ship.
  • Ignoring segments. A flat result overall can hide a win on mobile and a loss on desktop.
  • Not writing down losses. A losing test tells you something about your customers. Without notes, the same idea gets tested again a year later.

What to expect from a testing program

Most tests produce small gains or none. Optimizely measures average test impact, the win rate multiplied by the lift of the winners, at between 1.3% and 1.6% per experiment in its 2026 analysis. That is why the choice of what to test matters more than the number of tests: a program built on bigger hypotheses wins more often and by more. Design quality matters too: well-designed experiments won 58% of the time against 35% for poor ones.

Invesp puts a typical program at 2 to 12 tests a month, depending on traffic and budget. A store with modest traffic is better served by one well-researched test at a time, on its highest-traffic pages, than by many small ones that never conclude. The conversion rate optimization guide shows where testing fits in the full process.

How Glued runs A/B testing

Glued's testing starts with research and goes straight to the levels that move revenue: the story, the offer and the page structure. Glued designs and builds every version on Shopify, so tests don't wait for a developer, and reports each result against revenue, not just clicks. Testing runs as part of Ongoing Optimizations, and new landing pages are often built as tests from day one, as with Lull. For what a full engagement includes, see ecommerce CRO services.

The bottom line

A/B testing pays off when the test is big enough to detect and aimed at where orders are lost. Calculate the traffic you need first, test stories and offers before buttons, fix the metric and duration before launch, and judge winners by revenue, not only conversion rate. To find your highest-value test, start with a free audit or size the upside with the ROI calculator.

FAQ

What is A/B testing in ecommerce?

A/B testing shows two versions of a page, offer or checkout to randomly split groups of shoppers at the same time and measures which one produces more purchases, add-to-carts or revenue. Because both versions run in the same period, seasonality and ad changes affect both equally, so the difference can be credited to the change.

How much traffic do you need to A/B test?

It depends on your conversion rate and the size of lift you want to detect. At a 2% conversion rate, a 10% relative lift needs about 78,000 visitors per variant and a 20% lift about 20,000. Measuring add-to-cart instead of purchases, or testing bigger changes, cuts the traffic you need.

How long should an A/B test run?

Until it reaches the sample size you calculated before launch, and for whole weeks, so every day of the week is counted equally. In practice that means at least two weeks for most stores. Stopping the moment a variant looks ahead is the most common way to ship a false winner.

Can you A/B test on Shopify without an app?

Yes. Shopify Rollouts, under Markets in the Shopify admin, runs experiments between two themes or two checkout setups and reports conversion rate, add-to-cart rate, reached-checkout rate and bounce rate. For price, shipping or offer tests, or revenue per visitor as the main metric, a dedicated testing app is still needed.

What is the difference between A/B testing and multivariate testing?

An A/B test compares whole versions of a page. A multivariate test changes several elements at once and measures every combination, so it needs far more traffic. Optimizely found multivariate tests are only 0.15% of the experiments run on its platform; most ecommerce stores get more from A/B tests with bigger differences between versions.

What should I A/B test first on my store?

Start where the most orders are lost and the change is big enough to measure: the offer and value proposition on landing and product pages, product page information, and cart and checkout friction. Button colors and font tweaks rarely produce a difference most stores have the traffic to detect.

5.0 RATING • 350+ CLIENTS

Get A Free Website Audit.

We’ll identify what’s leaking revenue on your site and show you how to fix it. The free audit includes:

Live Website Walkthrough
Technical Analysis
Conversion Checklist
Key Section Redesigns
Industry & ICP Research
Implementation Plan
Try Us Free
5.0 RATING • 500+ CLIENTS

Work with the #1 Team That gets you predictable results.

Strategy
DESIGN
COPYWRITING
DEVELOPMENT
Free Audit & Redesign

Get a Free Audit

See the difference for yourself. We’ll identify what’s leaking revenue on your site and show you how to fix it.
Free Forever
130+ Optimizations
Section Redesigns
Get My Free Audit
CRO Strategy Call

Talk to Glued

This isn’t a sales call. It’s a hands-on teardown session where we walk through exactly what’s holding your site back and what fixing it would mean for your revenue.
No Sales Pitch
ROI Projections
Free CRO Strategy
Book a Call