Sub topic 12
Measuring the effect on deliverability and revenue
A sunset policy is a bet that sending less mail to fewer people produces a healthier sender reputation and the same revenue. This chapter shows how to check that bet with data. It assumes you have a working sunset flow (an inactivity window, a re-engagement step, and suppression). It also assumes you can read basic SQL and Python, and that you know the terms bounce, complaint, and inbox placement.
Why measurement needs a design
The obvious check is to compare "before" and "after" numbers. That check misleads you for three reasons:
- The denominator changes. Removing people who never click raises your click rate and open rate automatically, even if nothing about your content improved. A higher rate is not evidence of a benefit.
- Other things change at the same time. Seasonality, a new template, a promotion, or a different sending domain can all move the same numbers.
- Reputation reacts slowly. Mailbox providers aggregate behavior over days or weeks, so the effect of a change appears with a lag.
Decide the questions, metrics, and comparison groups before you suppress anyone. You cannot rebuild a baseline afterwards.
Choosing deliverability metrics
No single number tells you whether inbox placement improved. Use several signals and look for agreement among them.
| Metric | Where to get it | Expected direction | Caveat |
|---|---|---|---|
| Complaint rate | Feedback loops, ESP reports, Gmail Postmaster Tools spam rate | Down | Only some providers report complaints, so the figure is a partial view |
| Hard bounce rate | ESP reports | Down | Moves more with list acquisition quality than with sunsetting |
| Spam trap hits | Blocklist and trap-monitoring services | Down or zero | Hits are rare, so the absence of a hit proves little |
| Domain and IP reputation | Gmail Postmaster Tools, Microsoft SNDS | Up or stable | Provider-specific scales, and slow to change |
| Inbox placement (seed tests) | Seed-list tools | Up | Seed accounts do not behave like real subscribers |
| Delivery rate and deferrals | ESP and server logs | Stable or up | Deferrals (temporary refusals) are an early warning of throttling |
Gmail's bulk sender guidance asks senders to keep the reported spam rate below 0.10% and never reach 0.30%. Use these as reference lines when you review your own numbers.
Report these per mailbox provider (Gmail, Microsoft, Yahoo, and others), not only as one blended figure. A blended complaint rate can hide a problem at one provider if your list is mostly at another.
Choosing revenue and engagement metrics
For revenue, avoid rate metrics whose denominator you just changed. Prefer these:
- Total attributed revenue per week. This is the number the business cares about. It should stay flat or rise.
- Revenue per 1,000 sends. This is a rate, but it is a fair one, because both the sends and the revenue are in dollars and mail counts, not in "people who engaged."
- Revenue per active subscriber. Use it to see whether remaining subscribers are worth more.
- Reactivation count and revenue. Count how many people responded to the re-engagement campaign and what they bought afterwards.
- Sending cost. Many ESPs price by list size or send volume, so fewer sends can reduce cost directly.
Treat open rate as a diagnostic only. Privacy features such as Apple Mail Privacy Protection preload messages and inflate opens, so a change in open rate after sunsetting says little about real behavior. Clicks and purchases are the safer engagement signals, which matches the definition of engagement you chose earlier.
Weekly revenue per 1,000 sends in SQL
This PostgreSQL query assumes a sends table with one row per message sent, and an orders table with ordered_at, amount_cents, and attributed_campaign_id. Rename the columns to match your schema. The two CTEs aggregate separately before joining, which avoids multiplying rows (a fan-out) and double-counting revenue.
WITH weekly_sends AS (
SELECT date_trunc('week', sent_at) AS week,
count(*) AS sends
FROM sends
GROUP BY 1
),
weekly_revenue AS (
SELECT date_trunc('week', ordered_at) AS week,
sum(amount_cents) / 100.0 AS revenue
FROM orders
WHERE attributed_campaign_id IS NOT NULL
GROUP BY 1
)
SELECT s.week,
s.sends,
coalesce(r.revenue, 0) AS revenue,
round(coalesce(r.revenue, 0) / s.sends * 1000, 2) AS revenue_per_1000_sends
FROM weekly_sends s
LEFT JOIN weekly_revenue r USING (week)
ORDER BY s.week;Plot this for the baseline period and for the weeks after rollout. You expect total revenue to stay roughly level while sends falls, so revenue_per_1000_sends rises.
Building a comparison you can trust
Baseline period
Capture at least 8 to 12 weeks of data before the first suppression. This covers normal weekly cycles and shows how noisy each metric is. If your business is seasonal, compare against the same weeks in the previous year as well.
Holdout group
A holdout is the only way to answer "what would have happened if we had kept mailing these people?" Take the subscribers the policy would suppress, randomly keep a small share of them (for example 10%) on the normal sending schedule, and suppress the rest. Compare the two groups over 60 to 90 days.
Keep these rules for the holdout:
- Assign groups randomly with a stored seed or a stored group label, so the split is reproducible.
- Keep the holdout small and time-limited. These addresses are the ones most likely to be abandoned or to act as spam traps, so a large holdout puts reputation at risk.
- Exclude from the holdout anyone who has complained, bounced, or unsubscribed.
- Record group membership with a date, so later analysis uses the same groups.
The holdout measures the revenue you give up by suppressing. Deliverability is harder to split by group, because reputation belongs to your sending domain and IP, not to individual subscribers. For deliverability, rely on the before and after trend plus provider dashboards.
Controlling other changes
During the measurement window, avoid changing your sending domain, IP, template engine, or main content strategy. If you cannot avoid a change, write it in a change log so you can explain a shift later.
Testing whether a change is real
Weekly numbers vary even with no policy change. A simple significance test tells you whether a difference is larger than ordinary noise. The script below compares two complaint rates with a two-proportion z-test, using only the standard library.
from math import erf, sqrt
def normal_cdf(x: float) -> float:
return 0.5 * (1 + erf(x / sqrt(2)))
def two_proportion_z(x1: int, n1: int, x2: int, n2: int) -> tuple[float, float]:
"""Return (z, two-sided p-value) for the difference between two rates."""
if n1 == 0 or n2 == 0:
raise ValueError("Both groups need at least one send.")
p1, p2 = x1 / n1, x2 / n2
pooled = (x1 + x2) / (n1 + n2)
se = sqrt(pooled * (1 - pooled) * (1 / n1 + 1 / n2))
if se == 0:
return 0.0, 1.0
z = (p1 - p2) / se
p_value = 2 * (1 - normal_cdf(abs(z)))
return z, p_value
if __name__ == "__main__":
# Baseline: 1,440 complaints in 1,200,000 sends (0.12%).
# After rollout: 720 complaints in 900,000 sends (0.08%).
z, p = two_proportion_z(1440, 1_200_000, 720, 900_000)
print(f"baseline rate: {1440 / 1_200_000:.4%}")
print(f"after rate: {720 / 900_000:.4%}")
print(f"z = {z:.2f}, p = {p:.4g}")A small p-value says the difference is unlikely to be random variation. It does not say the sunset policy caused it. The test cannot detect a confounder such as a new signup form that attracts better subscribers. This is why the holdout and the change log matter.
Reading the results
Interpret the metrics together:
- Complaints and spam rate fall, revenue is flat. This is the expected outcome. The policy removed risk without removing buyers.
- Complaints fall, revenue falls in line with sends. The suppressed group was buying. Your inactivity window is probably too short, or your engagement definition ignores a real signal such as in-store purchases or app activity. Lengthen the window or add the missing signal.
- Complaints unchanged. Inactive subscribers may not have been your complaint source. Look at acquisition sources, frequency, and content instead.
- Revenue rises. Better inbox placement can lift conversions among the remaining subscribers. Confirm with the holdout before you claim it.
- Bounces rise after rollout. Check for a sending change. Suppressing old addresses should not increase bounces, but a re-engagement send to abandoned addresses can produce a burst of hard bounces.
Also check reactivation. If the re-engagement campaign recovers 2% to 5% of the group and those people buy, record that revenue as a benefit of the flow.
Common mistakes
- Reporting a higher click rate as the success metric when the list simply got smaller.
- Comparing a holiday baseline with a quiet-season follow-up.
- Judging deliverability after one week, before provider reputation has time to move.
- Using only seed-test placement, which can disagree with real inbox behavior.
- Losing the group labels, which makes the holdout comparison impossible.
Writing up the result
Close the loop with a short record that goes with the policy documents:
- The policy parameters (window length, grace period, exceptions).
- Baseline and follow-up figures for each metric, by mailbox provider where available.
- The holdout comparison and the revenue difference.
- Known confounders from the change log.
- A decision: keep, adjust, or revert, with the next review date.
Schedule the next review. List quality drifts as acquisition sources and customer behavior change, so measure again every quarter or after any large change in cadence.
Exercise
After a sunset rollout, your list shrinks by 25%, your click rate rises from 2.0% to 2.6%, and weekly attributed revenue falls by 8%. A colleague says the policy worked because the click rate rose. What would you check, and what do the numbers suggest?
Show answer
The click rate rose partly because the denominator shrank, so it is not evidence of improvement. Weekly revenue fell by 8%, which suggests some suppressed subscribers were still buying. Check the holdout group to see how much revenue the suppressed people generated, compare complaint and spam rates and provider reputation before and after, and look at the change log and seasonality for other causes. If the revenue loss is real and the complaint rate did not improve, lengthen the inactivity window or add engagement signals such as purchases outside email.
Exercise
Why should the holdout group be small and time-limited, and why can it not measure the deliverability effect directly?
Show answer
Holdout members are the subscribers most likely to be abandoned addresses or spam traps, so mailing many of them for a long time keeps the reputation risk the policy tries to remove. Deliverability also cannot be split by group, because mailbox providers score the sending domain and IP as a whole, not each subscriber. The holdout measures the revenue you give up, and the before and after trend in provider data measures the deliverability effect.