ab testingcart optimisationshopifyguides
How to A/B Test Your Shopify Cart: A Step-by-Step Guide
To A/B test your Shopify cart, split visitors between two or more versions of the cart, change one meaningful thing between them (an offer, an upsell set, a timer, a design), decide in advance how many visitors you need, and judge the winner on revenue per visitor rather than conversion rate alone. The cart is one of the best places to test because it is where shoppers decide whether to add more and whether to check out, and small changes there show up directly in order value.
This guide covers what you can test in a cart, how cart testing differs from Shopify’s own theme testing, how to size a test, a step-by-step setup in Zupli, and how to read the results without fooling yourself.
What you can test in a Shopify cart
Most cart tests fall into six groups:
| Test type | Example | Main metric to watch |
|---|---|---|
| Offer | Free gift vs order discount | Revenue per visitor |
| Threshold | Free shipping at $50 vs $60 | Revenue per visitor, order value |
| Upsells | Two different recommendation sets | Upsell attach rate |
| Urgency | Countdown timer on vs off | Cart-to-purchase rate |
| Design | Two cart themes or layouts | Cart-to-purchase rate |
| Choice | One gift vs a choice of three | Cart-to-purchase rate |
Start with offer and threshold tests: they change what the shopper actually gets, so they are the easiest to explain and the most likely to move revenue per visitor. Leave design tests until your offers are settled.
Cart testing vs Shopify Rollouts
Shopify now has native testing. Rollouts lets you schedule and test changes to your store’s main theme, checkout and accounts pages, discounts and product catalogs. An Experiment compares a treatment against a control, defaults to a 50/50 split, and reports theme metrics such as conversion rate, add to cart rate and reached checkout rate. Shopify’s help centre says Experiments are available on its Grow plan or higher, and that rollouts can’t be applied to vintage themes.
That makes Rollouts a good fit for theme changes: a new product page layout, a redesigned header, a new theme altogether. The offers, upsells, timers and goals inside a cart drawer app are set up in that app, so the natural place to test them is the app itself, where each variant can carry its own campaigns and the results are measured from cart to purchase.
The two approaches work together. Use Rollouts for the theme, and your cart app’s testing for what happens inside the cart.
How many visitors you need (worked example)
The most common A/B testing mistake is stopping when the numbers look good. Evan Miller’s well-known article How Not To Run an A/B Test shows why: significance tests assume “that the sample size was fixed in advance”, and checking repeatedly then stopping at the first significant result inflates false positives far above the level you think you are accepting. His advice is simple: “Decide on a sample size in advance and wait until the experiment is over.”
He also gives a rule of thumb for the sample size per variant: n = 16 × p(1 - p) / δ², where p is your baseline conversion rate and δ is the smallest absolute change you want to detect.
Here it is with illustrative numbers:
| Input | Detect a 20% lift | Detect a 10% lift |
|---|---|---|
| Baseline purchase rate per visitor (p) | 3% | 3% |
| Smallest change to detect (δ) | 0.6 points (3% to 3.6%) | 0.3 points (3% to 3.3%) |
| Visitors needed per variant | about 12,900 | about 51,700 |
| Days needed at 1,000 visitors per variant per day | about 13 | about 52 |
Three practical takeaways:
- Small stores should test big changes. If you get 500 visitors a day, test a free gift against a discount, not two shades of a button.
- Run whole weeks. Even if the maths says 10 days, run 14 so every weekday and weekend is covered equally.
- Revenue metrics need more data than conversion metrics, because order values vary more than a yes or no purchase. Treat the numbers above as a minimum.
Test it, don’t guess. See how Zupli A/B testing works
Step by step: how to A/B test your Shopify cart in Zupli
Zupli’s A/B testing is included on every paid plan. Here is how a test runs from start to finish.
1. Write the hypothesis
One sentence: “A free gift at $60 will earn more revenue per visitor than 10% off at $60.” If you cannot write it, you are not ready to test.
2. Create the test and add variants
Name the test and add two or more variants. Each variant is a complete cart with its own appearance (theme, colours, layout and text), its own upsells and its own scarcity timer. Change only what your hypothesis is about, and keep everything else identical.
3. Assign campaigns to each variant
In each campaign, such as cart goals, gifts or upsells, choose which test variants it should run for. This is the step people miss: while a test is running, campaigns without a variant are paused. Check every live campaign before you start, or a promotion you rely on will quietly switch off.
4. Choose how traffic is assigned
You have two options:
- Traffic split: every visitor is assigned at random by the percentages you set, such as 50/50. This is the right choice for a true A/B test.
- Audience targeting: give a variant conditions by market, country, language, device OS or logged-in status, and shoppers who match get it. This is better for showing the right cart to the right audience than for finding a winner.
Returning visitors keep their variant, so nobody sees their cart change between visits. If you change the split during a test, new visitors are assigned by the new percentages and existing ones keep theirs.
5. Start the test and leave it alone
Note the start date and the sample size you worked out. Do not change variants, campaigns or prices mid-test. If you must change something, end the test and start a new one.
6. Read the results in Insights
Zupli’s Insights tab reports, for each variant: the traffic split (target against actual), the funnel from assigned to carts, checkouts and purchases, cart-to-purchase rate, revenue per visitor, upsell attach rate, order value, and the channel each visit came from. It ends with a plain recommendation, including “not enough signal yet” when that is the honest answer.
How to read A/B test results without fooling yourself
Use revenue per visitor as the deciding metric
Revenue per visitor combines conversion and order value in one number. A variant can raise order value while lowering conversion, or the other way round; revenue per visitor shows the net. Use cart-to-purchase rate and upsell attach rate to understand why a variant won, not to choose it.
Check the split first
If the actual split is far from the target, something is wrong with the setup, such as a campaign or a targeting condition catching more visitors than intended. Fix that before trusting any other number.
Look at channels
If one variant wins only among paid social visitors, that is a finding about an audience, not a universal winner. Consider targeting that variant rather than rolling it out to everyone.
Respect “not enough signal yet”
Our guide on how to read A/B test results goes deeper on split checks, intervals and inconclusive tests. If you reach your planned sample size and the result is still unclear, the honest conclusion is that the change does not matter much. Pick the cheaper or simpler option and test something bigger.
Cart test ideas to start with
These are tests the Zupli cart can run, offers first:
- Free gift vs order discount at the same threshold. Our guide to Shopify gift with purchase explains how to cost the gift side.
- Free shipping at two thresholds. Work out your two candidates with the maths in our guide to setting a free shipping threshold.
- Two sets of in-cart upsells, for example best sellers vs items priced near the free shipping gap, judged on attach rate and revenue per visitor. See how in-cart upsells work.
- One gift vs a choice of three.
- Scarcity timer on vs off. Only test urgency that is true; a fake countdown can win a test and still cost you trust.
- Two cart designs.
During peak season, keep tests simple and low risk. Our Christmas gift wrap upsell guide suggests a few that suit gifting traffic.
FAQ
Can you A/B test the cart on Shopify?
Yes. Shopify’s Rollouts tests theme, checkout and accounts, discount and catalog changes, and cart apps with built-in testing, such as Zupli, test what happens inside the cart drawer: offers, upsells, timers and design. Zupli’s A/B testing is included on every paid plan.
How long should I run a cart A/B test?
Until you reach the sample size you decided in advance, and for at least one or two full weeks so every day of the week is covered. For a 3% purchase rate, detecting a 20% lift needs roughly 12,900 visitors per variant. Do not stop early because one variant looks ahead.
What metric should I use to pick the winner?
Revenue per visitor, because it captures both conversion and order value. Use cart-to-purchase rate, upsell attach rate and order value to explain the result.
Should I use a traffic split or audience targeting?
Use a traffic split to find out which cart performs better, because random assignment makes the comparison fair. Use audience targeting when you already know different shoppers need different carts, for example different delivery messages by country.
Do shoppers see a different cart each time they visit?
No. In Zupli, returning visitors keep the variant they were first given, and changing the split only affects new visitors. That keeps the experience consistent and the data clean.
Next step
Pick one offer test from the list above, work out your sample size, and run it for at least two weeks. A/B testing and audience targeting are included on every paid plan; compare Zupli’s plans and start on the 14-day free trial.