Sub topic 10
Click-through rate
This chapter assumes you already know the difference between impressions and reach, and that you can compute a percentage from two counts. It builds on the chapter on clicks and click types. Here you will define click-through rate (CTR), calculate it in code, and learn which mistakes distort it.
The working model
Click-through rate is the share of impressions that led to a click:
CTR (%) = clicks ÷ impressions × 100
The two inputs must be chosen deliberately.
- Numerator: the clicks you care about. For CTR in the usual marketing sense, this is link clicks, meaning clicks that take someone off the platform to your destination.
- Denominator: impressions, meaning every time the content was shown, including repeat views by the same person.
Because the denominator counts every showing, CTR measures how often a display turned into a click. It does not measure how many people clicked. If one person sees your post three times and clicks once, that is 1 click in 3 impressions.
Some tools show a rate with reach as the denominator. That figure is a different metric. If you report it, label it "link clicks per reached person" and do not call it CTR.
A worked calculation
Take the post used earlier in this tutorial: 12,000 impressions, 8,000 reach, and 200 link clicks.
- CTR = 200 ÷ 12,000 × 100 = 1.67%.
- Link clicks per reached person = 200 ÷ 8,000 × 100 = 2.5%.
Both numbers are valid, and they answer different questions. Only the first is CTR.
The script below computes CTR with link clicks and again with all clicks. It returns None when impressions are zero, because a post with no impressions has no defined CTR. A rate of 0% would wrongly say "shown but never clicked".
def pct(numerator, denominator):
"""Return a percentage, or None when the denominator is zero."""
if denominator == 0:
return None
return numerator / denominator * 100
post = {
"impressions": 12000,
"reach": 8000,
"link_clicks": 200,
# See more, profile clicks, image expands, and similar.
"other_clicks": 320,
}
all_clicks = post["link_clicks"] + post["other_clicks"]
ctr_link = pct(post["link_clicks"], post["impressions"])
ctr_all = pct(all_clicks, post["impressions"])
per_reached = pct(post["link_clicks"], post["reach"])
print("CTR, link clicks (%):", round(ctr_link, 2))
print("CTR, all clicks (%):", round(ctr_all, 2))
print("Link clicks per reached person (%):", round(per_reached, 2))The output is:
CTR, link clicks (%): 1.67
CTR, all clicks (%): 4.33
Link clicks per reached person (%): 2.5The same post has a CTR of 1.67% or 4.33%, depending on what counts as a click. Neither number is wrong. The 4.33% figure includes people who only expanded the text or visited your profile, so it says little about traffic to your site.
Which clicks belong in the numerator
Platforms often show several click counts side by side:
| Label you may see | What it usually includes | Use for CTR toward a website? |
|---|---|---|
| Link clicks | Clicks on a URL that leads off-platform | Yes |
| All clicks | Link clicks plus expands, profile clicks, hashtag clicks, reactions on some platforms | No, unless you report it as "all-click rate" |
| Outbound clicks | Clicks leaving the platform, sometimes excluding in-platform destinations | Yes, if you confirm the definition |
| Landing page views | Visits where the page actually loaded | No. This is a later step, not a click |
Check the platform's metric documentation before copying a number into a report. The same label can be defined differently on different platforms, and a platform can change a definition over time. The chapter on platform definitions covers this in more detail.
Reading CTR correctly
Sample size
A CTR calculated from few impressions is unstable. A standard approximation for the uncertainty is the standard error, √(p × (1 − p) ÷ n), where p is the CTR as a proportion and n is impressions.
- 3 clicks from 100 impressions gives 3%. The standard error is about 1.7 percentage points, so a 95% range is roughly 0% to 6%.
- 200 clicks from 12,000 impressions gives 1.67%. The standard error is about 0.12 points, so the 95% range is about 1.4% to 1.9%.
This approximation is rough, because repeat impressions to the same person are not independent. It still shows why a small post with a high CTR proves little.
Format and placement
CTR depends heavily on where and how the content appears. A link in a text post, a link in a carousel, a story sticker, and a paid ad in a feed will each produce very different rates. Compare like with like: same platform, same format, same type of placement, and the same paid or organic status.
Paid and organic
Paid delivery targets people more likely to click and often shows the same ad many times. Organic posts reach followers who already know you. Mixing these in one average hides what is happening in each.
From CTR to visits
CTR ends at the click. What happens after depends on your site and on tracking. A link click is recorded by the platform. A session is recorded by your web analytics. The two numbers rarely match. Typical reasons for the gap:
- The visitor left before the page loaded.
- The click came from an in-app browser that blocks or alters analytics scripts.
- Bots or link-preview crawlers requested the URL.
- The link was not tagged, so analytics filed the visit under "direct" or "referral".
Tag every link you control so the visit can be matched to the post:
https://example.com/spring-sale?utm_source=linkedin&utm_medium=social&utm_campaign=spring_sale&utm_content=post_aWith tagged links, you can compare the platform's link clicks with the sessions reported under utm_campaign=spring_sale. A large, consistent gap suggests a page speed or tracking problem. A small gap suggests the click-to-visit step is healthy.
Common errors
- Using reach as the denominator and calling it CTR. The result is higher than true CTR, and it will not match other reports.
- Counting all clicks as link clicks. This inflates CTR and rewards posts that prompt "see more" taps rather than visits.
- Averaging percentages. If one post has 1,000 impressions and 5% CTR, and another has 100,000 impressions and 1% CTR, the simple average of 3% is misleading. Add the clicks, add the impressions, then divide. The combined CTR is 1,050 ÷ 101,000 ≈ 1.04%.
- Comparing CTR across platforms or formats without checking definitions.
- Treating a tiny sample as a trend. Wait for enough impressions before declaring a winner.
- Reporting 0% when impressions are zero. Report "not available".
Summary of the method
- Decide which click you want: link clicks to your site, in most cases.
- Divide by impressions, and say so in the report.
- Keep paid and organic, and different formats, in separate rows.
- Check the sample size before reading small differences as real.
- Tag links with UTM parameters and compare clicks with sessions.
Exercise
Post A has 150 link clicks from 5,000 impressions. Post B has 300 link clicks from 20,000 impressions. Both are organic posts in the same format on the same platform. Which post has the higher CTR, which has more clicks, and what should you check before deciding that Post A is better?
Show answer
Post A has a CTR of 150 ÷ 5,000 × 100 = 3.0%. Post B has a CTR of 300 ÷ 20,000 × 100 = 1.5%. Post A has the higher CTR, and Post B has more clicks (300 versus 150). Before calling Post A better, check that both numbers use link clicks and impressions, and that the platform defines them the same way for both posts. Also check whether Post B's larger impression count came from reaching a broader audience, which tends to lower CTR. Finally, compare clicks with tagged web sessions to confirm the clicks turned into visits.
Exercise
A report says "CTR: 4.33%" for a post with 12,000 impressions, 200 link clicks, and 320 other clicks (see more, profile, image expands). What is the problem, and what is the corrected CTR for a traffic goal?
Show answer
The report divided all clicks (200 + 320 = 520) by impressions, which gives 4.33%. For a traffic goal only link clicks should be in the numerator. The corrected CTR is 200 ÷ 12,000 × 100 = 1.67%.