RiiiverStart free trial

How to do AB testing on Shopify

By Arthur Moreau · Updated November 2026

To AB test on Shopify, show a changed version of a page to half of your visitors and the current version to the other half, then compare how many in each group buy. Start from what your store’s data says about your customers, build the change in your theme, and use the result to choose the next test.

This guide is written for small Shopify store teams, around $500k a year in revenue. Most A/B testing advice is written for much bigger stores and will tell you that you are too small to test. You are not: you need bolder changes, a less strict bar for proof, and the habit of learning something from every result.

The basics

What AB testing means on a Shopify store, and what you need before you start.

What is AB testing?

AB testing is a tool to measure the impact of a change. For instance, if you are redesigning the size picker on your product page, you may want to know if the new one causes more conversions. With an A/B test, you could see that the new size picker causes a conversion increase of 7% compared to the old one.

AB testing is also called A/B testing or sometimes A B testing.

How does A/B testing work?

A B testing starts with a single change you want to measure the impact of: this is variant B. You show it to a percentage of your visitors (most of the time 50%). The rest of the visitors see the original, variant A. Visitors are randomly assigned a variant, so the two groups are comparable: the only thing that differs is the change you created. After a few weeks, you compare the conversion rate of the two groups to see if the change had a positive or negative impact.

For instance, if you are testing a new size picker on your product page, 50% of visitors will see the current size picker (version A), and 50% will see the new size picker (version B). You run the test for 2 weeks and conclude that the new size picker has +7% in conversion rate.

What is A B testing on Shopify?

A B testing on Shopify is a way to increase your conversion rate (or average order value) by testing different versions of your store's pages. You can test the home page, collection pages, product pages and cart on any plan. Since 2026 you can even test the checkout: through Shopify Rollouts on the Grow plan or higher, and through apps on Shopify Plus.

There are three ways to do A B testing on Shopify: build the changed version in a copy of your theme, use a script that rewrites the page in the visitor's browser, or use Shopify's own Rollouts feature. Each is covered further down.

Does Shopify have built-in AB testing?

Yes, Shopify has had built-in A B testing since 2026. Shopify Rollouts, under Markets > Rollouts in the admin, can run an Experiment that splits visitors between your current theme and a changed copy of it. It can do the same with two checkout configurations. Experiments need the Grow plan or higher.

Rollouts shows a fixed set of rates for each group, such as conversion rate, bounce rate, add-to-cart rate and reached-checkout rate. But it has limits: you cannot target a device or a customer segment, you get no revenue or profit figure for each group, and you cannot dig into why a variant won or lost. Shopify also does not tell you when to stop or which version won: the test ends on the date you set (90 days by default), and you choose yourself whether to keep the change.

So Rollouts is a good free option when you only need the basic answer: which of two versions converts better. It works for the first few tests, but not for a full AB testing program. For that, you need an AB testing app.

Do I need Shopify Plus to run AB tests?

No. You can run AB tests on any Shopify plan: home page, collection pages, product pages and cart are all part of your theme, and every plan lets you change your theme. The only constraint is the number of themes: Basic, Grow and Advanced stores can hold 20 themes (Plus stores 100), so you may need to delete an old theme to make room for a variant.

Plus is only needed for two kinds of A B testing: adding or removing blocks inside the checkout steps (an upsell, trust badges), and changing a product's price at checkout. Shopify's built-in Experiments need the Grow plan, not Plus.

Can I AB test the Shopify checkout?

Yes, A B testing the checkout is possible on the Grow plan or higher. A Shopify Rollouts Experiment sends part of your visitors to a second checkout configuration and compares the checkout conversion rate of the two groups. Stores on the Basic plan cannot run one.

What the test can change depends on your plan. Below Shopify Plus, two checkout configurations can only differ in branding (logo, colours, fonts), in layout (one page or three pages), in two optional fields (delivery instructions and gift message), and in the content of the thank-you and order status pages. On Plus, you can also test blocks inside the checkout steps, such as an upsell or trust badges.

Theme-based A/B testing cannot change the checkout, because since 2024 the checkout is no longer part of the theme. What you can do on every plan is measure it. Shopify shares each checkout step with tracking tools (checkout started, shipping chosen, payment entered, order completed), so a test on your product page or cart can still show where each group drops out of the checkout.

