Sub topic 5
Clicks and click-through rate
This chapter covers the step after an impression: the click. You will define what a click is, calculate click-through rate (CTR), judge whether a CTR difference is real, and find where clicks and visits stop matching.
This chapter assumes you know what an impression is (one display of an ad) and can read a basic ad platform report. It also assumes you are comfortable with percentages. Reach and frequency were covered in the previous chapter. Leads and conversion rates come in the next one.
What a click measures
A click is a recorded action where a person selects your ad or link. The ad platform logs it at the moment of the action. It does not mean the person saw your page, read anything, or has any intent to buy.
A click is the first signal that your message made someone act. It is the first stage where the audience's behavior, and not just your delivery, shows up in the data. Impressions tell you what you paid to display. Clicks tell you what people did about it.
Which click are you counting?
Platforms report several click counts under similar names. The differences change your numbers.
| Metric name (typical) | What it includes | Use it for |
|---|---|---|
| Link clicks | Clicks that send a person to the destination you set | Funnel measurement and CTR |
| Clicks (all) | Link clicks plus other interactions, such as expanding text, opening a profile, or reacting | Engagement analysis |
| Outbound clicks | Clicks that leave the platform | Comparing platforms fairly |
| Sessions or visits (analytics) | Visits recorded on your own site | Checking the platform's click count |
Names differ between platforms, so check each definition in the platform's help pages. The rule for this tutorial is to use link clicks, meaning clicks that lead to your destination. Mixing "all clicks" into CTR inflates it with actions that never reach your site.
Click-through rate
Click-through rate is the share of impressions that produced a click.
CTR = clicks / impressionsUsing the campaign from the earlier chapters: 1,000 clicks on 50,000 impressions gives 1,000 / 50,000 = 0.02, or 2.0%. This matches the CTR printed by the tutorial's calculation script.
The denominator is impressions, not reach. If one person sees your ad three times and clicks once, that is one click over three impressions. Some platforms also report a "unique CTR" based on people who clicked, divided by reach. That is a different metric. Pick one definition per report and label it.
Click cost
Clicks also give you your first cost metric. Cost per click (CPC) is spend divided by clicks. With $500 spent and 1,000 clicks, CPC is $0.50. The later chapter on cost metrics goes deeper. Here, note that CPC and CTR are linked:
CPC = cost per thousand impressions / (1000 x CTR)If you pay the same price per impression, a higher CTR lowers your CPC. A $10 cost per thousand impressions at 2.0% CTR gives a CPC of 10 / (1000 x 0.02) = $0.50. At 1.0% CTR the same impressions cost $1.00 per click. Ads that people click more often are cheaper per click, and many auction-based platforms also reward them with better delivery.
flowchart TDThe block above is only a placeholder-free illustration of the flow in the next diagram, so ignore it if it renders empty. Use the diagram below.
Worked example: comparing two ads
Suppose the $500 campaign ran two ads:
| Ad | Impressions | Link clicks | CTR |
|---|---|---|---|
| A | 20,000 | 500 | 2.50% |
| B | 30,000 | 500 | 1.67% |
| Total | 50,000 | 1,000 | 2.00% |
Ad A looks about 50% better. But before you pause B, ask whether the gap could be noise. Clicks are counts of random events, so a CTR from a small number of impressions can move a lot by chance alone.
A confidence interval gives a range of CTR values that the data fits. The Wilson interval is a reliable choice for rates, including small ones. The script below calculates it for both ads.
from math import sqrt
def ctr(clicks, impressions):
return clicks / impressions
def wilson_interval(clicks, impressions, z=1.96):
"""95% Wilson score interval for a click-through rate."""
p = clicks / impressions
denom = 1 + z**2 / impressions
centre = (p + z**2 / (2 * impressions)) / denom
half = z * sqrt(p * (1 - p) / impressions + z**2 / (4 * impressions**2)) / denom
return centre - half, centre + half
ads = {
"A": {"impressions": 20_000, "clicks": 500},
"B": {"impressions": 30_000, "clicks": 500},
}
for name, data in ads.items():
low, high = wilson_interval(data["clicks"], data["impressions"])
print(
f"Ad {name}: CTR {ctr(data['clicks'], data['impressions']):.2%} "
f"(95% range {low:.2%} to {high:.2%})"
)The output is about 2.50% (2.28% to 2.72%) for ad A and 1.67% (1.52% to 1.81%) for ad B. The ranges do not overlap, so the difference is very unlikely to be chance. Ad A really does earn clicks at a higher rate, at least for the audience and placement it ran in.
Now change the scale. Imagine each ad had run on only 1,000 impressions with 25 and 17 clicks. The CTRs would be the same, 2.5% and 1.7%. But the ranges would be wide, roughly 1.7% to 3.7% for the first and 1.1% to 2.7% for the second. They overlap heavily. You could not say which ad is better.
Reading CTR in context
A CTR number has no meaning on its own. These factors change what counts as "good."
- Placement. Search ads respond to explicit intent and often show CTRs several times higher than display or social feeds. Compare like with like.
- Audience temperature. Retargeting people who already know you usually clicks better than cold audiences.
- Format. Video, carousel, and static images each have their own typical click behavior.
- Objective. If you optimize for awareness, the platform shows your ad to people who tend to view, not click. A low CTR may be expected.
- Industry and season. Published benchmarks vary widely and go stale. Use them as a loose sanity check. Your own history is the better baseline.
Your campaign's goal decides how much CTR matters. If the goal is sales, a high CTR that brings the wrong people is worse than a modest CTR that brings buyers. This is the main limit on CTR as a metric.
Why clicks and visits disagree
Compare the platform's link clicks to the sessions in your analytics tool for the same campaign. They will almost never match. A gap of 10 to 30% is common. Several mechanisms cause it.
- Abandonment before load. The person clicks, then closes the tab or loses connection before the page loads and the tracking code fires. The platform counted a click. Your analytics never saw a visit.
- Slow pages. The longer a page takes, the more people leave before tracking runs. Mobile traffic is especially affected.
- Blocked or declined tracking. Ad blockers, browser privacy features, and declined cookie consent stop your analytics from recording the visit.
- Accidental clicks. Mobile layouts cause mis-taps, especially near the edge of the screen. These get a click and an immediate exit.
- Invalid traffic. Bots and click fraud generate clicks that platforms try to filter out, with partial success. Filtered clicks may be removed from reports days later, so numbers can change after you first read them.
- Broken or stripped tags. If a redirect drops your UTM parameters, the visit appears in analytics but under the wrong source, usually "direct" or "(not set)".
- Time zone and date boundaries. The platform and analytics tool may group by different time zones, which moves clicks across days.
The tagging from the earlier chapter helps here. A link such as the one below lets analytics group visits by origin, so you can compare platform clicks and analytics sessions for each campaign.
https://example.com/spring-offer?utm_source=newsletter&utm_medium=email&utm_campaign=spring_launchQuantifying the loss
Divide analytics sessions by platform clicks to get a click-to-visit ratio. This script checks it for several campaigns and flags large gaps.
campaigns = {
"spring_launch": {"clicks": 1_000, "sessions": 820},
"retargeting": {"clicks": 400, "sessions": 390},
"social_video": {"clicks": 2_500, "sessions": 1_450},
}
for name, c in campaigns.items():
ratio = c["sessions"] / c["clicks"]
flag = " <-- investigate" if ratio < 0.7 else ""
print(f"{name:15} click-to-visit {ratio:.0%}{flag}")The first campaign keeps 82% of clicks, which is typical. The social video campaign keeps only 58%, so check page speed, redirect behavior, and the share of in-app browser traffic. Use a cutoff that fits your own history. The 70% here is only an example.
Common mistakes
- Averaging CTRs. To combine ads, add the clicks and impressions and divide. Averaging the two percentages in the worked example gives 2.08%, not the true 2.00%, because ad B had more impressions.
- Dividing by reach. CTR over reach gives a number above the true CTR whenever frequency exceeds 1. Match numerator and denominator to the definition you stated.
- Chasing CTR alone. A change that raises CTR but lowers later conversion lowers your results.
- Reading very small samples. Fewer than a few hundred clicks cannot support strong claims about differences.
- Comparing across placements. A feed ad and a search ad answer different questions.
- Ignoring the delay. Click counts can be revised as invalid clicks are removed. Give the data a day or two before you finalize a report.
What to record for this stage
Following the plan of one primary metric per funnel stage, use link CTR as the primary metric for the click stage. Also record:
- link clicks and impressions (the raw counts, never only the percentage),
- CPC,
- analytics sessions from the same tagged links,
- the click-to-visit ratio.
Keep the raw counts. Rates can be rebuilt from counts, but counts cannot be rebuilt from rates. The next chapter moves from visitors to leads, where the click-to-lead rate picks up where this chapter stops.
Exercise
A campaign has 40,000 impressions and 18,000 reach in total. It spent $320 and got 600 link clicks. Analytics recorded 468 sessions from the tagged links. Calculate the CTR, the CPC, and the click-to-visit ratio. Then say what a CTR over reach would give and why you should not report it as CTR.
Show answer
CTR = 600 / 40,000 = 1.5%. CPC = $320 / 600 = about $0.53. Click-to-visit ratio = 468 / 600 = 78%, a normal gap that comes from abandoned loads and blocked tracking. A figure over reach would be 600 / 18,000 = 3.3%. It is higher because each person saw the ad more than once (frequency about 2.2), and it uses a different denominator from the standard CTR, so it would overstate how often an impression leads to a click.
Exercise
Ad X has 400 impressions and 12 clicks (3.0% CTR). Ad Y has 400 impressions and 8 clicks (2.0% CTR). A colleague says X is 50% better and wants to pause Y. What do you reply?
Show answer
With only 400 impressions each, 12 versus 8 clicks is a difference of four clicks, which chance can easily produce. The 95% intervals for the two ads would overlap heavily, so the data cannot tell them apart. Keep both running until each has a few hundred clicks, then compare their intervals again.