We value your privacy

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.

Skip to content

Shopify A/B Testing: How to Run a Test Step by Step

Shopify AB testing splits your visitors between two versions of your store and shows which one sells more. Here is how to run a template or theme test, how long to run it and how to read the results.

7 min read A/B Testing
How to A/B Test on Shopify: A Complete Guide to Higher Conversions.
  • Shopify AB testing splits your visitors between two versions of your store and shows you which version gets more add to carts, orders or revenue.

  • Use a template test to compare one page type. Use a theme test to compare the whole store, including header, footer and announcement bar.

  • Run each test for at least 3 days, ideally 1 to 2 weeks, until one version reaches a 95% win chance.

Shopify AB testing is the fastest way to stop arguing about what your product page should look like. You show half your visitors the original and half a change, then keep the one that sells more.

You can run your first test this week. It only works if you pick the right test type, change one thing and give the test enough time.

Most guides stop at "change one thing". This one covers the Shopify part: template tests, theme tests, what an app can and can't test, and how to read the results. The steps use Essential CRO Split AB Testing, which is free. If you only want the basics of what split testing is, start with our beginner's guide to split testing.

What is Shopify AB testing?

Shopify AB testing compares two versions of your store, A (the original) and B (your change). Visitors are split between them at random, and you measure which version gets more add to carts, orders or revenue. Shopify's theme editor lets you build the second version, but you need an app to split the traffic and count the results.

Template test or theme test?

A template test compares two versions of one page type, such as two product page templates. A theme test compares two full themes, so it covers every page. Pick the one that matches the thing you're changing.

Template test Theme test
What changes One page type The whole store
Use it for Product page layout, upsell block placement, homepage hero, collection layout Header, footer, navigation, announcement bar, cart changes, theme settings
Who joins the test Visitors who open a page that uses the tested template Every visitor
Running other tests at the same time Two template tests on different page types are fine Run it alone and end it before you start others

One catch: in a template test, only the sections listed under Template in the theme editor belong to the template. The header, footer and theme settings are shared. If you edit the header in version B, it changes in version A and on your live store too. To test those, use a theme test.

What can you test, and what can't you?

The app tests templates and themes, so you can test anything you can build in the theme editor.

You can test:

  • The layout and section order of product, collection, home and other page templates.

  • Where a review block, trust badges or an upsell block sits on the page.

  • Header, navigation, announcement bar and theme settings, with a theme test.

  • How a shipping offer is shown. For example, "Free shipping over $50" in theme A and "Free shipping over $75" in theme B.

You can't test:

  • Product prices. The app doesn't change a price for different visitors.

  • Shipping rates. Customers are charged the rates set in Shopify, whichever version they see. Only the message can differ.

  • More than two versions. Each test has A and B. Test the winner against the next idea.

  • A product page against a landing page. Both versions must be the same page type.

  • Clicks, form submissions or scrolls as goals. The goals are add to cart rate, conversion rate, average order value and revenue per visitor.

  • Results by device, country or traffic source. Results are shown per version as a whole.

How to run a Shopify AB test, step by step

1. Write one hypothesis

Use this format: If we [change X] on the [page], then [metric] will improve because [reason].

Example: If we move the reviews section above the description on the product page, add to cart rate will rise because shoppers see proof before they read specs.

One page and one change gives the cleanest result.

2. Choose template or theme

Use the table above. Product page change? Template test. Announcement bar change? Theme test.

3. Build version B

For a template test:

  1. In Shopify, go to Online Store > Themes > Customize.

  2. Pick the template in the page selector and make your changes in a copy. In the app you can also click Duplicate original template.

To test only some products, give them their own template first. Open Products in the page selector, click Create template, name it (for example "ab-test-product"), then assign it to those products under Theme template. A template test runs on every product that uses the template you pick as version A, so make sure no other products use it.

For a theme test: duplicate your published theme in Online Store > Themes, make your changes in the copy and don't publish it.

4. Create the test

  1. Open Essential CRO Split AB Testing and click Create a test.

  2. Choose Template or page, then Select template to test, and pick your original as version A.

  3. For version B, click Duplicate original template (or Select new template).

You don't assign version B to anything in Shopify. The app shows it to part of your visitors on the same URL.

5. Pick one goal

Choose add to cart rate, conversion rate, average order value or revenue per visitor, and keep it for the whole test. If your store uses an external checkout, choose add to cart rate. Orders from checkouts outside Shopify's own may not be counted.

