Sub topic 14
Measuring results and A/B testing personalisation
This chapter assumes you can send a campaign, build segments, and use merge tags and conditional blocks as covered earlier. It shows how to find out whether personalisation improves results, rather than assuming it does.
Why measurement matters
Personalisation adds work and risk. A name in a subject line or a block of recommended items can raise engagement, but it can also do nothing, or hurt. A controlled comparison tells you which. Without one, you can't tell the effect of personalisation from the effect of timing, audience, or the offer.
Choose one change and one metric
An A/B test sends two versions to similar groups and compares a result. The test is only useful if the versions differ in one respect.
- Control (A): the version without the personalisation, such as "Your March update".
- Variant (B): the same email with one change, such as "Sam, your March update".
Pick the metric before you send. The metric should match what the change can affect.
| Change | Primary metric | Why |
|---|---|---|
| Name in subject line | Unique open rate | The subject line decides whether the email is opened |
| Personalised preheader | Unique open rate | It appears next to the subject line |
| Conditional content by plan | Click-through rate | It affects what readers do inside the email |
| Item list from an order or browsing | Click-through or conversion rate | It affects the next action |
Open rates are less reliable than they used to be, because some mail apps load images automatically and register an open that no person made. Use opens only as a rough signal for subject-line tests, and prefer clicks or conversions when you can.
How the test flows
Common errors
- Comparing different audiences. Send the personalised version to engaged customers and the plain version to new subscribers, and the result reflects the audiences, not the personalisation. Split one audience at random.
- Testing several changes at once. If the variant has a new subject line, a new offer, and a product list, you can't say which change worked.
- Stopping early. Early results swing widely. Decide the sample size and the end time before you send, and don't stop when one version leads.
- Ignoring size. A 20% open rate against 21% on 200 recipients per group is noise. Many platforms report a confidence level. Treat anything below about 95% as inconclusive.
- Not counting failures. A fallback such as "Hi there" is part of the variant. If 30% of contacts have no first name, the variant is mostly the control for those people, so the measured effect shrinks.
Check the groups for fairness
You can test whether the groups came from the same population by comparing a known trait. This Python example checks whether two groups differ in the number of contacts with a missing first name. It uses only the standard library.
from math import sqrt
def two_proportion_z(success_a, total_a, success_b, total_b):
rate_a = success_a / total_a
rate_b = success_b / total_b
pooled = (success_a + success_b) / (total_a + total_b)
error = sqrt(pooled * (1 - pooled) * (1 / total_a + 1 / total_b))
return (rate_b - rate_a) / error
# Clicks: control 180 of 5000, variant 225 of 5000
z = two_proportion_z(180, 5000, 225, 5000)
print(round(z, 2))
print("Significant at 95%" if abs(z) > 1.96 else "Not significant")The same function works for clicks, opens, or missing-name counts. A z value beyond ±1.96 corresponds to roughly 95% confidence. Here z is about 2.2, so the click difference is unlikely to be chance.
Reading the result
- Report the lift as a number, such as "3.6% to 4.5% click rate", not just "B won".
- Check segments. Personalisation may help new customers and do nothing for long-standing ones.
- Watch unsubscribes and spam complaints. A tactic that raises opens but also raises unsubscribes may be too intrusive, which connects back to the consent and data-minimisation limits.
- Keep a holdout group if you run personalisation continuously. A small share of recipients who always get the plain version lets you keep measuring the effect over time.
Exercise
You send a personalised subject line to 10,000 contacts and a plain one to 500 contacts who joined last week. The personalised version has a higher open rate. Why can't you conclude that personalisation worked, and how would you fix the test?
Show answer
The groups differ in more than the subject line: the audiences are different in size and in tenure, and new subscribers often behave differently. Split one audience at random into equal groups, change only the subject line, choose the metric and sample size before sending, and confirm the difference is statistically significant.
Exercise
In the Python example, the variant had 225 clicks from 5,000 sends and the control had 180 from 5,000. If the variant had 190 clicks instead, would the result be significant at 95%? Explain without running the code.
Show answer
No. The difference of 10 clicks on 5,000 sends is small relative to the expected random variation, so z would be well under 1.96. The result would be inconclusive.