Sub topic 1
What an A/B Test Is and When It Is Worth Running
Prerequisites
Assume you know basic email terms such as campaign, recipient list, open rate, and click rate. You should also be comfortable with percentages and simple probability.
What an A/B Test Is
An A/B test randomly divides similar recipients into groups. Group A receives one version, and group B receives another. You compare a predefined outcome, such as click rate, while holding other conditions constant.
Run a test when the decision matters and you have enough recipients to detect a useful difference. Do not test every minor wording choice. A test is worthwhile when its result will change a campaign decision.
Writing a Hypothesis and Changing One Thing at a Time
A hypothesis predicts a measurable effect:
> A subject line that names the reader's benefit will increase click rate compared with the current subject line.
Change one main variable per test. For a subject-line test, keep the sender, message, audience, send time, and offer the same. For a send-time test, keep the content and subject line the same. Changing both subject line and send time prevents you from identifying the cause of a result.
Choosing a Primary Metric
Choose one primary metric before sending. For most email experiments, click-through rate or downstream conversion rate is more useful than open rate because it measures a stronger action.
You may record secondary metrics, such as unsubscribes or complaints, but do not switch the primary metric after seeing the results.
Why Open Rate Misleads
Open rate often depends on an image-tracking pixel loading. Mail Privacy Protection can preload that image, making an open appear even when the recipient did not read the message. Some clients block images, causing genuine opens to go unrecorded.
Use clicks or conversions when possible. Treat open rate as a diagnostic signal, not the main evidence for a winner.
> callout note > A higher open rate is not useful if the subject line attracts opens but reduces clicks or conversions.
Assigning Recipients to Variants at Random
Random assignment prevents audience differences from becoming hidden explanations. Use a stable identifier and experiment name so the same recipient receives the same variant if the assignment is recalculated.
import hashlib
def assign_variant(user_id, experiment, variants=("A", "B")):
key = f"{experiment}:{user_id}".encode("utf-8")
digest = hashlib.sha256(key).hexdigest()
return variants[int(digest, 16) % len(variants)]
print(assign_variant("user-123", "subject-test-2026-11"))This method is reproducible, and the experiment name keeps assignments independent across experiments.
Exercise
You want to test a new subject line and a new send time. What should you change first?
Show answer
Test one variable first, such as the subject line, while keeping the send time and other campaign conditions constant.