When should I not AB test?

Don't AB test when the answer is already known, when you cannot keep the old version anyway, or when the weeks ahead are not normal weeks. A B testing costs time and half of your traffic, so keep it for questions that are really open.

Bugs and broken pages: fix them. A button that does not work on mobile needs a fix, not a test.

Changes you must make: a legal notice, a cookie banner, a rebrand. You cannot keep the old version for half of your visitors, so there is nothing to compare.

Sales peaks: a test that runs during Black Friday or a big promotion tells you how shoppers behave during a promotion. The result may not hold in a normal week.

Prices of products you advertise: if half of your visitors see a different price than the one in your Google Shopping feed, Shopify warns that the mismatch can get your listings removed.

Very few orders: below about 100 orders a month, a test that counts orders will rarely give a clear answer. You can still test, but differently: see “Can I AB test with low traffic?”.

Before the test: deciding what to test

A test is only as good as the idea behind it. The idea should come from your own store's data.

What should I AB test first on my Shopify store?

Start with the change your own data points to, on the page where most of your visitors decide: usually the product page. A list of generic ideas tells you what worked for someone else's customers.

Example: Casarto saw that most of their buyers were over 50. They tested body text at 18px instead of 16px, and conversion went up 17.9%.

In practice, A B testing a store goes through two phases. In the first, you test the proven e-commerce practices your store does not follow yet. Research from the Baymard Institute shows where they matter most. Extra costs such as shipping are the first reason shoppers abandon a cart (40% of them), and 62% of mobile stores have a product page rated mediocre or worse. Shipping costs, free-shipping thresholds and the product page are safe places to begin.

In the second phase, the generic ideas run out, and you test changes tailored to your own customers, like Casarto's text size. This is where a small store can do something its bigger competitors cannot copy.

How do I find AB test ideas in my store's data?

Look at three things your store already has: where visitors drop out, what they search for and click on, and who your customers are. Every gap between what you expected and what you see is an idea for an A/B test.

Where they drop out: Shopify Analytics shows how many sessions add to cart, reach the checkout and complete an order, and lets you split that by device and by landing page. Compare the groups. If mobile visitors add to cart as often as desktop visitors but reach the checkout far less, the mobile cart is the place to test.

What they search for: Shopify's Search & Discovery app lists the searches that returned no results and the searches nobody clicked on. Each one is a product, a word or a category your store does not show the way shoppers expect.

Who they are: age, country, new or returning, and the reasons they give in reviews, support emails and post-purchase surveys. Casarto's test came from one fact about their customers: most of them were over 50.

What they click: the finest level is the single element. Which images do visitors open, do they use the size guide, do they read the reviews, do they scroll past the description? An element that nobody touches is a candidate to remove. An element that buyers use much more than non-buyers is a candidate to make more visible.

Then rank your ideas by the number of visitors they concern. An idea that touches 500 abandoned checkouts a week comes before one that touches 50 orders.

How much traffic do I need to run an AB test?

Count conversions, not visitors: about 300 conversions a month is enough to start AB testing. Below that, tests take too long to tell you anything.

Where does 300 come from? With about 300 orders a month, a four-week test at 90% confidence can reliably detect a lift of around 30%. That is a big lift, and it is why a small store should test bold changes first: a new product page layout, a shipping threshold, a different offer. A smaller lift is not lost. It shows up as a direction instead of a certainty.

You can also measure an earlier step next to orders. More shoppers add to cart than buy, so with the same traffic a test on add-to-cart rate can detect lifts of around 20%.

Most A B testing guides ask for more: the founder of CXL says 1,000 transactions a month, and Shopify's partner blog says 250 to 500 purchases per variation. These numbers assume small changes and 95% confidence. A small store can relax both, as explained in “How do I know if a result is real?”. The rule to remember is that detecting a lift half as large takes about four times the traffic.

Can I AB test with low traffic?

Yes. Below about 300 orders a month AB testing still works if you change how you test: make bigger changes, measure earlier steps than the order, accept less certainty, and test one variant at a time. Most guides say A B testing is not for small stores and tell them to wait for more traffic. Waiting teaches you nothing.

