Blog

Shopify A/B testing: how to run tests that count

Plenty of Shopify brands have tried A/B testing once. A tool was installed, someone tested a button colour, the result was "not significant" and the programme quietly stopped.

The problem usually isn't testing itself. It's testing the wrong things, stopping tests too early, or reading results that were never going to be clear. This guide covers how we run tests on Shopify stores so that each one teaches you something, whether it wins or not.

Check you have enough traffic first

A/B testing needs enough orders to show a real difference between two versions. If a page gets a few hundred visitors a month, a test can run for months and still not tell you anything.

Before planning a test, look at:

  • How many visitors the page gets each week.
  • Its current conversion rate, or add to cart rate for product pages.
  • The smallest improvement that would be worth knowing about.

Put those into a sample size calculator before you start. If the answer is that the test needs six months, it's the wrong test for this page. Pick a page with more traffic, measure a step that happens more often (such as add to cart rather than orders), or make the change without a test and watch the numbers.

Low-traffic stores still have plenty to gain from research-led fixes. They just shouldn't pretend a two-week test proved anything.

Research before ideas

The best test ideas come from evidence about where shoppers struggle, not from what a competitor's site looks like. Useful sources:

  • Analytics: which pages and steps lose the most people, split by device.
  • Heatmaps and session recordings: where people tap, how far they scroll, where they hesitate.
  • Reviews and support messages: the questions and worries customers raise in their own words.
  • Page reviews: a structured look at each key template for clarity, trust and missing information.

When the same problem shows up in two or three sources, it's worth a test.

Write a proper hypothesis

Every test should start with a hypothesis that says what you'll change, why, and what you expect to happen. A simple format works:

Because we saw [evidence], we believe that [change] for [audience] will [result]. We'll know it worked when [metric] changes.

For example: "Because shoppers often ask about delivery times in live chat, we believe that showing the estimated delivery date next to the add to cart button on mobile product pages will increase add to cart rate."

Writing it down stops you testing things for the sake of it, and makes the result useful even when the test loses. If showing delivery dates didn't help, that tells you something about what your customers actually worry about.

Rank ideas before you test them

You'll have more ideas than you can test. Rank them by three things:

  • Impact: how much it could move the main metric if it works.
  • Confidence: how strong the evidence behind it is.
  • Effort: how long it takes to build and check.

Score each from one to ten and sort. It isn't scientific, but it stops the loudest opinion in the room from deciding what runs next.

Design the test properly

A few rules save a lot of wasted tests:

  • One main metric. Pick it before launch. You can watch others, but the decision rests on one.
  • Fix the sample size and length up front. Don't stop a test the day it looks good. Early results swing a lot.
  • Run whole weeks. Shoppers behave differently on weekdays and weekends, so run for at least one or two full weeks even if you hit the sample size sooner.
  • Avoid big promotions. A sale changes who visits and why. Pause tests or plan around it.
  • Check every variant on real devices. A variant that breaks the cart drawer on one phone will lose for the wrong reason.

Read the results honestly

There are three outcomes, and all of them are useful:

  • A clear winner. Ship it properly, then look for the next test in the same area.
  • A clear loser. You've avoided rolling out a change that would have cost sales. Note why you think it lost.
  • No difference. The change didn't matter enough to measure. That frees you to choose either version on other grounds, such as which is easier to maintain.

Keep a log of every test: the hypothesis, the dates, the result and what you learned. Without it, the same ideas get tested again a year later.

Ship the winners into the theme

Many stores leave winning variants running inside the testing tool for months. That adds code to every page load and breaks easily when the theme changes.

Once a test wins, build the change properly into your Shopify theme, ideally as a section or block your team can edit, then switch the test off.

Where AI helps

AI speeds up the slow parts of a testing programme. It can read analytics, reviews and support messages to spot patterns, draft hypotheses in the format above, build first versions of variants and summarise results.

It can't decide which risks are worth taking with your brand, or whether a result makes sense given what you know about your customers. Our team reviews every output and makes those calls.

Frequently asked questions

How much traffic do I need for A/B testing on Shopify?

It depends on your conversion rate and the size of change you want to detect. Work out the sample size before you start. If a test would need many months to finish, test a higher-traffic page, measure an earlier step such as add to cart, or make research-led changes without a test.

How long should an A/B test run?

Until it reaches the sample size you set before launch, and for at least one or two full weeks so weekday and weekend behaviour are both included. Don't stop a test early because it looks like it's winning.

What should I test first on a Shopify store?

The pages with the most traffic and the biggest drop-off, usually product pages and the cart. Start with ideas backed by evidence from analytics, recordings and customer feedback.

What happens to a winning variant?

Build it into your theme properly and switch the test off, rather than leaving it running inside the testing tool.

Our testing programme

Our Shopify A/B testing service runs the whole process: research, ranked test ideas, test design, variants built and checked by a Shopify developer, honest analysis and winners shipped into your theme. Every test is logged, so nothing is repeated or forgotten.

On our Growth and Scale retainers, an A/B test ships every month alongside fixes, with results in the GM CODE Growth Platform. If you're not sure your store has the traffic for testing yet, start with a Shopify CRO & Speed Audit, or ask us and we'll tell you honestly.