- An A/B test shows one version of a page to part of your visitors and another version to the rest, so the data decides which works better.
- Test one change at a time, decide the success metric before you start, and run the test for at least one or two full weeks.
- You need far more visitors than most people expect: small lifts on a low conversion rate take tens of thousands of visitors per version.
- Shopify offers theme experiments through Rollouts; apps add product, price and checkout tests; a manual split with analytics works for simple cases.
- A variant that wins on conversion rate can still lose on profit: check revenue and profit per visitor before you roll it out.
A/B testing on Shopify means showing two versions of something in your store, such as a product page layout, a headline or a shipping offer, to two random groups of visitors at the same time, and keeping the version that performs better. It is the lowest-risk way to improve a store: instead of redesigning everything and hoping, you change one thing for part of your traffic and let real shoppers decide.
This guide covers how a test works, a step-by-step process, what to test first, the ways to set up tests on Shopify, how to read the results, and why the winner should also be checked on profit, with a worked example.
What is A/B testing and why does it matter?
In a test, version A (the control) is what you have now and version B (the variant) has one change. A testing tool assigns each visitor at random to A or B and keeps them there, so returning visitors see the same version. After enough visitors, you compare the two on the metric you chose. Because both groups shop at the same time, seasonal swings, ad changes and news affect them equally, which is what makes the comparison fair.
The alternative is guessing, or comparing this month with last month. A before-and-after comparison mixes your change with everything else that changed: traffic sources, promotions, the weather. A test isolates the change.
How to run a Shopify A/B test, step by step
- Start with a hypothesis
Write down what you change, what you expect and why. "Showing delivery dates on the product page will raise add-to-cart rate, because shoppers ask about delivery in support chats." A hypothesis comes from data: funnel drop-offs, support questions, reviews, session recordings.
- Change one thing
If you change the headline and the button colour together, you will not know which caused the result. One variable per test.
- Choose the success metric in advance
Usually purchase conversion rate or revenue per visitor; for an upper-page test, click-through to the next step. Pick secondary metrics too, such as average order value and refund rate.
- Split the traffic
A 50/50 random split is standard. Use 80/20 only when the change is risky and you want to limit exposure, knowing the test will take longer.
- Run it long enough
At least seven days, better fourteen, so every weekday is in both groups, and until you reach the sample size you planned. Do not stop because B leads on day three: early leads are often noise.
- Analyse, implement, repeat
Roll out the winner, or keep the original, and write down what you learned. Every result, including "no difference", feeds the next hypothesis.
How many visitors do you need?
Fewer than people hope is never enough. A rough rule of thumb for a test at 95% confidence that detects a real difference most of the time:
- p
- Your current conversion rate, as a fraction (2% = 0.02).
- d
- The smallest absolute difference you want to detect (2.0% to 2.3% is 0.003).
At a 2% conversion rate, detecting a lift to 2.3% needs 16 × 0.02 × 0.98 ÷ 0.003² ≈ 35,000 visitors per version.
That is why small stores should test big, bold changes on their busiest pages: a large difference needs far fewer visitors to show up than a small one.
What to A/B test on your Shopify store
Start where traffic is high and the page sits close to the purchase. Footer links and favicon colours can wait.
| Where | Ideas to test |
|---|---|
| Product pages | Image order and lifestyle vs product shots, price display, delivery dates, reviews placement, the add-to-cart button text, bundles, description length |
| Homepage and landing pages | The headline and hero image, which products are shown first, the main call to action, a page that matches the ad exactly |
| Collection pages | Default sort order, filters, number of products per row, quick add |
| Cart and pre-checkout | A free-shipping threshold, shipping cost shown earlier, trust badges, cross-sells, express payment buttons |
| Whole theme | A new theme or layout against the current one, navigation structure |
Apps, Rollouts or manual: how to set up tests on Shopify
| Method | Good for | Watch out for |
|---|---|---|
| Shopify Rollouts (Markets › Rollouts) | Experiments that compare a theme change or a different theme against your live theme, on a share of traffic | Check which Shopify plans include experiments; it covers theme and storefront changes, not every kind of test |
| A testing app from the Shopify App Store | Product page, price, shipping and content tests without code, with statistics built in | Monthly cost; some apps add script weight or a short flicker as the variant loads |
| Manual: two theme versions or two landing pages, split by link or ad, measured in analytics | Simple tests such as two landing pages for one campaign | You must randomise and calculate significance yourself; easy to get wrong |
When you compare apps, look at what they can test (themes, prices, shipping rates, checkout), how they split visitors, how they calculate significance, whether they report revenue per visitor and not just conversion rate, and what they do to page speed.
Best practices
- One hypothesis, one change, one primary metric
- Plan the sample size before you start
- Run full weeks, avoid big sale days unless you test for them
- Check both versions on mobile and desktop before launch
- Keep ads and promotions stable during the test
- Do not peek and stop at the first good-looking day
- Wait for 95% confidence and your planned sample size
- Look at revenue and profit per visitor, not only conversion rate
- Check segments (mobile, new visitors) only to learn, not to rescue a loser
- Re-test big wins: a lift that holds twice is real
Worked example: the winner that loses money
An example store tests a banner offering 10% off the first order against its current product page. Each version gets 36,000 visitors:
| Example data | A: current page | B: 10% off banner |
|---|---|---|
| Visitors | 36,000 | 36,000 |
| Orders | 720 | 828 |
| Conversion rate | 2.0% | 2.3% |
| Average order value | $70 | $63 |
| Revenue per visitor | $1.40 | $1.45 |
| Profit per order (after costs) | $24 | $17 |
| Profit per visitor | $0.48 | $0.39 |
The difference in conversion rate is statistically significant at these numbers. A testing app would call B the winner. But the discount costs $7 on every order, and the extra orders do not make up for it: profit per visitor falls from $0.48 to $0.39. Rolling out B would sell more and earn less. Unless the discount brings in new customers who come back and order again at full price, A is the better page.
Analysing results and scaling what works
A test ends in one of three ways: B wins, A wins, or there is no meaningful difference. All three are useful. A win is rolled out, then confirmed in your normal reports over the following weeks. A loss tells you the hypothesis was wrong, which saves you from a change that would have cost money. No difference means the element does not matter much to shoppers: spend your next test elsewhere.
To scale testing into a programme, keep a backlog of hypotheses ranked by expected impact and effort, run one test per page at a time, record every result in one place, and repeat the best ideas on other pages and products.
Checking test results in ROASaurus

ROASaurus is not a testing tool: it does not split traffic. It helps around the test. Before a test, Website › Funnel shows where shoppers drop off per campaign, which is where your hypotheses come from. When a test uses two landing pages, Website › Visitors compares them on sessions, add-to-cart rate, conversion rate and revenue per session. After a rollout, Profit › Overview and Profit › Orders show whether average order value, refunds and profit per order moved the way the test promised, and Customers › Cohorts shows whether customers won by a first-order offer come back.
Next step
Sources
- Shopify Help Center: Rollouts
- Shopify Changelog: Schedule and test storefront changes with Rollouts
- Google Marketing Platform: Sunset of Google Optimize