6. Launch it and leave it alone

  • Use your normal store URL in ads and emails. The app splits visitors after they land. There's no link that always opens version B.

  • Don't place test orders while a test is live. They count like real orders.

  • Check versions with Preview in the app. Previews don't count as test traffic.

  • To end the test, click End test, choose the version to keep and click End test & select winner. There's no pause or reset button.

How long should a Shopify AB test run?

Run the test for at least 3 days, ideally one full business cycle of 1 to 2 weeks. Keep it going until each version has about 30 add to carts (for the add to cart goal) or about 30 orders (for the other goals), and one version reaches a 95% win chance.

Stores with less traffic need longer. The results page shows how many more events are needed and roughly how many days are left. If the status reads Significance unlikely, the test has run over 2 weeks and would need more than 60 more days. End it and test a bigger change.

How to read your results

Win chance is the probability, from a Bayesian model, that version B is better than the original. The app updates it as data comes in.

Win chance What it means What to do
Under 50% Version B is underperforming Consider stopping and keeping the original
50% to 80% Inconclusive Let it run
80% to 95% Leaning winner Decide if the uplift is worth ending early
95% or more Statistically significant Publish the winner

You don't have to wait for 95%. Weigh the uplift, your goal and your traffic. To check your numbers against your own analytics, see our guide to Shopify conversion tracking.

The results table shows visitors, add to carts, add to cart rate, orders, conversion rate, revenue, revenue per visitor and average order value for each version. Two things to know:

  • A visitor is one browser. The same person on a phone and a laptop counts twice.

  • Results are per visitor, not per product. If a visitor lands on the tested product page, then buys a different product, that order counts for their version.

Test ideas to start with

Not sure what to fix first? Our guide to increasing your Shopify conversion rate covers the biggest levers. Then pick one of these:

Idea Test type
Reviews above the description vs below it Template
Trust badges next to the add to cart button vs under the description Template
An upsell or bundle block on the product page vs none Template
Sticky add to cart on the mobile product page vs none Template
Offer-led homepage hero vs product-led hero Template
Collection grid with filters on top vs on the side Template
Announcement bar copy or position Theme
"Free shipping over $50" vs "over $75" in the header (rates stay as set in Shopify) Theme

Why your results might look off

  • Fewer orders than Shopify shows. The app counts an order only if the visitor accepted your cookie banner, was assigned a version and didn't skip the tested page. Shopify orders show total revenue. The app shows orders that took part in the test.

  • Traffic isn't exactly 50/50. A 50/50 split means each new visitor has a 50% chance of version B. It isn't a guaranteed equal count, and small stores see wide swings early on.

  • Orders from an external checkout are missing. The app counts an order when Shopify sends a checkout completed event. Use add to cart rate as your goal instead.

  • A header change shows in both versions. That's a shared part of the theme. Use a theme test.

  • A flash of the original page. It usually doesn't happen, but on slow mobile connections the original can show for a moment before the switch. Keep the app embed on and avoid heavy scripts that load first.

FAQs

At least 3 days, and ideally 1 to 2 weeks. Keep it running until each version has about 30 add to carts or orders and one version reaches a 95% win chance. Stores with less traffic need longer.
Not with Essential CRO Split AB Testing. It tests templates and themes, and the product price stays the same in both versions.
Two template tests on different page types, such as a product page and the homepage, can run together. A theme test matches every page, so run it alone. Don't run two tests on the same template.
No difference is a valid result. It means both variations perform equally, so you can keep either one. Pick the simpler version or the one your team prefers. Then move on to the next test. You’ll hit plenty of tests that show nothing before you find the big winners.
Only orders from visitors who accepted your cookie banner and took part in the test are counted. Shopify shows every order. Use Shopify for total revenue and the app to compare versions.
Yes. The app is free on the Shopify App Store.
Four Shopify events: page viewed, product added to cart, checkout started and checkout completed. It stores a random visitor ID in the browser, not names, emails or IP addresses.

Wrap-up

Pick one page, build one change and start a test this week. Essential CRO Split AB Testing is free, and you can run your first template test on a product page today.

Written by

Content and SEO specialist at Essential Apps. 8+ years in digital marketing, with the last 3 spent deep in the Shopify space, understanding how merchants grow and what gets in the way.

All articles by Milda Gaigalaite

Milda Gaigalaite.