Shopify A/B testing: how to run a test that means something
- Topic
- Conversion
- Published
- Reading time
- 9 min read
- Written by
- Binaery
Shopify A/B testing is now built into the admin. Since Shopify added Rollouts, you can split your visitors between your live theme and a changed copy and see which one turns more sessions into orders, with no app. The hard part was never the tool. It's running a test long enough, on enough visitors, and reading the right number at the end.
This guide covers what Shopify's own testing does and where it stops, how to work out how many visitors a test needs before you start, why tests run in full weeks, and how to judge a winner by revenue per visitor instead of conversion rate alone. By the end you'll be able to plan one test that gives you an answer you can act on.
The short version
- Shopify's Rollouts can run an Experiment on your theme or checkout. Experiments need the Grow plan or higher.
- Decide the sample size before the test starts, and don't stop early because the dashboard looks exciting.
- Run every test in full weeks, so each version sees the same mix of weekdays and weekends.
- Test one idea big enough to move a number. Small stores can only detect big changes.
- Read revenue per visitor as well as conversion rate. A change can win more orders and still make less money.
- Write the result down, winners and losers both, so the next test starts from what you learned.
What Shopify's built-in A/B testing does
Shopify calls it Rollouts, and you'll find it under Markets > Rollouts in your admin. A rollout is a scheduled set of changes to your main theme, checkout and accounts pages, discounts or product catalogs. There are three kinds. A Launch makes the changes permanent. An Event runs them for a set period and then rolls them back. An Experiment compares a treatment against a control, which is the A/B test.
The requirements page is worth reading before you plan anything. Rollouts work on the Basic plan or higher, but Experiments need the Grow plan or higher. They only apply to your online store, so a headless storefront can't be tested this way. You can't use them on vintage themes, and you can't change Liquid templates as part of a rollout.
A few details from Shopify's rollout analytics page matter for how much you can trust the result:
- Each visitor is put in a group before the page loads, so the page doesn't flicker between versions.
- The group is saved in a cookie. A new browser or device gets a new group, which might be different.
- Visitors get a group even if they don't consent to tracking, but only visitors who consent are counted in results.
- The rollout and treatment IDs aren't sent to Google Analytics 4 or other third party tools, so you read the results in Shopify Analytics.
For a theme Experiment, the results page shows conversion rate, bounce rate, reached checkout rate and add to cart rate. For a checkout Experiment, it shows checkout conversion rate. Notice what's missing from that list: money. We'll come back to that.
When an app is still the better tool
Rollouts tests your theme and checkout as a whole. If you want to test prices, send half your traffic to a different landing page, or read revenue per visitor on the results screen itself, a testing app does more. We run our clients' tests in Shoplift, as our CRO page says. Its Shopify App Store listing describes it as a CRO platform for Shopify Plus that tests product pages, collections, landing pages, themes and prices, with reports that show conversion rate, revenue per visitor and average order value. It starts at $99 a month on that listing.
If you're not on Plus, or this is your first test, start with Rollouts. It costs nothing extra on Grow.
Work out the sample size before you start
This is where most store tests go wrong: someone checks every morning, sees a "significant" label on day four, and calls it.
Evan Miller explained the problem in How Not To Run an A/B Test in 2010. The significance figure a dashboard shows assumes you fixed the sample size in advance. If you instead stop the moment a result looks significant, you'll call far more false winners than the label suggests. In his worst case example, where the test is checked after every visitor, a change that does nothing gets called significant 26.1% of the time instead of 5%. His advice is to decide the sample size first and wait until the test is over before believing the result.
He gives a rule of thumb for that sample size. For a conversion rate, the number of visitors each version needs is about 16 times p × (1 minus p), divided by the square of the smallest change you want to detect, where p is your current conversion rate. He also has a free sample size calculator if you'd rather not do the sum.
A worked example
Say your store gets 40,000 sessions a month and converts at 2.5%. You've redesigned the buying options on your product page and want to know if it sells more.
- To detect a 10% relative lift (2.5% to 2.75%), each version needs about 16 × 0.025 × 0.975 ÷ 0.0025², which is 62,400 sessions. Both versions together need about 124,800. That's roughly three months of your traffic.
- To detect a 20% relative lift (2.5% to 3%), each version needs about 15,600 sessions, or 31,200 together. That's under a month, so you'd run it for four full weeks.
The lesson is uncomfortable but useful. At 40,000 sessions a month, you can't test a new button color. You can test a change big enough to move conversion by a fifth: a different offer, a rebuilt buying block, a new page order. Small stores should test bold ideas and ship the small polish without testing it.
Run it in full weeks
People shop differently on a Tuesday lunch break and a Sunday night, and email sends and campaigns bunch traffic into certain days. A test that runs Thursday to Tuesday can crown a version just for the days it saw.
So pick a start day and stop on the same day of the week, one or more whole weeks later. If the sample size says 24 days, run 28.
Two more things that spoil a test: launching it in the middle of a sale, and changing the traffic split halfway. Shopify notes that if you change the split during an Experiment, only new visitors are affected, so the groups stop being comparable. Set it once and leave it alone.
Read revenue per visitor, not just conversion rate
Make the cheapest pack the default and more people might buy, each spending less. Conversion rate goes up and revenue goes down.
Revenue per visitor catches that. It's sales divided by sessions, so it moves with both how many people buy and how much they spend. It's the number we'd judge most store tests by, as we said in our article on how to increase average order value on Shopify.
Shopify's Experiment results don't show it, but you can build it. The rollout analytics page explains how to query sales and sessions for each group in ShopifyQL, grouped by the rollout's treatment ID. Divide each group's sales by its sessions and you have revenue per visitor for the control and the treatment. Shopify is clear about the limits of that: sales queries have no significance test, and a customer counted in both groups can have an order counted under both. Use it as a check on the conversion result, not as a verdict on its own.
Shopify also notes that orders without a matching tracked visitor, such as subscription renewals charged automatically, aren't linked to a rollout. If most of your revenue is renewals, a test only tells you about first orders.
What to test first
Test where the decision is made. On most DTC stores that's the product page, and on the product page it's the block with the price, the options and the button.
Here's a product page we designed for a protein brand. Look at the buying block on the right: three bag sizes, a subscribe option with a choice of delivery every 30, 60 or 90 days, and the add to cart button with reviews just below. Which size is picked by default, whether subscribe or one time comes first, and how the saving is shown are each a test worth running, because each one changes both how many people buy and how much they spend.
Protein brand
The product page, as we designed it
That brand is on a retainer with us: the build shipped and the testing carried on. That's the right order.
After that: the offer itself (a bundle, a subscription saving), the order of information on phones (see our Shopify product page best practices), and what the cart shows.
On a phone the buying block is most of the screen. Here's adding to the cart on a supplements store we built: the 3-month plan shows its saving, the button carries the price, and a review sits right under it. Each of those is a lever you could test.
Supplements brand
Adding to the cart on a phone, and the cart opening
Common mistakes
- Testing too many things at once. If the treatment changes the headline, the photos and the price, a win tells you nothing about which one worked.
- No written hypothesis. Write the change, who sees it and which number should move before it starts.
- Running two tests on the same visitors. Shopify warns that other active rollouts can affect a rollout's traffic, so keep overlapping tests to a minimum.
And a limit worth saying plainly: testing won't fix a store that's slow, confusing or short of traffic. If people can't find the product or the page takes ages on a phone, fix that first. Testing is for choosing between two good options.
A checklist for your next test
- Check your plan. Shopify's Experiments need Grow or higher.
- Write the hypothesis: the change, who sees it, the number that should move.
- Work out the sample size from your conversion rate, sessions and the smallest lift worth knowing about.
- Round the run up to whole weeks, and check it doesn't overlap a sale.
- Build the treatment and check it on a real phone before any visitor sees it.
- Set the traffic split once and don't change it.
- Don't stop early. Read conversion rate at the end.
- Work out revenue per visitor for each group in ShopifyQL.
- Ship the winner or revert the loser, and write down what you learned.
Common questions
Does Shopify have built-in A/B testing?
Yes. Shopify's Rollouts, under Markets > Rollouts in the admin, can run an Experiment that splits visitors between your current theme or checkout and a changed version, then compares conversion rate, add to cart rate, reached checkout rate and bounce rate. Rollouts are on the Basic plan or higher, and Experiments need the Grow plan or higher.
How long should a Shopify A/B test run?
Long enough to reach the sample size you worked out before the test started, rounded up to whole weeks so both versions see the same mix of weekdays and weekends. For a store with 40,000 sessions a month converting at 2.5%, detecting a 20% lift takes about four weeks, and detecting a 10% lift takes about three months. Stopping as soon as the dashboard says significant leads to false winners.
How much traffic do you need to A/B test on Shopify?
It depends on your conversion rate and how big a change you want to detect. A common rule of thumb is that each version needs about 16 times p × (1 minus p) divided by the square of the change, where p is your conversion rate. Lower traffic stores can still test, but only bold changes that could move conversion by a fifth or more.
Should I judge an A/B test by conversion rate or revenue?
Use both, and let revenue per visitor break the tie. Conversion rate tells you how many people bought. Revenue per visitor, which is sales divided by sessions, also tells you how much they spent, so it catches a change that wins more orders at a lower order value. Shopify's Experiment results show conversion rate, and you can work out revenue per visitor for each group with a ShopifyQL query.
Next step
Open Markets > Rollouts in your admin today, check whether your plan can run Experiments, and write down your product page's conversion rate and monthly sessions. That's enough to work out what size of change you can test. If you'd like us to plan the first few tests with you, tell us about your store.
Keep reading.
Rather have us do it?
Everything in this article is something we do for a living. Tell us about the store and what you're trying to move.
Fly our work




