Sub topic 11
Tagging Links with UTM Parameters
Assume you can create scheduled posts and have basic access to a web analytics tool such as Google Analytics 4. UTM parameters are labels added to a URL. They help your analytics tool identify where a visit came from and which post generated it.
What UTM parameters record
A tagged URL keeps the original destination and adds query parameters after a question mark. For example:
https://example.com/spring-sale?utm_source=instagram&utm_medium=social&utm_campaign=spring_sale&utm_content=carousel_01
The most useful parameters for social posts are:
| Parameter | Meaning | Example |
|---|---|---|
| `utm_source` | The network or referring source | `instagram` |
| `utm_medium` | The marketing channel | `social` |
| `utm_campaign` | The promotion or larger initiative | `spring_sale` |
| `utm_content` | The specific post or creative | `carousel_01` |
Use lowercase values and a consistent naming scheme. For example, do not alternate between Instagram, instagram, and IG. Analytics tools may treat those values as different sources.
utm_term is mainly used for paid search keywords. You usually do not need it for ordinary organic social posts.
Build a tagged URL
You can add parameters manually, but a URL builder reduces typing errors. This Python example creates a URL for an Instagram post:
from urllib.parse import urlencode
base_url = "https://example.com/spring-sale"
tracking = {
"utm_source": "instagram",
"utm_medium": "social",
"utm_campaign": "spring_sale",
"utm_content": "carousel_01",
}
tagged_url = f"{base_url}?{urlencode(tracking)}"
print(tagged_url)The output is:
https://example.com/spring-sale?utm_source=instagram&utm_medium=social&utm_campaign=spring_sale&utm_content=carousel_01
The urlencode function safely formats spaces and special characters. If the original URL already contains a query string, add the UTM parameters with & rather than another ?.
Add the URL to a scheduled post
Create the tagged URL before composing the post. Paste it into the link field or post text, depending on the network and scheduling tool.
Use values that identify the post clearly. A useful content value might include a format or date, such as video_2026_12_03 or linkedin_checklist_01. Avoid putting private customer information in UTM values because URLs can appear in browser history, reports, and shared logs.
The scheduling tool publishes the link, but it does not usually interpret the UTM values. Your website analytics system reads them when someone visits. Test the final URL before scheduling:
- Open it in a private browser window.
- Confirm that the page loads over HTTPS.
- Check that redirects preserve the query string.
- Submit a test visit if your analytics process supports one.
- Confirm that the campaign appears in the analytics report after processing.
Analytics reports can be delayed. A missing visit immediately after testing does not always mean the tag failed.
Keep campaign names consistent
Create a naming policy before several people start scheduling. One simple policy is:
utm_source: lowercase network name, such aslinkedinutm_medium:socialfor organic postsutm_campaign: lowercase initiative name, such aswinter_guideutm_content: unique post or creative name, such ascover_image
A content calendar can store the complete tagged URL beside the post copy. This keeps the link consistent when the same post moves through drafting, approval, and scheduling.
Exercise
A LinkedIn post promotes a winter guide. Which UTM values would identify LinkedIn, the organic social channel, the winter guide campaign, and the first post?
Show answer
Use utm_source=linkedin, utm_medium=social, utm_campaign=winter_guide, and utm_content=post_01.