A/B testing

What Is A/B Testing in Digital Marketing? Examples and Steps

A/B testing shows you which version of a page, email or ad actually gets more customers, instead of guessing. This guide explains how it works, where to use it in digital marketing, and how to run your first test step by step.

What is A/B testing in digital marketing? Two email versions, A and B, with different call-to-action buttons

What is A/B testing?

A/B testing (also called split testing) compares two versions of the same thing to see which one performs better. Version A is the current version, called the control. Version B is the changed version, called the variant.

Visitors are split randomly between the two, both versions run at the same time, and you measure which one gets more of the action you care about: purchases, sign-ups, clicks or replies. Because the only difference between the groups is your change, the result tells you whether that change caused the difference.

How A/B testing works

  1. Pick one change, such as a new headline or a shorter form.
  2. Split traffic randomly, usually 50/50, so both groups are alike.
  3. Run both versions at the same time, so seasons, weekdays and campaigns affect both equally.
  4. Measure one primary metric decided before the test starts.
  5. Wait for statistical confidence, typically 95%, before calling a winner. This makes it unlikely that the difference is just luck.

A/B testing examples in digital marketing

A/B testing works in almost every digital marketing channel. Some examples of what to test (illustrative):

ChannelWhat you can testMain metric
Landing pagesHeadline, hero image, offer, form length, call to actionConversion rate
Email marketingSubject line, sender name, send time, layoutClick rate, revenue per email
Paid adsAd copy, creative, audience, landing pageCost per acquisition
Product pagesImages, reviews placement, delivery promise, price displayAdd-to-cart rate, revenue per visitor
CheckoutGuest checkout, payment options, trust messagesCheckout completion
SaaS sign-up and pricingPlan names, recommended plan, form fieldsTrial sign-ups, trial-to-paid

Landing page example

Hypothesis: "Visitors from our Google Ads don't see the offer they clicked on. If we repeat the ad's offer in the headline, more of them will request a quote." Variant B changes only the headline.

Email example

Send subject line A to half of a test segment and subject line B to the other half, then send the winner to the rest of the list. Judge it on clicks or revenue, not opens alone.

Paid ads example

Google Ads has a built-in experiments feature, and Meta Ads Manager has an A/B test option. Both split your audience so each person sees only one version, which keeps the comparison fair.

For real results from tests like these, see our A/B testing case studies.

How to run an A/B test in 7 steps

  1. Research first. Use analytics, heatmaps, session recordings and customer surveys to find where people drop off and why.
  2. Write a hypothesis: "If we change X for these visitors, then this metric will improve, because evidence."
  3. Choose one primary metric, such as purchases or sign-ups, before the test starts.
  4. Work out sample size and duration with a sample size calculator. Plan for at least two full weeks so every weekday is covered.
  5. Build and check the variant on every device and browser. A broken variant ruins the test.
  6. Run the test without peeking. Stopping as soon as one version looks ahead is the most common way to get a false winner.
  7. Analyze, ship and document. Roll out winners, write down what every test taught you, including the losers, and use it to plan the next test.

A/B testing vs split URL testing vs multivariate testing

MethodWhat changesBest for
A/B testingOne change, two versions of the same pageMost tests, any traffic level
Split URL testingTwo different pages on different URLsFull redesigns or new page templates
Multivariate testingSeveral elements at once, in every combinationHigh-traffic pages, to see how elements interact

People often say "split testing" when they mean A/B testing; in everyday use the two terms mean the same thing.

How much traffic do you need for A/B testing?

What matters is the number of conversions, not just visitors. As a rule of thumb, each version needs a few hundred conversions before the result is reliable, and smaller expected lifts need more.

With low traffic, test bigger, bolder changes, test on your highest-traffic pages first, or choose a metric higher up the funnel, such as add-to-cart instead of purchase.

Common A/B testing mistakes

  • Stopping a test early because one version looks like it is winning.
  • Testing without research, such as button colors chosen at random.
  • Changing several things at once in an A/B test, so you can't tell what made the difference.
  • Measuring the wrong metric, such as clicks when revenue is what matters.
  • Ignoring mobile, where most traffic usually is.
  • Not writing up losing tests. A loss still tells you what your customers don't want.

A/B testing tools

  • Websites: VWO, Optimizely, Convert and AB Tasty.
  • Shopify stores: apps such as Intelligems and Shoplift.
  • Ads: Google Ads experiments and Meta Ads Manager's A/B test.
  • Email: most email platforms, including Mailchimp and Klaviyo, have A/B testing built in.

Google Optimize, once a popular free option, was shut down by Google in September 2023, so older guides that recommend it are out of date.

Want to know what to test first on your site? Our free CRO audit finds your three biggest conversion leaks and the first A/B test we'd run.

Frequently asked questions

In everyday use, yes. Both compare two versions of a page, email or ad on randomly split audiences. Strictly speaking, split URL testing compares two separate pages on different URLs.

Until it reaches its planned sample size and at least two full weeks, so every day of the week is included. Most tests run for two to four weeks.

Landing pages, product pages, checkout, pricing pages, sign-up forms, email subject lines and content, ad copy and creative, and pop-ups or offers.

Yes, but test bigger changes, use your highest-traffic pages and pick a metric that happens often, such as add-to-cart. Very small changes need far more traffic to measure.

Find out where your website loses conversions.

Get a free CRO audit: a 15-minute recorded walkthrough with your three biggest revenue leaks and the first A/B test to run.

Get Your Free CRO Audit
Free CRO audit
in 5 working days
Get Audit