Sub topic 4
Reading the core funnel metrics
This chapter assumes you can read a campaign dashboard and work with percentages and ratios. You know the goal, primary KPI, and baseline of the campaign you are reviewing, and you have checked that its data is complete. The Python examples are optional, and basic Python is enough to follow them.
Why four metrics
A campaign turns money into attention, attention into visits, and visits into outcomes. Each metric measures one hand-off in that chain. Read together, they show where the chain is strong and where it leaks. Read alone, each one can mislead you.
The four core metrics are:
| Metric | Formula | Question it answers |
|---|---|---|
| CTR (click-through rate) | clicks / impressions | Does the ad earn attention from the people who see it? |
| CVR (conversion rate) | conversions / clicks | Does the landing experience turn visitors into customers? |
| CPA (cost per acquisition) | spend / conversions | What does one outcome cost? |
| ROAS (return on ad spend) | revenue / spend | How much revenue does each unit of spend return? |
An impression is one display of an ad. A click is one visit to your destination that the platform counted. A conversion is the outcome you defined in your goal, such as a purchase, a signup, or a booked demo.
Computing the metrics
The function below takes raw totals for a campaign and returns the four ratios.
def summarize(spend, impressions, clicks, conversions, revenue):
return {
"ctr": clicks / impressions,
"cvr": conversions / clicks,
"cpa": spend / conversions,
"roas": revenue / spend,
}
print(summarize(spend=1000, impressions=200000, clicks=3000, conversions=120, revenue=6000))
# {'ctr': 0.015, 'cvr': 0.04, 'cpa': 8.333333333333334, 'roas': 6.0}Here 1.5% of impressions became clicks, and 4% of clicks became conversions. Each conversion cost about 8.33, and each unit of spend returned 6 units of revenue.
Always compute ratios from summed totals. Never average the ratios from separate rows. Suppose campaign A has 1,000 clicks and 50 conversions (5% CVR), and campaign B has 100 clicks and 10 conversions (10% CVR). The mean of the two rates is 7.5%. The true combined rate is 60 / 1,100, or about 5.45%. The simple mean gives the small campaign the same weight as the large one.
Reading each metric
CTR: attention
CTR depends on creative, targeting, and placement. A high CTR means the ad matched what the audience wanted to click. It does not mean those clicks were valuable. A misleading headline can raise CTR and lower CVR at the same time, because people click on a promise the page does not keep.
Compare CTR only within the same channel and placement. Search ads, social feeds, and display banners have very different typical rates, so a number that is strong in one can be weak in another.
CVR: the landing experience
CVR depends on what happens after the click: page speed, message match between ad and page, form length, price, and trust signals. Check the denominator before you compare numbers. Some tools divide conversions by clicks, others by sessions or landing-page views. Clicks are always at least as numerous as sessions, because some clicks never load the page. A CVR computed from sessions is therefore higher than one computed from clicks. Use one definition throughout a review.
CPA: cost efficiency
CPA ties spend to outcomes, but it ignores how valuable each outcome is. A 20 CPA is excellent for a 200 purchase and ruinous for a 15 newsletter signup. Judge CPA against a target, usually derived from margin or customer value, never in isolation.
CPA is also a product of two earlier stages. With cost per click (CPC) as spend divided by clicks:
CPA = CPC / CVR
In the example, CPC is 1000 / 3000, about 0.333, and 0.333 / 0.04 gives 8.33. So CPA rises if clicks get more expensive or if the page converts fewer visitors. This identity is useful in diagnosis, because it tells you whether to look at the auction (CPC) or the page (CVR).
ROAS: revenue return
ROAS adds the value of each conversion. It can be written as average order value (AOV) divided by CPA:
ROAS = AOV / CPA
In the example, AOV is 6000 / 120 = 50, and 50 / 8.33 gives 6.0. A ROAS of 6 sounds excellent, but it measures revenue, not profit. To know whether the campaign makes money, compare it with a break-even ROAS, which is 1 divided by your gross margin. At a 30% margin, break-even is 1 / 0.3, about 3.33. A ROAS of 6 clears it with room to spare. At a 15% margin, break-even is 6.67 and the same campaign loses money.
A fuller report with guards
Real data contains zeros: a new ad set may have no clicks yet, and a weak one may have no conversions. The simple function above raises ZeroDivisionError in those cases. The version below returns None for an undefined ratio and adds CPM, CPC, AOV, break-even ROAS, and contribution profit.
def safe_div(numerator, denominator):
return numerator / denominator if denominator else None
def funnel_report(spend, impressions, clicks, conversions, revenue, margin):
roas = safe_div(revenue, spend)
report = {
"cpm": safe_div(spend, impressions) * 1000 if impressions else None,
"cpc": safe_div(spend, clicks),
"ctr": safe_div(clicks, impressions),
"cvr": safe_div(conversions, clicks),
"cpa": safe_div(spend, conversions),
"aov": safe_div(revenue, conversions),
"roas": roas,
"break_even_roas": safe_div(1, margin),
"profit": revenue * margin - spend,
}
return {k: round(v, 4) if v is not None else None for k, v in report.items()}
print(funnel_report(spend=1000, impressions=200000, clicks=3000,
conversions=120, revenue=6000, margin=0.3))
# {'cpm': 5.0, 'cpc': 0.3333, 'ctr': 0.015, 'cvr': 0.04, 'cpa': 8.3333,
# 'aov': 50.0, 'roas': 6.0, 'break_even_roas': 3.3333, 'profit': 800.0}CPM is cost per thousand impressions. It tells you what the audience cost before anyone clicked.
Reading the metrics together
Look at the metrics as a set and ask which stage moved. The table shows common patterns when comparing a campaign with its baseline.
| Pattern | Likely reading | Where to look next |
|---|---|---|
| CTR up, CVR down | The ad attracts clicks the page cannot convert, or the audience is less qualified | Message match, targeting, creative promise |
| CTR down, CVR up | A narrower audience clicks less but is better qualified | Check whether CPA still improved before reacting |
| CTR and CVR flat, CPA up | Clicks got more expensive | CPC, auction competition, bid settings, placements |
| CPA flat, ROAS down | Order value fell | Product mix, discounts, price changes |
| CPA down, ROAS flat | You are acquiring cheaper but smaller orders | AOV and the product mix |
A change in one metric is a lead, not a conclusion. The next chapters add segmentation, significance testing, and funnel diagnosis so you can act on these leads without overreacting to noise.
Edge cases and common errors
- Mismatched definitions. The ad platform, the analytics tool, and the store each count conversions differently. Pick the source of record for the goal and use it for every ratio. Do not mix platform clicks with analytics conversions.
- Attribution lag. Conversions can land days after the click. A campaign reviewed too early shows an artificially low CVR, CPA, and ROAS. Wait at least as long as your typical time to convert before judging recent days.
- Tiny denominators. A CVR of 10% from 10 clicks is one conversion. Ratios from small counts swing wildly, so report the counts next to the rates.
- Survivorship in averages. Blended CPA can look healthy because one strong ad set hides several wasteful ones. Segmenting, covered in the next chapter, exposes this.
- Revenue is not profit. ROAS ignores product cost, returns, and refunds. Compare it with break-even ROAS before calling a result good.
- Units. CTR and CVR are fractions. The code stores 0.015 where a dashboard shows 1.5%. Convert once, at display time.
Exercises
Exercise
A campaign spent 2400, earned 400,000 impressions, 5,000 clicks, 150 conversions, and 9,000 in revenue. Compute CTR, CVR, CPA, and ROAS. Then, given a 25% gross margin, decide whether the campaign made money.
Show answer
CTR = 5000 / 400000 = 1.25%. CVR = 150 / 5000 = 3%. CPA = 2400 / 150 = 16. ROAS = 9000 / 2400 = 3.75. Break-even ROAS at a 25% margin is 1 / 0.25 = 4. Since 3.75 is below 4, the campaign lost money: 9000 * 0.25 - 2400 = -150.
Exercise
For the same campaign, show that CPA equals CPC divided by CVR. Then say what you would check first if next week's CPA rose to 20 while CTR and CVR stayed the same.
Show answer
CPC = 2400 / 5000 = 0.48, and 0.48 / 0.03 = 16, which matches CPA. If CTR and CVR are unchanged but CPA rose, the identity CPA = CPC / CVR means CPC must have risen. Check the auction side first: bids, competition, placement mix, and whether spend moved into more expensive placements.
Exercise
Two ad sets have CVRs of 8% on 50 clicks and 3% on 2,000 clicks. A colleague reports an average CVR of 5.5%. What is the correct combined CVR, and why does the colleague's number mislead?
Show answer
Conversions are 0.08 50 = 4 and 0.03 2000 = 60, so the combined CVR is 64 / 2050, about 3.12%. The simple mean of 5.5% gives the 50-click ad set the same weight as the 2,000-click one, so it overstates performance. Always compute ratios from summed totals.