Menu

Resources

E-commerce CRO Guide: How to A/B Test Your Add-to-Cart and Checkout Funnel

How to A/B test ecommerce add-to-cart and checkout steps: what to test, how much traffic you need, how long to run tests, and how to read the results.

By: Irina ShvayaNovember 17, 2026

Reviewed by Ben GuntherLast reviewed

Frame 14 1

Key Takeaways

  • Test the funnel step with the biggest drop, and judge each test by the metric closest to the change, such as add-to-cart rate for product page tests.
  • Work out the sample size before you launch: detecting a 10% lift on a 2% purchase rate needs roughly 78,000 sessions per variant, while the same lift on an 8% add-to-cart rate needs about 18,000.
  • Run tests for at least two full weeks, avoid major sales, and don't stop early because one variant looks ahead.
  • No testing platform produces uplift by itself; the hypothesis does. Choose a tool that works with your store platform, traffic and checkout.
  • Low-traffic stores should ship clear usability fixes directly and save A/B tests for bold changes on their busiest pages.

To A/B test an ecommerce funnel, pick the step where most shoppers drop out, write a hypothesis about why, and test one change against the current page until you reach a sample size you set in advance. For add-to-cart tests, measure add-to-cart rate. For checkout tests, measure checkout completion among people who started checkout. Then confirm that revenue per visitor didn't fall.

This guide covers the mechanics: mapping the funnel, choosing metrics, calculating traffic needs, test length, tools and reading results. For the full list of things worth changing, see our 30-step ecommerce CRO checklist.

Map the funnel you want to test

Before testing, confirm that each funnel step is tracked as its own event. Google Analytics 4 documents a standard set of ecommerce events you can use:

  1. view_item: a shopper views a product page.
  2. add_to_cart: a product goes into the cart.
  3. begin_checkout: the shopper starts checkout.
  4. add_shipping_info: shipping details are submitted.
  5. add_payment_info: payment details are submitted.
  6. purchase: the order is placed.

Build a funnel exploration from these events and split it by device. The step with the biggest drop on your highest-traffic device is the first place to test. If shipping and payment steps aren't tracked separately, you can still test checkout as a whole using begin_checkout and purchase.

Choose the right metric for each test

Use the metric closest to the change as the primary metric, and keep revenue metrics as guardrails so a "win" doesn't cost you money further down.

Where the change isPrimary metricGuardrail metrics
Product pageAdd-to-cart rate (product viewers who add to cart)Purchase rate, revenue per visitor, returns
Cart or mini-cartCart-to-checkout rateAverage order value, purchase rate
CheckoutCheckout completion rate (purchases / checkout starts)Revenue per visitor, payment errors
Category or search pagesProduct views per session, add-to-cart ratePurchase rate
Offers, pricing, shipping thresholdsRevenue per visitorGross margin, average order value

Count the right people in each rate. A product page test should divide by visitors who saw that page, not by all site visitors. A checkout test should only include people who reached checkout.

How much traffic an ecommerce A/B test needs

A quick estimate for a 50/50 test (95% confidence, 80% power) is: visitors per variant = 16 x p x (1 - p) / d², where p is the baseline rate and d is the absolute change you want to detect. Online calculators give similar numbers.

Metric and baselineLift to detect (relative)People needed per variant
Purchase rate, 2%10% (2.0% to 2.2%)About 78,400 sessions
Purchase rate, 2%20% (2.0% to 2.4%)About 19,600 sessions
Add-to-cart rate, 8%10% (8.0% to 8.8%)About 18,400 product viewers
Add-to-cart rate, 8%20% (8.0% to 9.6%)About 4,600 product viewers
Checkout completion, 50%10% (50% to 55%)About 1,600 checkout starters

Two lessons follow. Metrics with higher baselines, such as checkout completion, need far fewer people. And small stores can only detect large effects, so they should test bold changes, such as a new page layout, and skip button colors.

How long to run the test

  • At least two full weeks. Weekday and weekend shoppers behave differently, and payday cycles affect some stores.
  • Until you hit the planned sample size. Decide it before launch and don't stop early because a variant looks ahead after a few days.
  • Not during unusual periods. Major sales, stockouts and big email sends can swamp the effect you are testing.
  • Not forever. Google's website testing guidance asks you to remove test code once you have a result, use rel="canonical" on variant URLs and use 302 redirects.

Check the traffic split on day one. If a 50/50 test shows something like 54/46, the setup is broken (a sample ratio mismatch) and the results can't be trusted.

What to test at each funnel step

