nemr.app

E-CommerceEngineering

A/B Testing and Experiments on Shopify Stores: A Practical Guide to Driving Sales

· 9 min read · by Elias Nemr

How to run A/B tests and experiments on a Shopify store: what to test, sample sizes, tools, common mistakes, and how to turn results into sales.

Every online shop is full of opinions. Should the free-shipping banner be bigger? Is the price better as "€49" or "from €49"? Will a review widget above the fold help, or just push the add-to-cart button down? Opinions are cheap, and the loudest person in the room often wins them.

Experiments replace opinions with evidence. You show different versions to similar visitors at the same time, measure what they do, and let the data decide. Done well, a steady programme of small tests compounds: a few percent here and there on conversion, order value or repeat purchases adds up to a meaningful difference in revenue, without buying a single extra visitor.

This guide covers the practical side of running experiments on a Shopify store: what to test, how to measure it, how many visitors you really need, which tools exist, and the mistakes that quietly invalidate results. It's written in general terms and applies to most online shops.

What an experiment actually is

A good experiment has four parts:

  1. A hypothesis: "If we show delivery dates on the product page, more visitors will add to cart, because uncertainty about delivery is a reason people hesitate."
  2. One meaningful change between the control (what you have now) and the variant. Change five things at once and you won't know which one mattered.
  3. A primary metric chosen before you start.
  4. A plan for how long to run and when you'll decide.

Writing the hypothesis down is more useful than it sounds. The "because" is where you learn: when a test loses, you've disproved a belief about your customers, which is worth knowing.

Pick the right metrics

Conversion rate is the usual starting point, but it can mislead. A discount can lift conversion and still lose money. Choose one primary metric and a few guardrails that must not get worse:

  • Primary: conversion rate, or better, revenue per visitor (it combines conversion and order value) or profit per visitor if you can measure margin.
  • Guardrails: average order value, refund and return rate, page speed, support contacts and repeat purchase rate.
  • Diagnostic metrics (clicks, scroll depth, add-to-cart rate) help explain why a result happened, but shouldn't decide it.

What to test on a Shopify store

StageIdeas worth testing
Product pageImage order and video; how the price and any discount are shown; delivery estimates; where reviews appear; size guides; short versus long descriptions.
Collection pagesDefault sort order; filters; how many products load; badges such as "best seller".
CartFree-shipping thresholds and progress bars; upsell and bundle placement; trust messages; the visibility of the discount-code field.
Offers and pricingPercentage versus fixed discounts; bundle pricing; shipping rates; minimum order values.
CheckoutExpress payment options and their order; trust and delivery messaging (more limited on Shopify, see below).
MarketingAd creative and landing pages; email subject lines, send times and offers; pop-up timing.
SpeedLighter images, fewer scripts. Faster pages tend to help every other metric.

Prioritise tests where many visitors see the change and the change is large enough to matter. A new colour on a footer link will never reach a conclusion; a new shipping threshold or price presentation might.

How to run tests on Shopify

Shopify's options change quickly, so check current documentation, but the landscape looks like this:

  • Built-in testing. One 2026 guide says Shopify has added native A/B testing through a feature called Rollouts, covering whole-theme and checkout tests. It's worth checking what it supports for your plan and goals.
  • Testing apps. Dedicated apps cover what native tools don't. Intelligems is positioned around price, shipping-rate and bundle tests. Shoplift focuses on theme and template tests that run from the theme customizer. General-purpose testing tools such as Convert and Kameleoon also integrate with Shopify. Most of the comparisons online are written by the vendors themselves, so run a trial and test against your own needs.
  • Checkout is the hard part. Shopify's own community threads note there's no built-in way to A/B test checkout extensions, and customisation of checkout is largely a Shopify Plus feature. Since the move away from checkout.liquid, restrictions on third-party JavaScript mean you can't freely split-test the look and feel of checkout. Some tools work around this with cart attributes and checkout extensions, and discount or shipping logic that used to live in Shopify Scripts moves to Shopify Functions. If your tests depend on checkout, plan for extra engineering.
  • Custom or headless stores. If you control the storefront code, you can assign variants yourself, on the server or at the edge, which avoids page flicker and gives you full control. It costs more engineering time and needs care to keep assignment consistent.

Whatever tool you use, make sure the variant is recorded in your analytics, for example as an attribute on the visit or the order. You want to be able to reproduce any result in your own data instead of trusting a vendor dashboard blindly.

Sample size: the part everyone skips

Most failed tests fail on arithmetic. To detect a small improvement in a rate like conversion, you need a surprising number of visitors. The table shows visitors per variant needed to detect a given relative lift with the usual settings (95% confidence, 80% power):

Baseline conversionDetect +5%Detect +10%Detect +20%
2%315,20680,68221,109
3%207,93853,21113,914
5%122,12431,2348,158

Take a store converting at 3%. To reliably detect a 10% relative improvement (3.0% to 3.3%), you need about 53,000 visitors in each variant, roughly 106,000 in total. How long that takes depends on your traffic:

Visitors per day (split 50/50)Time to reach the sample
1,000about 15 weeks
2,000about 8 weeks
5,000about 3 weeks
20,000about 1 week

