Sub topic 13
Test and Optimize While the Campaign Runs
A seasonal campaign has a fixed window. A change that would take weeks to prove in an evergreen program has to pay off in days here. This chapter covers how to test, what to change, and when to leave things alone, so that mid-campaign decisions rest on evidence and not on nerves.
Prerequisites
This chapter assumes you have already done the following:
- Set goals and KPIs, with a primary KPI such as revenue or leads and supporting KPIs such as CTR and conversion rate.
- Tagged every link with consistent UTM parameters, so results can be grouped by source, medium, campaign, and content.
- Launched search, social, and email components that share one message and offer.
- Access to your analytics tool and to each channel's ad or email dashboard.
If the tagging is not consistent, stop and fix it first. Optimization on mislabeled data moves money in the wrong direction.
Why in-flight testing is different
In a normal program you can wait for a result that is statistically solid. In a seasonal campaign, the window closes whether or not you have an answer. Three constraints shape everything below.
- Short time. A test that needs three weeks is useless in a two-week sale.
- Low volume per cell. Splitting a small audience into many variants leaves each variant with too few conversions to judge.
- Shifting conditions. Demand rises toward the peak date. A variant that runs on the busy weekend and a variant that ran on a quiet Tuesday are not a fair comparison.
The practical response is to test fewer things, test the ones with the largest expected effect, and run variants at the same time rather than one after another.
The optimization loop
Treat optimization as a repeating loop with a fixed rhythm, not as ad-hoc tinkering.
Set the cadence in advance. A common pattern is a daily glance at spend and delivery, plus a deeper review two or three times a week. Daily checks catch breakage. Deeper reviews drive decisions.
Decide what to look at first
Read metrics in order of how close they are to the goal. Start with the primary KPI, then move to diagnostics that explain it.
| Level | Example metrics | Use it to |
|---|---|---|
| Outcome | Revenue, orders, leads, cost per acquisition | Judge whether a channel is working |
| Conversion | Landing-page conversion rate, add-to-cart rate | Find where visitors drop off |
| Engagement | CTR, email click rate, video view rate | Judge whether creative and message resonate |
| Delivery | Impressions, spend pace, send volume, inbox placement | Confirm the campaign is actually reaching people |
A high CTR with low conversions usually points to the landing page or the offer, not the ad. Low CTR with healthy conversions among those who click suggests the creative is not attracting enough of the right people. Diagnose before you change.
What to test
Rank candidate tests by expected impact and by how quickly they produce a readable result.
- Offer and message framing. For example, "20% off" against "Free shipping". This usually has the largest effect and is worth testing first, ideally before the peak.
- Subject lines (email). Cheap to test, fast to read, and the result is clear within hours.
- Headlines and ad copy (search and social). Test one headline angle against another.
- Creative format (social). Video against static image, or short against long.
- Landing page elements. The headline, the button text, and the form length.
- Send time (email). Lower impact, but easy to run.
Avoid testing small cosmetic changes such as button color during a short window. The effect is too small to detect with the volume you have.
One variable at a time
If you change the headline, image, and offer together, you cannot say which one mattered. Change one element per test. The UTM utm_content parameter is how you tell variants apart in your analytics.
from urllib.parse import urlencode
def utm_url(base, source, medium, campaign, content=None):
params = {
"utm_source": source,
"utm_medium": medium,
"utm_campaign": campaign,
}
if content:
params["utm_content"] = content
return f"{base}?{urlencode(params)}"
base = "https://example.com/winter-sale"
for variant in ("headline_a", "headline_b"):
print(utm_url(base, "meta", "paid_social", "winter_sale_2026", variant))Each variant now arrives in analytics with its own utm_content value, so you can compare conversions per variant, not just clicks per ad.
Deciding when a test is done
The most common error in-flight is calling a winner too early. Early results swing widely, and the first day often favors whichever variant happened to reach the most eager users.
Decide the stopping rule before the test starts. A workable rule has three parts:
- Minimum volume. For example, at least 100 clicks per variant for engagement tests, or at least 30 to 50 conversions per variant for conversion tests.
- Minimum time. Cover at least one full weekly cycle if the window allows, because weekday and weekend behavior differ.
- Minimum gap. Act only if the difference is large enough to matter. A 2% relative difference at low volume is noise.
A quick check of whether a difference in conversion rates is likely real can be done with a two-proportion z-test.
from math import sqrt, erf
def two_proportion_p(conv_a, n_a, conv_b, n_b):
p_a, p_b = conv_a / n_a, conv_b / n_b
pooled = (conv_a + conv_b) / (n_a + n_b)
se = sqrt(pooled * (1 - pooled) * (1 / n_a + 1 / n_b))
z = (p_b - p_a) / se
# two-sided p-value from the normal distribution
return 2 * (1 - 0.5 * (1 + erf(abs(z) / sqrt(2))))
print(round(two_proportion_p(40, 1000, 62, 1000), 4))
# 0.0319A p-value below about 0.05 suggests the gap is unlikely to be chance. In a seasonal setting you may accept a looser threshold, such as 0.10, because waiting costs more than a wrong call. Keep the lower bar for reversible changes only, such as swapping an ad headline.
Optimize by channel
Search
- Review the search terms report and add irrelevant queries as negative keywords. During a sale, broad matching often pulls in "free" or "how to" searches that do not buy.
- Shift bids toward keywords and ad groups with the lowest cost per acquisition, not the highest click volume.
- Watch impression share on your best terms. If a high-converting term is losing impressions to budget, move money to it.
- Rotate in at least two ad variants per ad group and retire the weaker one after it passes your stopping rule.
Social
- Watch for creative fatigue. When frequency climbs and CTR drops over several days, the same people have seen the ad too often. Refresh the creative.
- Compare audiences, not only ads. A segment with a high click rate but poor conversion may need a different offer.
- Give new ads a short learning period before judging them, since platform delivery systems need time to stabilize.
- Compare each message in the sequence on click rate and on revenue per recipient, not only open rate. Open rates can be distorted by privacy features that preload images.
- Suppress people who have already purchased so they do not get urgent "last chance" messages. This protects both goodwill and your unsubscribe rate.
- Resend to non-openers with a new subject line only once, and only after a sensible delay such as a day or two.
Reallocate budget with evidence
Budget shifts are the most powerful optimization lever, and the easiest to overdo. In the budget chapter you stored shares that sum to 1. Adjust those shares in small steps so the total never breaks.
total_budget = 20000
shares = {"search": 0.45, "social": 0.35, "email": 0.20}
def shift(shares, source, target, amount):
new = dict(shares)
new[source] = round(new[source] - amount, 4)
new[target] = round(new[target] + amount, 4)
assert abs(sum(new.values()) - 1.0) < 1e-9
assert all(v >= 0 for v in new.values())
return new
shares = shift(shares, "social", "search", 0.05)
for channel, share in shares.items():
print(channel, round(total_budget * share, 2))
# search 10000.0
# social 6000.0
# email 4000.0Useful rules of thumb:
- Move no more than 10 to 15 percent of a channel's budget in one step, then watch for several days.
- Compare channels by marginal return, meaning the return on the next dollar, not the average return. A channel with a great average may already be saturated.
- Keep a floor on the channels that fill the top of the funnel. Cutting them starves the channels that close sales later.
- Credit matters. Search often captures demand that social and email created. Check assisted conversions before moving money away from an upper-funnel channel that looks weak on last-click reporting.
Common errors
- Declaring a winner on too little data. Apply your stopping rule.
- Changing several things at once. You learn nothing from the result.
- Optimizing a diagnostic metric. Chasing CTR can lower conversions if the ad attracts the wrong audience.
- Ignoring the calendar. Compare like with like. Do not compare a pre-peak week with peak week.
- Breaking consistency. If you change the offer in one channel, update search, social, email, and the landing page together. A mismatch between the ad and the page cuts conversion.
- Skipping the log. Without a record of what you changed and when, the post-campaign review cannot separate cause from coincidence.
Keep a change log
Record each change in a simple table that you will reuse in the post-campaign review.
| Date | Channel | Change | Hypothesis | Result |
|---|---|---|---|---|
| Nov 24 | Subject line B replaces A | Urgency wording lifts opens | Pending | |
| Nov 26 | Search | Added 14 negative keywords | Cuts wasted spend on "free" queries | Cost per click down |
Exercise
Your Meta ad variant B has 18 conversions from 900 clicks and variant A has 12 conversions from 900 clicks after two days of a ten-day campaign. A teammate wants to stop variant A now and move all its budget to B. What should you do, and why?
Show answer
Do not stop A yet. With only 12 and 18 conversions per variant, the gap could easily be chance, and two days does not cover a weekly cycle. Check against the stopping rule you set (for example, 30 to 50 conversions per variant and a full week). Meanwhile you can make a small, reversible budget shift toward B, such as 10 percent, and keep both running. Confirm that each variant is tagged with its own utm_content value so conversions are attributed correctly, then re-check on the next scheduled review.
Exercise
Search shows a high CTR but a low conversion rate on the landing page, while email shows a modest click rate but a high conversion rate. Which channel should you investigate first for a fix, and what would you check?
Show answer
Investigate search first. High CTR with low conversion points to a mismatch after the click. Check that the ad message and offer match the landing page, that the page loads quickly, and that the search terms report is not showing irrelevant queries such as "free". Also check that the traffic is tagged correctly. Email is working as intended, since the fewer people who click convert well.