Add to cart

  • Delivery date and returns line beside the Add to cart button
  • Review rating and count moved next to the price
  • Size guide or compatibility checker placed by the variant selector
  • Sticky Add to cart bar on mobile
  • Product image order (in-use photo first vs plain product shot)

Cart

  • Shipping estimate shown in the cart
  • Free-shipping progress message at different thresholds
  • Coupon field collapsed behind a link
  • Slide-out cart vs a full cart page

Checkout

  • Express wallet buttons at the top of checkout
  • Fewer fields (company and address line 2 hidden behind links)
  • One-page vs multi-step layout
  • Security and returns reassurance near the payment fields

Checkout testing depends on your platform. On WooCommerce the checkout runs on your own site, so you can test it; for product page tests, make sure page caching doesn't serve one cached variant to everyone. On Shopify you can't add testing scripts to the checkout itself; see our post on Shopify checkout extensibility for what can be changed. For WooCommerce specifics, read how to improve the WooCommerce checkout.

Which CRO platform gives the highest uplift?

None does on its own. The uplift comes from the change you test, and a testing tool only splits traffic and measures the outcome. Two stores using the same tool get different results because their problems differ.

Pick a tool by fit instead:

  • Platform support: it should work with your theme, cart and checkout (Shopify, WooCommerce or a headless setup).
  • Testing method: client-side tools with visual editors are quick to set up but can cause flicker; server-side testing is cleaner but needs developer time.
  • Statistics you can read: clear sample size guidance, confidence intervals and segment reports.
  • Revenue tracking: it should record orders and revenue as well as clicks.
  • Speed impact: check page speed with the tool running.

Google Optimize was shut down on September 30, 2023, so older guides that recommend it are out of date.

Reading results without fooling yourself

  • Look at the confidence interval as well as the winner label. A result of "+6%, somewhere between -1% and +13%" is not a win.
  • Check guardrail metrics. A product page test that raises add-to-cart rate but lowers purchases or AOV is a loss.
  • Segment after the test (mobile vs desktop, new vs returning) to generate the next hypothesis, not to rescue a losing test.
  • Re-check winners after a month. Some lifts fade once the change is no longer new to returning visitors.
  • Log the hypothesis, dates, result and lesson for every test.

When not to run an A/B test

Skip the test when the answer is obvious or the traffic isn't there. Broken buttons, checkout errors, missing shipping costs and accessibility problems should be fixed right away. If your store gets a few hundred orders a month, compare before-and-after periods and lean on research instead; our CRO tips for small ecommerce stores explains how.

A CRO package or service should cover the whole cycle: research, test design, development, QA, analysis and a written log. eSEOspace offers this as part of its ecommerce CRO services.

Frequently Asked Questions

How long should an ecommerce A/B test run?

Run it for at least two full weeks and until it reaches the sample size you calculated before launch. Two weeks covers weekday and weekend behavior. Avoid launching during big sales or stock problems, and don't stop the test early because one version looks ahead after a few days, since early results swing widely.

How much traffic do I need to A/B test my checkout?

It depends on the baseline rate and the lift you want to detect. Checkout tests need fewer people because completion rates are high: detecting a move from 50% to 55% takes roughly 1,600 checkout starters per variant. Detecting a 10% lift on a 2% store-wide purchase rate takes about 78,000 sessions per variant.

What metric should I use for add-to-cart tests?

Use add-to-cart rate among visitors who viewed the tested product pages as the primary metric. Keep purchase rate and revenue per visitor as guardrails, because a change can raise add-to-cart rate while lowering completed orders, for example when it pushes hesitant shoppers into the cart who later abandon.

Which CRO platform gives the highest uplift in add-to-cart and checkout completion?

No platform produces uplift by itself. The result comes from the change you test, and the tool only splits traffic and measures it. Choose a tool that works with your store platform and checkout, tracks orders and revenue, shows clear statistics and doesn't slow your pages. Then spend your effort on research and strong hypotheses.

Can small ecommerce stores do A/B testing?

Yes, but only for large effects on busy pages. A store with low traffic can't detect small lifts, so it should test bold changes such as a new product page layout and fix obvious usability problems without a test. Before-and-after comparisons, session recordings and customer surveys fill the gap until traffic grows.

Get a FREE Website Audit

Enter your website and get a 20–30 page SEO, GEO, AEO & CRO audit within 24 hours. Completely free.

Don't have a site yet? Get in touch →

Ready to speak with a marketing expert?
Give us a call! (916) 866-7893

Websites Launched
1407
Websites Launched
Marketing Experts
29
Marketing Experts
Hours of Dedicated Work
204533
Hours of Dedicated Work
Irina S.Benjamin G.Jeanette M.David G.