utm_source vs utm_medium vs utm_campaign: What Goes Where
By Urlzee Team · Published · 6 min read
utm_source names who sent the visitor, such as facebook or newsletter. utm_medium names the type of channel, such as social or email. utm_campaign names the promotion the link belongs to, such as spring_sale. Source is specific, medium is a category, and campaign is the reason the link exists.
What is the quickest way to tell them apart?
Ask three questions about the link you are about to share.
- Where exactly will this link live? The answer is the source.
- What kind of marketing is that? The answer is the medium.
- Which initiative is this part of? The answer is the campaign.
Think of a parcel. The source is the sender's name. The medium is the delivery method: post, courier, hand delivery. The campaign is what the parcel is for. Many senders use the same delivery method, and one sender can send parcels for different occasions.
| utm_source | utm_medium | utm_campaign | |
|---|---|---|---|
| Describes | The specific origin | The category of channel | The promotion or purpose |
| Level of detail | Specific | Broad | Yours to define |
| Number of values you'll have | Many | Few | One per initiative |
| Changes when | The link moves to a different site or list | The type of marketing changes | You start a new promotion |
| Examples | facebook, newsletter, partner_blog | social, email, referral, cpc | spring_sale, webinar_march |
What goes in utm_source?
The name of the specific platform, publication, list or object that carries the link.
- A social platform:
facebook,instagram,linkedin,tiktok - A search engine:
google,bing - A named email list or tool:
newsletter,customer_list,onboarding_sequence - A partner or publication:
partner_blog,city_life_magazine - A physical item:
flyer,packaging,shop_window
The test for a good source is that it is a proper noun or a concrete thing. If your source reads like a category, such as social or paid, it probably belongs in medium instead.
Use bare names without .com and keep one spelling. facebook, Facebook, fb and facebook.com would appear as four different sources in your reports.
What goes in utm_medium?
The broad type of channel. You should need only a handful of mediums in total.
Medium matters more than it first appears, because Google Analytics 4 uses it to sort sessions into its default channel groups. Values GA4 recognises get filed correctly; values it doesn't recognise tend to end up as "Unassigned".
| Medium | Use for | How GA4 generally groups it |
|---|---|---|
email | Newsletters and all other email | |
social | Unpaid posts and profile links on social platforms | Organic Social |
cpc or paid_social | Paid clicks; pair paid_social with a social source | Paid Search or Paid Social, depending on the source |
display | Banner adverts | Display |
referral | Links from other websites | Referral |
affiliate | Affiliate partners | Affiliates |
sms | Text messages | SMS |
qr, print, offline | Printed codes and offline material | No matching default group; usually Unassigned |
The grouping rules combine source and medium and are updated by Google from time to time, so check its default channel group reference when you set up a naming scheme. Offline mediums such as qr are still worth using; you simply look at them by source/medium, or define a custom channel group, rather than relying on the default grouping.
What goes in utm_campaign?
A name for the promotion, launch, event or ongoing programme the link supports.
- A one-off promotion:
spring_sale,black_friday_2026 - A launch:
app_launch,autumn_collection - An event:
webinar_march,expo_2026 - An always-on programme:
weekly_newsletter,welcome_series
The campaign value should be identical on every channel that takes part. That is what lets you open one campaign in a report and see email, social and paid results together. If the email team writes spring_sale and the social team writes springsale, you have two half-campaigns.
Don't repeat the source or medium inside the campaign name. spring_sale_facebook splits your campaign by channel in the wrong field and makes totals harder to see.
What do correct combinations look like?
Here is one campaign, a spring sale, tagged across several channels.
| Where the link appears | utm_source | utm_medium | utm_campaign |
|---|---|---|---|
| Monthly newsletter | newsletter | email | spring_sale |
| Instagram bio | instagram | social | spring_sale |
| Facebook advert | facebook | paid_social | spring_sale |
| Bing search advert | bing | cpc | spring_sale |
| Partner's blog post | partner_blog | referral | spring_sale |
| QR code on a flyer | flyer | qr | spring_sale |
| Text message to customers | customer_list | sms | spring_sale |
A complete link for the first row looks like this:
https://example.com/sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale
Google Ads is the usual exception. With auto-tagging switched on, Google Ads passes its own click identifier and Google Analytics fills in google / cpc and the campaign details without manual tags.
What are the most common mix-ups?
Most errors come from putting a value one field too high or too low.
| Mistake | Why it's a problem | Fix |
|---|---|---|
utm_source=social | Hides which platform sent the visit | utm_source=instagram&utm_medium=social |
utm_medium=facebook | GA4 can't match it to a channel group | utm_source=facebook&utm_medium=social |
utm_source=email | Tells you the channel, not the list | utm_source=newsletter&utm_medium=email |
utm_medium=newsletter | A newsletter is a source of email traffic, and non-standard mediums fragment reports | utm_medium=email |
utm_campaign=facebook_post | Describes placement, not a promotion | Use the real campaign name; put placement detail in utm_content |
| Source and medium swapped | Sessions land in the wrong channel or in Unassigned | Check each new link against your list |
| Missing medium | Shows as (not set) | Always set all three |
Where do utm_term and utm_content fit in?
They sit below the main three and add detail when you need it.
utm_content distinguishes links that share the same source, medium and campaign: the header button versus the footer link in one email, or two versions of an advert. utm_term was designed for the paid search keyword and is still mostly used for that. Neither changes how a session is grouped into channels. See utm_term and utm_content for when each is worth adding.
A useful hierarchy to keep in mind:
- Medium — the broadest grouping
- Source — the specific origin within that medium
- Campaign — the initiative, cutting across sources and mediums
- Content / term — the individual link or keyword
How do you keep the three fields consistent?
Write the allowed values down and build links with a tool instead of by hand.
Urlzee's UTM builder has a separate, labelled field for each parameter with a hint under it, which makes it harder to put a value in the wrong place. It lowercases values and swaps spaces for underscores by default, removing the most common cause of duplicate rows. When the URL is ready you can shorten it in the same step, or paste it into the URL shortener to choose your own alias.
For a team, agree a short list of mediums, a list of source names, and a pattern for campaign names, then keep them where everyone can find them. UTM naming conventions gives a template. If any of this is new, what are UTM parameters starts from the beginning.
Frequently asked questions
- What is the difference between utm_source and utm_medium?
- utm_source names the specific place the visitor came from, such as facebook or newsletter. utm_medium names the general type of channel, such as social or email. Many sources share one medium.
- Should utm_source be facebook or social?
- utm_source should be facebook, because the source is the specific platform. social belongs in utm_medium, where it groups Facebook with other social platforms.
- Can I use the same utm_campaign across different channels?
- Yes, and you should. Using one campaign name on every channel lets you see the whole promotion as one line in reports and then split it by source and medium.
- What happens if I only set utm_source?
- The visit is recorded with that source, but the medium and campaign show as (not set). In GA4 that often means the session falls into the Unassigned channel group.