What this means in practice:

  • Small stores should test big swings (price, offer, shipping threshold, whole-page layout), not button colours.
  • Use a higher-traffic point in the funnel. Testing add-to-cart rate on product pages needs fewer visitors than testing completed purchases.
  • Run whole weeks. Behaviour differs by weekday, so run at least one or two full weekly cycles, even if you reach the sample sooner.
  • Decide the sample before you start, and don't stop the moment the dashboard turns green. Checking constantly and stopping at the first "significant" result inflates false positives badly.

If you want to run the numbers yourself, this is all it takes:

from math import sqrt, ceil
from statistics import NormalDist

N = NormalDist()

def visitors_per_variant(baseline, relative_lift, alpha=0.05, power=0.80):
    p1, p2 = baseline, baseline * (1 + relative_lift)
    za, zb = N.inv_cdf(1 - alpha / 2), N.inv_cdf(power)
    pbar = (p1 + p2) / 2
    n = (za * sqrt(2 * pbar * (1 - pbar)) + zb * sqrt(p1 * (1 - p1) + p2 * (1 - p2))) ** 2 / (p2 - p1) ** 2
    return ceil(n)

def two_proportion_z(conv_a, n_a, conv_b, n_b):
    pa, pb = conv_a / n_a, conv_b / n_b
    pooled = (conv_a + conv_b) / (n_a + n_b)
    se = sqrt(pooled * (1 - pooled) * (1 / n_a + 1 / n_b))
    z = (pb - pa) / se
    return pa, pb, z, 2 * (1 - N.cdf(abs(z)))

print(visitors_per_variant(0.03, 0.10))            # 53211
print(two_proportion_z(1500, 50000, 1650, 50000))  # z = 2.72, p = 0.0066

Reading the results honestly

  • Check the split first. If you intended 50/50 and got 50,000 versus 52,000 visitors, something is wrong with assignment or tracking (a sample ratio mismatch). Don't trust a result until you've found out why.
  • Statistical and practical significance differ. A "significant" 0.1% lift may not be worth shipping. Look at the confidence interval, not just the p-value, and ask whether even the low end of the range is worth it.
  • Check guardrails. A version that wins on conversion but raises returns, lowers order value or slows the site may be a net loss.
  • Be wary of slicing. Splitting a flat result into twenty segments will always find a "winner" by chance. Treat segment findings as hypotheses for the next test.
  • Watch for novelty and seasonality. Something new can win simply because it's new, and a promotion or holiday can swamp the effect. Avoid starting tests right before big sales periods, or at least know their effect.
  • Don't run overlapping tests on the same audience and the same step unless you understand how they interact.

Experiments beyond the website

The same thinking improves marketing decisions:

  • Ad creative and landing pages: change one element at a time and judge on cost per purchase or profit, not clicks.
  • Email and messaging: subject lines, offers and timing are easy to split, and the results come quickly.
  • Channel value (incrementality): hold out a slice of your audience or a set of regions to see what sales would have happened without the campaign. It's the honest answer to "is this channel really working?".
  • Pricing and offers: measure profit per visitor. A bigger discount may raise conversion and still lose money.

Build a testing programme, not one-off tests

  1. Keep a backlog of ideas, each with a hypothesis and a rough score for impact, confidence and ease.
  2. Keep a test log with the hypothesis, setup, dates, result and decision. Future you (and new teammates) will thank you.
  3. Expect most tests to be flat or to lose. That isn't failure; it's cheap learning, and it stops you shipping changes that would have hurt.
  4. Ship the winners fully and re-check them later; some effects fade.
  5. Mix big and small bets: big swings find step changes, small tests polish.

Common mistakes

  • Stopping the test early because the numbers look good (or bad).
  • Running tests with far too little traffic to reach a conclusion.
  • Testing several changes at once, then not knowing what worked.
  • Picking the metric after seeing the results.
  • Ignoring returns, margin and speed.
  • Letting a testing tool slow the page or flash the original content before the variant loads.
  • Never writing down what was learned.

A simple 90-day starter plan

  1. Weeks 1–2: measure. Make sure your analytics is trustworthy: purchases, revenue, and the funnel steps. Know your baseline conversion and traffic.
  2. Weeks 3–4: pick your first big test (for example a free-shipping threshold or how the price is displayed) and calculate the sample size and duration before starting.
  3. Weeks 5–8: run it for full weeks without peeking, then analyse with guardrails.
  4. Weeks 9–12: ship the result, log the learning, and run the next test from your backlog.

The goal isn't to run as many tests as possible; it's to make better decisions with each one. If you'd like help setting up experimentation for an online shop, or making sure your analytics and measurement are sound, say hello. You might also find the technical SEO checklist useful: faster, crawlable pages help both rankings and conversion.

Sources and further reading

Shopify's features and the testing-tool market change often, and many comparisons are vendor-written, so treat these as starting points and check current documentation.

Elias Nemr is a software engineer who has built and shipped products across Blockchain, Finance, E-Commerce, AI, Energy and Indie Games. More about him →

Found this useful? Buy me a coffee

Keep reading