Make bigger changes. A small store cannot measure the effect of a button colour. It can measure a new page layout or a different offer. One agency puts it this way: if a difference can't be noticed at a glance, it probably won't work on a low-traffic site.

Measure earlier steps. Count add to cart and reached checkout next to orders. They happen more often, so they give an answer sooner. Keep an eye on orders to check they move in the same direction.

Accept less certainty. At 80 to 90% confidence you need clearly less traffic than at 95%, and a wrong call on a theme change is easy to undo.

Pool your traffic. Test something every visitor sees (the product page template, the cart, the header), not a single product. Compare one variant with the original, never three or four at once.

Give it time, within limits. Four weeks is fine, six is the maximum: beyond that, returning visitors lose their cookie and get counted in both groups.

Below about 100 orders a month, add direct observation. Watch five to ten people use your store, or session recordings of real visits. You will find the obvious problems without any statistics, and you can fix those without a test.

During the test: running it

How to set a test up so the result can be trusted, without slowing the store down.

How do I run an AB test on Shopify, step by step?

Pick one change based on your data, build the variant, split your visitors evenly between the current version and the variant, let it run for full weeks, then compare conversion between the two groups.

1. Write down what you expect to happen and why. 2. Build the variant in a copy of your theme. 3. Check it on mobile and desktop. 4. Start the test with a 50/50 split. 5. Leave it alone until it has run its course. 6. Read the result, and find out why.

Two mistakes do the most damage in A B testing. The first is stopping as soon as the numbers look good: a test stopped at its first significant result names a false winner about one time in four. Decide the end date before you start. The second is uneven groups: with a 50/50 split, both groups should have received almost the same number of visitors. If they have not, something is broken in the setup and the result cannot be trusted.

Theme-based or script-based testing: which is better?

Theme-based A B testing is better for most Shopify stores. The variant is built in the theme's own Liquid code, so it loads as part of the page. Script-based tools change the page in the browser after it loads, which adds JavaScript and can make the original version flash before the variant appears.

With a theme-based test, the winning variant is also already real theme code: there is nothing to rebuild when the test ends.

To avoid the flash, script-based tools hide the page until their script has finished. Shopify's own developer documentation says this often adds more than 2 seconds before anything appears on screen, and that testing on the server side has no such cost.

Script-based tools have one real advantage: you can change a headline or a button in a visual editor without touching the theme. For a quick copy test on a store with little mobile traffic, that can be enough.

Will AB testing slow down my store or hurt my SEO?

Theme-based AB testing does not slow the store, because nothing extra runs in the visitor's browser. A script-based test adds load time, since its script must run before the page is final.

AB testing does not hurt SEO as long as search engines see the same content as visitors, and the test is removed when it ends.

The slowdown can be large. In one measured case, a page that was ready after 2.7 seconds showed nothing until 6 seconds, because the testing script kept it hidden. If you use a script-based tool, remove its code whenever no test is running.

Google's rules for testing are short. Do not show Google a different page than visitors see. If a variant has its own URL, add a canonical tag pointing to the original and use a temporary (302) redirect. End the test when you have your answer.

One Shopify case needs care: duplicating a product or a page to test it. The copy is a second URL with the same content, and a duplicated product splits your inventory in two. Add a canonical tag to the copy or hide it from search engines, and delete it when the test ends. A test built in the theme avoids the problem, because both versions share the same URL.

How long should an AB test run?

Run a test for at least two full weeks, and always in whole weeks. Shoppers behave differently on a Tuesday than on a Sunday, so a test that stops mid-week compares uneven days.

Two to four weeks is the usual length in AB testing. Past six weeks the data gets less clean: visitors who cleared their cookies or switched device come back as new visitors and can land in the other group. Safari, for example, deletes cookies set by scripts after 7 days.

Stop early only when the variant is clearly hurting sales or is broken. Do not stop early because the variant is ahead: early leads often disappear, and a new design can get extra attention in its first days just for being new.

Give up when the planned end date arrives without a clear result. Do not extend the test again and again. Note the direction it pointed to, write down what you learned, and use the traffic for the next idea.

How many tests can I run at the same time?

