Sub topic 11
Tracking Clicks with UTM Parameters
This chapter assumes you know how to publish a social post, read basic platform metrics, and work with percentages. You will learn how to connect a platform’s click count to visits and actions in web analytics.
Why click tracking matters
A platform can report that people clicked a link in your post. Your website analytics can report visits, sign-ups, purchases, or downloads. These systems do not automatically know that every visit came from a particular post.
UTM parameters are labels added to a URL. Web analytics tools read these labels and use them to identify the source of a visit. A tagged URL might look like this:
https://example.com/spring-sale?utm_source=linkedin&utm_medium=social&utm_campaign=spring_sale&utm_content=post_aThe question-mark begins the query string, which is the part of the URL containing extra parameters. Each parameter has a name and a value.
| Parameter | What it identifies | Example |
|---|---|---|
| `utm_source` | The platform or traffic source | `linkedin` |
| `utm_medium` | The channel type | `social` |
| `utm_campaign` | The broader campaign | `spring_sale` |
| `utm_content` | A post, creative, or link variation | `post_a` |
| `utm_term` | Usually a paid-search keyword or audience label | `retargeting` |
Use the same naming rules across a campaign. For example, do not use LinkedIn in one URL and linkedin in another unless your analytics tool treats those values as identical. Many tools treat capitalization as different, which splits your reports.
Build a tagged URL
You can construct a URL manually, but a programming library helps encode spaces and special characters correctly.
from urllib.parse import urlencode
base_url = "https://example.com/spring-sale"
parameters = {
"utm_source": "linkedin",
"utm_medium": "social",
"utm_campaign": "spring_sale",
"utm_content": "post_a",
}
tagged_url = f"{base_url}?{urlencode(parameters)}"
print(tagged_url)The output is a URL that can be placed in the post. If a parameter contains a space, urlencode converts it into a safe URL representation.
Use utm_content to distinguish posts, images, calls to action, or tests within one campaign. For example, post_a and post_b can point to the same landing page while allowing you to compare their resulting visits.
Connect platform clicks to website results
The platform’s link-click metric and the analytics tool’s sessions will usually differ. A person can click more than once, leave before the page loads, use a blocked tracker, or trigger a session rule that differs from the platform’s counting rule.
Use the systems for different questions:
- Platform link clicks show how often people activated the link according to that platform.
- Analytics sessions show visits that reached the website and were recognized by the analytics tool.
- Analytics conversions show whether those visits completed the goal.
Check definitions before reporting
Report the exact click metric you used. “Clicks” might include profile views, image expansions, video plays, or other interactions. Use link clicks when measuring traffic to a website. Calculate click-through rate with a stated denominator, such as:
CTR = link clicks ÷ impressions × 100
Compare tagged visits with the same campaign, date range, landing page, and attribution setting. This context prevents a high click count from being mistaken for business impact.
Exercise
A post has 200 link clicks and 12,000 impressions. What is its CTR, and which UTM parameter would distinguish it from another post in the same campaign?
Show answer
The CTR is 200 ÷ 12,000 × 100 = 1.67%. Use utm_content, such as post_a.