
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.
- 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.
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:
| Method | How it works | Traffic needed | Best for |
|---|---|---|---|
| A/B test | Two or more versions of the same page, traffic split at random | Moderate | Most ecommerce tests: offers, page layouts, product page content |
| Split URL test | Each version lives at its own URL and visitors are redirected | Moderate | Whole-page or whole-theme redesigns and different landing pages |
| Multivariate test | Several elements change at once and every combination is measured | Very high | High-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 rate | To detect a 10% lift | 20% lift | 30% lift |
|---|---|---|---|
| 1% purchase conversion | 158,000 per version | 40,000 | 18,000 |
| 2% purchase conversion | 78,000 per version | 20,000 | 8,700 |
| 3% purchase conversion | 52,000 per version | 13,000 | 5,700 |
| 6% add-to-cart rate | 25,000 per version | 6,300 | 2,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.
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.
| Level | What you test | Examples | When it fits |
|---|---|---|---|
| Story | Why someone should buy | Three landing pages built around three different motivations | Low conversion in a crowded category, or paid traffic that won't convert |
| Offer | How the value is packaged | Bundle vs single product, free shipping threshold, "free" vs "just pay shipping" | Shoppers engage but hesitate at the price or the cart |
| Page structure | What information appears and in what order | Benefits above the fold, reviews next to the price, shorter product descriptions | Shoppers scroll but don't add to cart |
| Friction | Steps and fields that slow buyers down | Express payment buttons, guest checkout, shipping costs shown earlier | Drop-off concentrated at cart or checkout |
| Element | How a single detail looks or reads | Button text, color, image order | High-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.
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
- Start from evidence. Use analytics, heatmaps and recordings, surveys and support tickets to find where and why shoppers drop off.
- 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.
- 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.
- 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.
- 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.
- Don't peek and stop. Looking every day and stopping when a version pulls ahead inflates false winners. Let it reach the planned sample.
- 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.
- 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.
| Option | What it tests | Good for | Limits |
|---|---|---|---|
| Shopify Rollouts | Whole themes and checkout configurations | Redesigns, new templates, checkout setups, without an app | Reports rates, not revenue per visitor; tests whole themes rather than single elements |
| Shopify testing apps | Prices, shipping, offers, content, templates | Price and shipping tests, revenue as the primary metric | Monthly fee; for example, Intelligems lists plans from $69 a month on the Shopify App Store |
| General testing platforms | Any page element or flow, with targeting | Large catalogs, several markets, programs with many tests a month | Higher 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.
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: