Sub topic 1
Start from the Goal: What the Campaign Was Meant to Do
Prerequisites
This chapter assumes you have run or watched a digital campaign (ads, email, or similar) and can read an analytics dashboard. You should be comfortable with percentages and ratios. The Python snippet is optional and uses only the standard library.
Why the goal comes first
A campaign report contains dozens of numbers. Clicks are up, cost per click is down, and revenue is flat. Without a goal, each of those readings can be called good or bad depending on what you hoped to see. A goal fixed before you look at results is the only fair way to judge them.
A review that starts from the numbers tends to go wrong in one of two ways. You pick the metric that looks best and call the campaign a success. Or you notice every metric that moved and chase all of them.
Three parts of a reviewable goal
A goal you can review has three parts.
- Objective. The business outcome in plain words, such as "acquire new customers profitably" or "grow the email list."
- Primary KPI. The single key performance indicator (KPI) that measures that objective. Choose one. If the objective is profitable acquisition, cost per acquisition (CPA) or return on ad spend (ROAS) fits. Click-through rate (CTR) does not, because a click is not a customer.
- Baseline and target. The number you are comparing against and the number that counts as success. The next chapter covers how to choose the baseline. For now, write down both.
| Objective | Good primary KPI | Weak primary KPI |
|---|---|---|
| Acquire customers profitably | CPA or ROAS | Impressions |
| Grow the email list | Cost per subscriber | CTR |
| Increase repeat purchases | Repeat purchase rate | Clicks |
Guardrail metrics
A primary KPI can be improved in ways that cause damage elsewhere. You can lower CPA by targeting only people who would have bought anyway. A guardrail is a secondary metric with a limit you refuse to cross, for example "refund rate stays under 5%" or "CPA may not rise above $12 in any region."
Keep guardrails few, and write them down with the goal. They tell you when a win on the primary KPI should not count.
Recording the goal in code
Writing the goal as data makes it hard to change quietly after the results arrive. This example uses the CPA from the earlier campaign summary.
from dataclasses import dataclass
@dataclass
class CampaignGoal:
objective: str
primary_kpi: str
baseline: float
target: float
higher_is_better: bool = True
def met(self, observed: float) -> bool:
if self.higher_is_better:
return observed >= self.target
return observed <= self.target
goal = CampaignGoal(
objective="Acquire new customers profitably",
primary_kpi="cpa",
baseline=10.0,
target=8.0,
higher_is_better=False,
)
print(goal.met(8.33)) # False: better than baseline, but short of targetThe result shows why a baseline and a target are both needed. A CPA of 8.33 beats the baseline of 10.00, so the campaign improved. It still misses the target of 8.00, so the goal was not met. Which of those facts matters depends on what you agreed beforehand.
Common errors
- Choosing the KPI after seeing results. This guarantees that you find a metric that looks good. Fix the KPI before launch, or at least before you open the report.
- Using a proxy as the goal. CTR and impressions are easy to measure, but they are steps toward the objective, not the objective. Use them later to diagnose the funnel, not to judge success.
- Several primary KPIs. When two primary KPIs disagree, you have no verdict. Keep one primary KPI and treat the others as diagnostics or guardrails.
- A target with no baseline. "CPA of $8" means little unless you know the starting point and what you could have earned doing nothing different.
- Moving the target. If the goal is revised mid-campaign, record the date and the reason. Otherwise the review compares results against a goal nobody can reconstruct.
Exercise
A campaign's objective is to acquire customers profitably. Its report shows CTR rose from 1.2% to 1.8%, while CPA rose from $9 to $13 against a target of $8. Which metric is the primary KPI, and was the goal met?
Show answer
CPA is the primary KPI, because it measures profitable acquisition. The goal was not met: CPA moved further from the $8 target and is worse than the $9 starting point. The CTR gain is a diagnostic clue, not a success, because more clicks did not produce cheaper customers.