How to A/B test on Shopify, and when not to
A plain guide to A/B testing a Shopify store, covering sample size, test length and reading results, and what to do when you don't have enough traffic.
An A/B test shows two versions of a page to different visitors at the same time and compares how they perform. It’s the most reliable way to know whether a change helped, but only when you have enough traffic and run the test properly.
Start with a clear question
Write the test down before you build anything:
- What you’re changing: “Show delivery cost next to the price.”
- Why you think it’ll help: “Recordings show people scrolling to find delivery details, and support gets the question daily.”
- What you’ll measure: conversion rate and revenue per visitor on product pages.
If you can’t say why a change should help, it’s not ready to test.
Work out the sample size first
The number of visitors you need depends on your current conversion rate and the smallest improvement you care about. Small improvements on low conversion rates need a lot of traffic.
For example, to reliably spot a 10% relative improvement on a 2% conversion rate (2.0% to 2.2%) at the usual 95% significance and 80% power, you need roughly 80,000 visitors per version. Our A/B test sample size calculator works it out for your numbers and tells you how many days it would take.
Run it for whole weeks
People shop differently on weekdays and weekends, and around paydays. Run tests for whole weeks, usually at least two, and decide the length before you start.
Don’t stop early
Checking results every day and stopping the moment one version looks ahead is the most common testing mistake. Early results swing a lot, and stopping on a high point makes false winners much more likely. Decide the sample size up front and read the result when you reach it.
Judge on revenue per visitor
A version can win on conversion rate and lose on revenue, for example by pushing cheaper products. Revenue per visitor combines conversion and order value, so it’s the safest single number to judge a test on.
When not to A/B test
Testing isn’t always the right tool:
- Not enough traffic. If the calculator says the test needs three months, the change is probably better made and checked another way.
- Bugs and broken journeys. If something is broken, fix it. You don’t need a test to prove a broken button costs sales.
- Tiny changes. Button colours and small wording tweaks rarely move enough to measure on most stores.
When you can’t run a fair test, make the change, compare carefully against the period before, and be honest that it’s not a controlled result.
Tools for testing on Shopify
You can run tests with a dedicated testing app or tool, or with theme-based approaches for some changes. Whichever you use, check that tracking is set up correctly first, that both versions work on phones, and that the test doesn’t slow the page down.
If you’d like tests planned, built and read properly, our experimentation service covers it, including telling you when a test isn’t worth running.