Find a course

Module 5: Tracking, Testing and OptimizationLesson 11 of 1113 min

A/B Testing and Ongoing Optimization

Run fair A/B tests on ads and landing pages, avoid calling winners too early, and follow a weekly routine that steadily cuts waste.

Step 1 of 12Learn

Opinions are cheap; tests are cheaper than guessing

Marco is sure his new ad headline, Handmade Leather Wallets, will beat the old one, Slim Wallets That Last 20 Years. After two days the new ad has 3 sales and the old one 1. He declares a winner and pauses the old ad. A month later, sales are down.

What went wrong is not the idea of testing but the execution. With so few sales, a 3 to 1 split can easily happen by chance. Marco needed more data.

An A/B test compares two versions while keeping everything else equal, so that any difference in results comes from the one thing you changed. Good tests follow a few rules:

  1. Test one variable at a time: a headline, an offer, an image, a landing page layout. Change three things and you will not know which mattered.
  2. Split traffic fairly: at random, at the same time, to the same audience. Comparing this month's ad with last month's mixes in seasonality and competition.
  3. Decide the success metric in advance: usually conversion rate or CPA, not just CTR.
  4. Collect enough data: wait for a meaningful number of conversions per version and at least one full week, so weekday and weekend behavior are both included.
  5. Write down the result and what you will test next.

Ad platforms offer built-in experiment tools that split traffic properly; use them where available.

Step 2 of 12Chart

Two identical ads, measured day by day

Two identical ads, measured day by dayLine chart with 9 categories: Day 1: Ad A 5%, Ad B 0%; Day 2: Ad A 1.5%, Ad B 4%; Day 3: Ad A 3.8%, Ad B 2%; Day 5: Ad A 2.2%, Ad B 3.5%; Day 7: Ad A 3.4%, Ad B 2.5%; Day 10: Ad A 2.6%, Ad B 3.3%; Day 14: Ad A 3.2%, Ad B 2.8%; Day 21: Ad A 2.9%, Ad B 3.1%; Day 28: Ad A 3%, Ad B 3%.0%1%2%3%4%5%Conversion rate so farDay 1Day 2Day 3Day 5Day 7Day 10Day 14Day 21Day 28
Illustrative: both ads truly convert at 3%. Early "winners" are mostly noise.
Two identical ads, measured day by day
ItemAd AAd B
Day 15%0%
Day 21.5%4%
Day 33.8%2%
Day 52.2%3.5%
Day 73.4%2.5%
Day 102.6%3.3%
Day 143.2%2.8%
Day 212.9%3.1%
Day 283%3%

Step 3 of 12Note

Step 4 of 12Practice · Put in order

Put the steps of a fair A/B test in order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Choose the success metric and how much data you need
  2. Split traffic randomly between version A and version B at the same time
  3. Write a hypothesis about one change and why it should help
  4. Wait until both versions have enough conversions and at least a full week
  5. Compare results, keep the winner and record what you learned

Step 5 of 12Diagram

A fair A/B test from start to finish

A fair A/B test from start to finishProcess diagram: Hypothesis → Metric and sample → Random split → Run full weeks → Decide and log.HypothesisMetric and sampleRandom splitRun full weeksDecide and log

Tap a shape with to see more.

Hypothesis

One change and why it should help.

Metric and sample

Conversion rate or CPA, and how many conversions you need.

Random split

Same time, same audience, platform experiment tool.

Run full weeks

Do not peek and stop early.

Decide and log

Keep the winner, write down what you learned, plan the next test.

Step 6 of 12Learn

How much data is enough?

Statistical significance can be calculated precisely with an online test calculator, but a few rules of thumb keep beginners out of trouble:

  • Small differences need big samples. To detect that a 3.0% conversion rate is truly better than 2.5%, you typically need several thousand clicks per version. To detect 6% versus 3%, a few hundred may be enough.
  • Count conversions, not clicks. A test with 5,000 clicks but only 8 conversions per side cannot tell you much about conversion rate.
  • Do not peek and stop. Checking every day and stopping the first time one version looks ahead dramatically increases the chance of a false winner. Decide the sample size or duration first.
  • Watch for novelty. A new creative sometimes performs well for a few days simply because it is new to the audience.

Here is a quick sense of chance: if two ads truly convert at the same 3% rate and each gets 200 clicks, one of them will often end up with 8 conversions and the other with 4, a "2x difference" produced by pure randomness.

When you cannot get enough data on conversions, test closer to the top of the funnel, such as CTR on ads, while keeping an eye on whether the winners still convert.

Step 7 of 12Practice · What would you do?

What would you do?

An ad test ran for three days. Ad A: 410 clicks, 9 conversions. Ad B: 395 clicks, 14 conversions. The account manager wants to pause Ad A now.

Step 8 of 12Note

Step 9 of 12Learn

A weekly optimization routine

Optimization is mostly a habit, not genius. A one-hour weekly routine for a small account:

  1. Check tracking and spend. Are conversions arriving? Did anything spend far more than expected?
  2. Review search terms. Add negatives for irrelevant queries; promote converting queries to exact-match keywords.
  3. Look at keywords and ad groups by cost. Find the ones spending without converting. Lower bids, tighten match types or pause them after enough data.
  4. Check ads and creative. Pause clear losers from finished tests, add new versions, refresh fatigued social ads.
  5. Adjust budgets toward profit. Shift money from campaigns above target CPA to profitable ones that are budget-limited.
  6. Look at segments. Devices, locations, hours and audiences may differ sharply. A campaign might be profitable on desktop and losing money on mobile, or the reverse.
  7. Write a short log. Date, change and reason. In a month, the log explains every movement in the numbers.

Monthly, step back: compare platform results with real sales and profit, revisit break-even numbers when prices or margins change, and plan the next tests.

Step 10 of 12Tap to reveal

Classic PPC mistakes and their fixes

  1. Sending all traffic to the home page

    Point each ad group to the most specific matching page.

  2. No negative keywords

    Build a negative list before launch and grow it weekly from the search terms report.

  3. Judging by clicks or CTR alone

    Judge by CPA, ROAS and profit, using your own margins.

  4. Changing everything every day

    Make one meaningful change at a time and give it enough data and time.

  5. Broken or double tracking

    Compare platform conversions with real orders every month.

  6. Spreading a small budget thin

    Concentrate on the highest-intent keywords, places and hours.

Step 11 of 12Practice · Sort into groups

Sort each task into how often a small account should do it.

Tap an item, then tap its group (or drag it there).

Step 12 of 12Practice · Choose one

A campaign is profitable overall. Segmenting by device shows desktop at a $30 CPA and mobile at a $95 CPA, while the break-even CPA is $60. What is the best first step?