What Are UTM Parameters? Meaning, Examples and Builder
Quick answer
UTM parameters explained: the five tags, how to build a tagged link with Python, why case matters, what (not set) means and how GA4 treats auto-tagging.
UTM parameters are short tags added to the end of a URL so that analytics tools can tell where a visit came from. The three main ones are utm_source (who sent the traffic), utm_medium (the type of channel) and utm_campaign (which campaign). Two more, utm_term and utm_content, are usually treated as optional.
Key takeaways
- Google recommends always using utm_source, utm_medium and utm_campaign; utm_term and utm_content are usually treated as optional.
- Parameter values are case sensitive, so Instagram and instagram become separate rows in reports.
- Missing UTM parameters result in (not set) values in reporting.
- In GA4, Google Ads auto-tagging is prioritised over manual tagging.
On this page:
- What UTM parameters mean
- How to build a tagged link
- Where they are used
- Common mistakes and confusions
- Related terms
- Frequently asked questions
| Parameter | Meaning | Example value |
|---|---|---|
| utm_source | Who or what sends the traffic | instagram, newsletter4 |
| utm_medium | Type of marketing channel | cpc, email, reel |
| utm_campaign | The individual campaign | data_analytics_nov |
| utm_term (optional) | Keyword, mainly for paid search | data_analyst_course |
| utm_content (optional) | Which ad or link variant | banner_a |
The meanings of the first three come from Google's legacy Universal Analytics page; the last two rows summarise general use. Example values are made up.
What are UTM parameters?
The current Google Analytics Help page on URL builders says that when you add parameters to a URL, you should always use utm_source, utm_medium and utm_campaign. It also strongly recommends setting all relevant parameters, and lists further ones such as utm_id and utm_source_platform. The page does not call any parameter required, so this article says "recommended".
For what each means, this article uses a legacy source: the Universal Analytics help page (marked Legacy). It describes utm_source as the advertiser, site or publication sending traffic, such as google, newsletter4 or billboard. It describes utm_medium as the marketing medium, such as cpc, banner or email newsletter, and utm_campaign as the individual campaign name, slogan or promo code. The same legacy page is where utm_term and utm_content are called optional; the current page does not label them. The legacy page is used here only for these definitions, not for GA4 rules.
How do you build a UTM link?
Add a question mark to your URL, then join the parameters with ampersands. An illustrative link for a data analytics campaign, using example.com and not a real page:
https://example.com/course?utm_source=instagram&utm_medium=reel&utm_campaign=data_analytics_nov
Here is a tiny Python builder that produces the same link:
from urllib.parse import urlencode
base = "https://example.com/course"
params = {"utm_source": "instagram", "utm_medium": "reel", "utm_campaign": "data_analytics_nov"}
print(base + "?" + urlencode(params))
# https://example.com/course?utm_source=instagram&utm_medium=reel&utm_campaign=data_analytics_novWhen someone clicks this link, the analytics tool reads the three values and files the visit under source instagram, medium reel and campaign data_analytics_nov.
Where are UTM parameters used?
They are used on links in social posts, emails, ads, QR codes and partner pages: anywhere you want to know which link brought a visit. Indian marketing teams use them to compare, say, an Instagram reel with a WhatsApp broadcast sending people to the same page.
Google Ads has its own tagging. According to Google Ads Help, in Google Analytics 4 auto-tagging is prioritised over manual tagging because there is no override option. So for Google Ads traffic in GA4, auto-tagged data takes priority over UTMs you add by hand.
A checklist:
- Write every value in lowercase.
- Use one naming convention per channel.
- Never leave a parameter empty.
- Keep a shared sheet of the values you use.
What are the common mistakes and confusions?
- Mixed case. Google says utm_source=google is different from utm_source=Google. Two posts tagged Instagram and instagram will be split into separate rows.
- Missing values. Google says missing UTM parameters result in (not set) values in reporting.
- Expecting hand-added UTMs to override Google Ads auto-tagging. Auto-tagging takes priority in GA4.
- Tagging internal links. Tags are for traffic arriving from outside your site.
Which terms are related?
See marketing pixels, marketing metrics such as CAC, LTV, ROAS and CTR and the fundamentals of digital marketing. For channels you may tag, read social media marketing strategy.
Next step
Create a shared sheet with your channel names in lowercase, build one tagged link with the snippet, and test it. Then check the report in your analytics tool to see the source and medium appear.
Frequently asked questions
What does utm_source, utm_medium and utm_campaign mean?
Source identifies who sends the traffic, medium is the type of channel such as email or cpc, and campaign is the individual campaign name. Google recommends always using all three.
How do I make a UTM link?
Add a question mark and then the parameters joined by ampersands, for example ?utm_source=instagram&utm_medium=reel&utm_campaign=data_analytics_nov. A URL builder or short script can do this for you.
Are UTM parameters case sensitive?
Yes. Google Analytics Help says values are case sensitive, so utm_source=google is different from utm_source=Google. Use lowercase everywhere.
What is (not set) in Google Analytics?
Google Analytics Help says missing UTM parameters result in (not set) values in reporting. Fill in every recommended parameter on tagged links.