Run one test per page at a time, and as many pages in parallel as you have ideas for. A test on the product page and a test on the cart can run together, each with all of your traffic. For a small store that usually means two or three tests at once.

Tests rarely disturb each other, even in large A B testing programs. Microsoft checked every pair of tests running on the same day across four of its products: three products showed no interference at all, and the fourth showed it in 1 case out of 50,000. None of those cases reversed a result.

Keeping tests apart is costly for a small store. If you split visitors so that each one sees only one test, three tests each get a third of the traffic and take three times as long.

Two cases call for running tests one after the other: two tests that change the same element, and two tests that contradict each other, such as a free-shipping banner in one test and a new shipping threshold in another.

After the test: learning from it

The result is where most A/B testing tools stop. It is where the useful part begins.

How do I know if a result is real?

A result is real enough to act on when three things are true: both groups received about the same number of visitors, the test ran for the full weeks you planned, and the confidence is high enough for the decision at hand. For most changes on a small store, 80 to 90% is enough. You do not need 95%.

The 95% rule is a convention. The statistician R.A. Fisher proposed “1 in 20” in 1925 as a convenient line, not as a law. Optimizely, one of the largest testing tools, uses 90% by default. A B testing a store is not a clinical trial: if you keep a product page change that turns out to do nothing, you have lost very little and you can undo it in a minute. Keep the strict bar for changes that are expensive or hard to reverse, such as prices.

Below that bar, a result still counts. A direction is less good than a certainty, but it is still a learning. A variant with a 75% chance of being better is worth keeping when the change costs nothing, and worth testing again in a bolder form.

The way the test was run matters more than the threshold. Checking every day and stopping at the first good number produces a false winner about one time in four, whatever statistics your tool uses. Groups of unequal size point to a broken setup: Microsoft found this in about 6% of its own tests. And when a result looks too good to be true, look for a bug first.

Which metric decides the winner: conversion rate, revenue per visitor or profit?

Conversion rate, as long as the test does not change what customers pay. It is the metric a small store can measure with the least traffic. When the test changes a price, a discount or the shipping cost, decide on profit per visitor.

Revenue per visitor sounds like the better metric for AB testing, but it swings with a few large orders. One customer who spends ten times the average can decide the test on their own, so revenue per visitor needs far more traffic to settle. Use it as a check, not as the judge: if conversion goes up but the average order value goes down, find out why before you keep the variant.

A win on conversion can hurt your margin when the price is part of the test. In one published example, a price cut raised conversion by 10%, left revenue flat and lowered profit by 5%. Count profit after product cost, discounts and shipping.

Whatever decides the winner, look at the steps before the order as well: add to cart, reached checkout, checkout completed. They do not pick the winner, they explain it.

What can I learn from a test result?

Three things: what the change is worth, what your customers care about, and what to test next. Whether the variant won is only the first of them.

What the change is worth. A test puts a price tag on a change: a 5% lift on your product page is a number you can turn into revenue per month. A losing test has a price tag too, which is the money you did not lose by rolling the change out to everyone. Until you measure, you cannot tell which changes matter. At Bing, a small change to ad headlines sat at the bottom of the to-do list for months and turned out to be worth over $100 million a year.

What your customers care about. Look at what each group did, element by element. If shoppers who saw the variant opened the size guide twice as often, sizing is a doubt you can address. If they stopped opening the reviews, the variant may have answered a question the reviews used to answer. Data at the level of each element tells you far more than the final conversion number.

What to test next. In A B testing, most tests do not produce a clear winner: across 127,000 experiments analysed by Optimizely, 12% did. If a win were the only useful outcome, almost nine tests out of ten would be wasted. They are not, because each one leaves a learning that feeds the next idea. A direction is less good than a certainty, but it is still a learning.

One caution about segments. If you cut a result into twenty groups (device, country, new or returning), one of them will look like a big win by chance. Treat a surprising segment as the idea for your next A/B test, not as a proven fact.

Why did my AB test win or lose?

The reason is usually found in what shoppers did after seeing the change, not in the conversion number. Follow both groups from the first page to checkout and look for the step where their paths split.

Example: a compact mobile product page looked flat on orders, 136 against 135. But variant shoppers started checkout 10% more often and finished it less often. The cause sat outside the test: the page loaded with a device model already selected, so shoppers who never chose one dropped out at checkout.

