Sub topic 15
Testing one change at a time
This chapter assumes you can read basic HTML forms, compute percentages, and that you already track visitors and leads as covered in the chapters on measuring conversion rate and judging lead quality. Here you plan a simple A/B test and read its result without fooling yourself.
What an A/B test is
An A/B test shows two versions of one page to similar visitors at the same time. Version A is the control, which is your current page. Version B is the variant, which differs in exactly one thing. You then compare the results.
Changing one thing is the whole point. If you rewrite the headline, shorten the form and change the button color together, a better result tells you nothing about which change caused it.
The test loop
- Write a hypothesis. Use the form: "If we change X, then metric Y will improve, because Z." For example: "If the button says 'Get the free checklist' instead of 'Submit', more visitors will become leads, because the button names the outcome."
- Pick one variable. Good candidates are the headline, the call to action, the number of form fields, or the offer itself.
- Pick the metric before you start. Decide in advance whether you judge by visit-to-lead rate, lead-to-customer rate, or both.
- Split traffic randomly and run both versions together. Do not run A this week and B next week. Seasons, ads and news change who visits.
- Decide the stopping point in advance. For example, "two full weeks and at least 1,000 visitors per version."
Look at lead quality too
The most common error is judging only by lead volume. The code below compares a short form and a long form on both rates.
def lead_to_customer_rate(customers, leads):
return customers / leads if leads else 0.0
variants = {
"A: short form": {"visitors": 1000, "leads": 60, "customers": 3},
"B: long form": {"visitors": 1000, "leads": 35, "customers": 4},
}
for name, v in variants.items():
visit_to_lead = v["leads"] / v["visitors"]
lead_to_cust = lead_to_customer_rate(v["customers"], v["leads"])
print(f"{name}: {visit_to_lead:.1%} of visitors become leads, {lead_to_cust:.1%} of leads become customers")The output is:
A: short form: 6.0% of visitors become leads, 5.0% of leads become customers
B: long form: 3.5% of visitors become leads, 11.4% of leads become customersThe short form gets more leads, but the long form produces more customers: 4 against 3. Which one wins depends on the metric you chose in step 3. With counts this small, the gap between 3 and 4 customers could easily be chance.
Common errors
- Changing several things at once. You cannot tell which change worked.
- Stopping early. A variant that leads after two days may fall behind by day ten. Small samples swing widely.
- Testing without enough traffic. If each version gets only a few dozen visitors, differences are mostly noise. Test bigger changes, such as the offer, or wait longer.
- Ignoring downstream results. More leads that never buy are not a win.
- Not recording results. Write down each hypothesis, result and decision so you do not repeat tests.
After the test
Keep the winner as the new control, then test the next variable. Improvements add up over many small, well-run tests. A rough order to work in is the offer first, then the headline, the call to action, and the form fields last.
Exercise
Your control form converts 40 of 1,000 visitors. Your variant has a new headline and a shorter form, and converts 52 of 1,000. A colleague says the new headline caused the gain. What is wrong with that claim, and how would you fix the test?
Show answer
The variant changed two things, the headline and the form length, so the gain cannot be assigned to the headline. The 12-lead difference is also small enough that chance could explain part of it. Run two separate tests, one changing only the headline and one changing only the form length. Run each until it reaches the planned sample size, and compare lead-to-customer rates as well as visit-to-lead rates.