Low open rates and stagnant click-through rates are a common pain point for email marketers. Rather than relying on intuition, A/B testing provides objective data for decision-making. Statistics show that 70% of email campaigns do not use A/B testing, missing up to 30% of potential conversions. A well-executed A/B test can increase revenue per email by 20-30% without additional traffic costs. This is confirmed by our clients' cases: one e-commerce company increased CTR by 1.8 times in three months after implementing systematic testing, generating an additional $5,000 in monthly revenue.
Properly organized testing boosts not only open rates but also audience loyalty. It's important to understand that reliable results require a sufficient sample size—at least 1,000 recipients per variant. We have implemented this practice in 50+ projects and are ready to share our experience. Statistically significant results allow confident selection of the best variant and increase conversion. A/B testing email campaigns is 2-3 times more effective than intuitive guesses when choosing a subject line.
Problems We Solve
The main mistake is testing without a plan and without adequate sample size. For example, sending 200 emails with different subject lines and declaring a winner based on 3 extra opens is statistically insignificant. Insufficient sample size is the primary cause of unreliable results. With a 20% open rate and a desired 5% effect, you need to send at least 1,300 emails per variant. Many neglect this and get false winners. Other issues include:
- Overloading tests: trying to test 10 hypotheses in one split—compromises the experiment's purity.
- Unaccounted external factors: day of week, time of day, seasonality.
- Premature stopping: declaring a winner after an hour when data hasn't stabilized.
How to Properly Organize an A/B Test
The process starts with formulating a hypothesis. For example: "Personalized subject line will improve open rate by 15%." Determine the metric (open rate, CTR), choose one variable (subject line), calculate the sample size. After calculation, it's crucial to configure splitting correctly. We use random distribution with control over user segments to avoid bias. For example, if you have subscribers from different regions, ensure they are evenly distributed among variants. Then set up the split system:
interface ABTestVariant {
id: 'A' | 'B' | 'C';
subject: string;
templateId: string;
weight: number; // traffic share, e.g., 0.5 for 50/50
}
interface ABTest {
id: string;
campaignId: string;
variants: ABTestVariant[];
winnerMetric: 'open_rate' | 'click_rate';
sampleSize: number; // how many to send for test
winnerSendAt?: Date; // when to send winner to the rest
}
async function sendABTest(test: ABTest, users: User[]) {
// Shuffle users randomly
const shuffled = users.sort(() => Math.random() - 0.5);
// Divide into groups according to weights
let offset = 0;
for (const variant of test.variants) {
const count = Math.floor(test.sampleSize * variant.weight);
const group = shuffled.slice(offset, offset + count);
offset += count;
await Promise.allSettled(
group.map(user =>
sendVariantEmail(user, variant, test.id)
)
);
}
// Save test information
await db.abTests.create(test);
// Schedule winner selection
if (test.winnerSendAt) {
await scheduleWinnerSelection(test.id, test.winnerSendAt);
}
}
async function sendVariantEmail(user: User, variant: ABTestVariant, testId: string) {
const html = await renderTemplate(variant.templateId, { user });
const emailLogId = await sendEmail({
to: user.email,
subject: variant.subject,
html,
});
await db.abTestParticipants.create({
testId,
variantId: variant.id,
userId: user.id,
emailLogId,
});
}
More on Sample Size Calculation
To calculate the minimum sample size, use the formula: n = (Z^2 * p * (1-p)) / d^2, where Z=1.96 for a 95% confidence interval, p is the expected open rate, and d is the minimum detectable effect. For example, with p=25% and d=5%, you need about 1,200 recipients per variant.
What to Do If Results Are Not Statistically Significant
After collecting data, run a winner determination script:
async function determineWinner(testId: string): Promise<'A' | 'B' | 'C'> {
const test = await db.abTests.findById(testId);
const stats = await db.query<{
variant_id: string;
sent: number;
opened: number;
clicked: number;
}>(`
SELECT
p.variant_id,
COUNT(DISTINCT p.id) AS sent,
COUNT(DISTINCT oe.email_log_id) AS opened,
COUNT(DISTINCT ce.email_log_id) AS clicked
FROM ab_test_participants p
LEFT JOIN email_open_events oe ON oe.email_log_id = p.email_log_id
LEFT JOIN email_click_events ce ON ce.email_log_id = p.email_log_id
WHERE p.test_id = $1
GROUP BY p.variant_id
`, [testId]);
const withRates = stats.map(s => ({
...s,
open_rate: s.opened / s.sent,
click_rate: s.clicked / s.sent,
}));
// Check statistical significance (z-test for proportions)
const winner = withRates.reduce((best, current) => {
const metric = test.winnerMetric === 'open_rate' ? 'open_rate' : 'click_rate';
return current[metric] > best[metric] ? current : best;
});
return winner.variant_id as 'A' | 'B' | 'C';
}
// Send winner to remaining users
async function sendWinnerToRemainder(testId: string) {
const winnerId = await determineWinner(testId);
const test = await db.abTests.findById(testId);
const winnerVariant = test.variants.find(v => v.id === winnerId)!;
// Users not in test
const participantIds = await db.abTestParticipants.getUserIdsByTest(testId);
const remainderUsers = await db.users.findExcluding(participantIds, test.campaignId);
await Promise.allSettled(
remainderUsers.map(user =>
sendVariantEmail(user, winnerVariant, testId)
)
);
}
Key point: check statistical significance. Use a z-test for proportions. If p-value > 0.05, no winner is declared. In such cases, extend the test or revisit the hypothesis.
| Metric | Formula | Example for Group A (n=1000) |
|---|---|---|
| Open rate | opened / sent | 250/1000 = 25% |
| Click rate | clicked / sent | 50/1000 = 5% |
| Statistical significance | z-test | z > 1.96 → significant |
| Stage | Duration |
|---|---|
| Analytics & Hypotheses | 1–2 days |
| Split system development | 3–5 days |
| Pilot test | 1–2 days |
| Deployment & training | 1–2 days |
What's Included in Our Work
- Audit of current campaigns and hypothesis formulation.
- Development of a split system with integrated metric collection.
- Configuration of automatic winner determination and remainder sending.
- Documentation on result interpretation.
- Post-implementation support for 1 month.
Process
- Analytics – review your email statistics, identify bottlenecks.
- Design – select variables, calculate sample size, set up tracking.
- Implementation – write split system code, integrate with your platform.
- Testing – run a pilot test, verify logic.
- Deployment – go live, train your team.
The cost of implementation depends on the current infrastructure and the number of parallel tests. We conduct a preliminary audit and provide an exact figure.
Timeline and Results
Average implementation time: 5 to 10 days, depending on integration complexity. Within that time, you get:
- A working A/B testing system.
- First statistically significant results.
- Recommendations for further optimization.
The investment in A/B testing pays for itself within the first month. Contact us for a consultation about your project. We guarantee a professional approach and transparent reporting.
Our team has 5+ years of experience in email marketing, with 50+ A/B tests implemented. Our specialists are certified in popular ESPs.
According to a Campaign Monitor study, personalization boosts open rates by 26%. A/B testing can improve open rates by 20-30% compared to uniform sends. Order A/B testing implementation and get first results within a week.