Start by ruling out a bug, because that is the most common cause of a surprising result in AB testing. Open the variant on a phone, place a test order, and check that both groups have about the same number of visitors. Then compare the groups step by step and element by element: what they clicked, what they ignored, where they left. Looking at mobile and desktop separately often explains the rest.

What should I do with a losing or flat test?

Do not just delete it. First check whether the test could have shown an effect at all, then look for the reason behind the result, then decide: try a bolder version of the idea, or drop it and keep the simpler page.

A flat result does not prove the change has no effect. It often means the test was too small to see it. Ask what the test could have detected: if it could only have detected a lift of 30% or more, a real lift of 10% may still be there.

A losing test is AB testing doing its job. It kept you from rolling out a change that would have cost you sales. Find the step where the variant lost shoppers: that tells you something about your customers that you did not know before.

Try again when the idea was sound and only the execution was timid. CXL raised a sign-up rate from 12.1% to 79.3% over six rounds of tests on the same idea. When a result is truly flat, keep the simpler version or the one that fits your brand best.

Write it down: what you expected, what happened, what you think the reason is, and what you will test next. A direction is less good than a certainty, but it is still a learning.

How long does a winning result stay valid?

Treat a winning result as valid for about a year, and check it again sooner when something important changes: where your traffic comes from, who your customers are, your theme, or the season. There is no standard rule, so this is the one we use.

AB testing results fade for two reasons. A new design gets attention at first simply because it is new, and that wears off. And a measured win is usually bigger than the real one: among all the variants you test, the lucky ones are the most likely to be declared winners. For the same reason, adding up the lifts of all your past winners overstates what you gained.

Check these first: tests on price, shipping or the cart, wins that looked too good to be true, and tests that ran during a sale or a holiday period.

Checking again is cheap. Run the same test once more for two weeks, with the old version as the variant. If the old version does as well as the new one, the win has faded and you have a new question to work on.

How do I optimize my AB tests over time?

Feed every result into the next test. A single test gives you one answer; a series of tests, each built on what the last one taught you, tells you who your customers are.

Expect two phases. First you test the e-commerce best practices your store does not follow yet. They are quick to find and often win. Then they run out, and your ideas have to come from your own customers: what they click, where they hesitate, what they say.

Keep a record of every test: the idea, the result, the reason you found, and the next step. After ten tests, this record is worth more than any list of A/B testing ideas you can find online, because it is about your customers.

Move fast. The companies known for A B testing, such as Booking.com and Amazon, are known for the number of tests they run, not for how perfect each one is. A small store that runs two tests a month learns more in a year than one that polishes four tests.

And put your winners live. In a review of more than a thousand client experiments, one agency found that teams often lost more money on winning variants that were never rolled out than on losing tests.

Tools

What to look for, whichever app you choose.

How do I choose an AB testing app for Shopify?

Check five things: how the app builds the variant, what it can test on your plan, which numbers it reports, what it leaves in your theme when you uninstall it, and whether it helps you understand a result.

How it builds the variant: in your theme, by redirecting visitors to a copy of the theme, or with a script in the browser. This decides how much the app slows your store and whether the page flashes while it loads.

What it can test on your plan: theme pages work on every Shopify plan. Tests on prices, shipping rates and the checkout often need Shopify Plus or a higher tier of the app. Read this part of the listing before you install.

Which numbers it reports: conversion rate only, or also revenue per visitor, profit, and the steps in between (add to cart, reached checkout). Check how the price grows as well. Most apps charge by orders or by visitors, and entry plans ran from about $15 to $100 a month at the time of writing.

What it leaves behind: some apps leave scripts or snippets in your theme after you uninstall them, and you have to remove them by hand. Ask what happens to a winning variant too: is it already part of your theme, or do you have to rebuild it?

Whether it explains results: most AB testing apps tell you which version won. Few help you see why. For a small store, the why is worth more than the win, because it gives you the next idea.

If you only need to know which of two versions converts better, Shopify Rollouts is free on the Grow plan and higher. A note on our own position: we build Riiiver, an A/B testing app that works in the theme, so read this list knowing that.