Most changes to a Shopify store ship on a hunch. A new product page goes live, sales move a little, and nobody can say whether the change did it or the week did. An A/B test answers that question: half your visitors see the original, half see the change, and the numbers decide.
What an A/B test is
An A/B test runs two versions of the same page at the same time. Version A is the original, the control. Version B carries one change. Visitors are split between them at random, and you compare how each group converts. Both groups shop in the same days, under the same campaigns and with the same stock, so the difference between them is the effect of the change.
Start with a problem, not an idea
The tests that pay off start from evidence of friction, not from a list of best practices. Look for the places where shoppers stall:
- Your funnel in Google Analytics 4: the step where the most sessions drop off, on mobile and desktop separately.
- Click maps and recordings: what shoppers tap that does nothing, and what they never scroll down to.
- What customers tell you: surveys, support tickets and reviews that mention shipping costs, sizing or delivery times.
Write the test down as a hypothesis before you build anything: “Shoppers hesitate over size, so showing the fit guide next to the size selector will raise the add-to-cart rate on mobile.” A good hypothesis names the problem, the change and the number you expect to move.
What to test first
Test where the traffic is and where the decision happens. For most stores that means the product page and the cart, on mobile first. Good first tests change something a shopper needs in order to decide:
- Shipping costs and delivery dates, shown before the cart rather than after it.
- Size and fit guidance, placed next to the size selector.
- The add-to-cart button, kept within reach on a phone.
- Returns and guarantees, near the price, where hesitation happens.
Leave color swaps and button wording for later. Small cosmetic changes seldom move conversion enough to measure, and a test that can’t be measured teaches you nothing.
How to split traffic
A fair test assigns each visitor to one version and keeps them there. If a shopper sees version A on Monday and version B on Tuesday, both measurements blur. Most testing setups assign by browser: the first visit picks a version, and every later visit from that browser shows the same one.
Illustrative example
Visitors
- Browser 1A
- Browser 2B
- Browser 3B
- Browser 4A
- A Original

- B Your change

Keep the split even for a simple A/B test: with the same traffic, 50/50 reaches a reliable answer sooner than any lopsided split. And prefer a setup that serves the right version with the page itself. Tools that swap content in the browser after the page has loaded can flash the original before the change, which shoppers notice and which skews the result.
How long to run a test
Decide before you start how long the test will run and how many orders it needs, then let it run. Two rules keep the result honest:
- Run whole weeks. Shoppers behave differently on a Tuesday than on a Saturday, so a test should cover every day of the week at least once. Two full weeks is safer.
- Don’t stop when one version pulls ahead. Early leads come and go as orders arrive, and checking daily and stopping at the first good-looking number is a common way to ship a change that did nothing.
Illustrative example
Test length
Experiment running
- Day 3: one version pulls ahead. Keep going.
- Day 14: two full weeks and the planned sample. Decide.
Traffic sets the pace. The smaller the change you expect, the more visitors a test needs to detect it. A store with modest traffic does better testing bolder changes on its busiest pages than running many small tests that never reach an answer.
Reading the result
Judge the test on the metric you chose before it started: usually conversion rate, or revenue per visitor when the change could affect order value. Then look at mobile and desktop separately, since a change can help one and hurt the other. Resist slicing the result into many small segments: with enough slices, one will always look like a win by chance.
A losing test isn’t wasted. It tells you, with evidence, that the change shouldn’t ship, and that is one decision you no longer have to guess.
Ship the winner safely
A test is finished when the winner is live for everyone and the loser is gone. Publish the winner the same careful way you built it: on a draft theme first, checked, previewed and approved, with a way back if anything breaks.
How HI Engine runs A/B tests
In HI Engine, every fix runs as an experiment. Visitors are split 50/50 per browser, and no third-party A/B app is needed. HI writes each change into your theme as Liquid, JSON and CSS, validates it with Shopify Theme Check and ships it to a draft theme you preview in your own store. Nothing goes live without your approval. Winners stay, losers roll back, and every result goes into your store’s knowledge base. If you already test in Intelligems, HI reads those results too.
Start with a free conversion rate optimization audit
Read nextWhat an AI conversion rate optimization agent does




