UTM Tracking: How to Tag Campaign Links Correctly
What are UTM parameters?
UTM parameters are tags added to the end of a URL, such as utm_source, utm_medium and utm_campaign, that tell analytics tools like GA4 where a visitor came from. When someone clicks a tagged link, GA4 reads the tags and reports the visit under that source, medium and campaign instead of guessing.
The five common UTM parameters
| Parameter | What it describes | Example value |
|---|---|---|
| utm_source | The site or sender of the traffic | instagram, newsletter, google |
| utm_medium | The type of channel | social, email, cpc, paid_social |
| utm_campaign | The campaign or promotion name | jan_batch_launch |
| utm_term | Paid search keyword, or another identifier you choose | seo_course |
| utm_content | Which ad, link or creative was clicked | reel_testimonial, button_top |
Google recommends always using source, medium and campaign. Term and content are optional. GA4 also supports a few additional parameters such as utm_id, but beginners can start with these five.
Anatomy of a tagged URL
The tags begin after a question mark and are joined with ampersands. If the URL already has a question mark, add the tags with an ampersand instead.
https://example.com/courses/digital-marketing/?utm_source=instagram&utm_medium=social&utm_campaign=jan_batch_launch&utm_content=reel_testimonialIn GA4 this visit appears with session source instagram, medium social and campaign jan_batch_launch. Google offers a free Campaign URL Builder tool to assemble links like this without typing errors.
How UTM values affect GA4 channel groups
GA4 assigns each session to a default channel group, such as Organic Social, Paid Social, Email or Paid Search, using rules based largely on source and medium. If your medium is unusual, for example utm_medium=insta_story, the session may land in "Unassigned".
- Use
emailas the medium for email campaigns. - Use
socialfor unpaid social posts and a paid value such aspaid_socialorcpcfor social ads. - Check the current channel group definitions in Google Analytics Help before inventing new medium values.
Create a naming convention
Most UTM problems come from inconsistency: one person writes fb, another facebook, a third Facebook.com. Agree on rules and keep them in a shared sheet.
- Lowercase only, with underscores instead of spaces.
- A fixed list of allowed source and medium values.
- Campaign names in a pattern such as
offer_audience_month, for examplefree_demo_students_jan. - Use
utm_contentto tell creatives apart, never to repeat the source. - Log every tagged link with its date and owner.
Worked examples for common channels
The table below shows one campaign, a free demo class for January, tagged for different places. Only the parts that change are shown; each would be added to the same landing page URL.
| Where the link is shared | utm_source | utm_medium | utm_content |
|---|---|---|---|
| Instagram bio link | social | bio_link | |
| Instagram ad, video creative | paid_social | video_v1 | |
| Monthly newsletter | newsletter | header_button | |
| WhatsApp broadcast to opted-in contacts | social | broadcast_jan | |
| LinkedIn company page post | social | post_carousel | |
| QR code on a printed brochure | brochure | back_page_qr |
All rows share utm_campaign=free_demo_jan. In GA4 you can then view the whole campaign in one row, and break it down by source, medium or content to see which position of the link worked. Shorten long tagged links with a link shortener if needed; the tags still pass through after the redirect.
When not to use UTM tags
- Internal links: never tag links from one page of your site to another. A new click starts a new session with the tagged source and overwrites the real one.
- Google Ads with auto-tagging: Google Ads adds its own
gclidparameter when auto-tagging is on, and a linked GA4 property uses that for campaign data. Manual tags are not required there. - Sensitive data: never put names, phone numbers or email addresses in UTM values, because URLs are stored in analytics and logs.
Practical exercise: tag one campaign across four channels
Pick a campaign, such as a free webinar. Build tagged links for an Instagram bio link, an email newsletter, a WhatsApp broadcast to opted-in contacts and a LinkedIn post, all with the same utm_campaign and different source, medium and content values. Record them in a sheet with columns for channel, final URL and owner.
You are done when all four links open the correct page, every value is lowercase, medium values match the channel type, and after a test click from each, the visits show up under the right source and medium in GA4 real-time or traffic acquisition reports. Measurement planning is covered in the advanced digital marketing course.
Common mistakes
- Mixing capital and lowercase letters, which splits one source into several rows.
- Adding UTM tags to internal links, which breaks session attribution.
- Using creative medium values that GA4 places in Unassigned.
- Putting personal data such as phone numbers into UTM values.
- Not keeping a shared log, so each team member invents new names.
Frequently asked questions
Do UTM parameters affect SEO?
They are not a ranking factor. Keep tagged URLs out of your own internal links and sitemaps, and use canonical tags so duplicates point to the clean URL.
Can visitors see UTM tags?
Yes, they appear in the address bar. That is another reason to keep values tidy and free of personal or sensitive information.
Should I tag QR codes on print material?
Yes. A QR code pointing to a tagged URL, such as one with utm_medium=print, lets you see visits from a poster or brochure separately.