Skip to content
Urlzee

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.

  1. Where exactly will this link live? The answer is the source.
  2. What kind of marketing is that? The answer is the medium.
  3. 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_sourceutm_mediumutm_campaign
DescribesThe specific originThe category of channelThe promotion or purpose
Level of detailSpecificBroadYours to define
Number of values you'll haveManyFewOne per initiative
Changes whenThe link moves to a different site or listThe type of marketing changesYou start a new promotion
Examplesfacebook, newsletter, partner_blogsocial, email, referral, cpcspring_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".

MediumUse forHow GA4 generally groups it
emailNewsletters and all other emailEmail
socialUnpaid posts and profile links on social platformsOrganic Social
cpc or paid_socialPaid clicks; pair paid_social with a social sourcePaid Search or Paid Social, depending on the source
displayBanner advertsDisplay
referralLinks from other websitesReferral
affiliateAffiliate partnersAffiliates
smsText messagesSMS
qr, print, offlinePrinted codes and offline materialNo 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 appearsutm_sourceutm_mediumutm_campaign
Monthly newsletternewsletteremailspring_sale
Instagram bioinstagramsocialspring_sale
Facebook advertfacebookpaid_socialspring_sale
Bing search advertbingcpcspring_sale
Partner's blog postpartner_blogreferralspring_sale
QR code on a flyerflyerqrspring_sale
Text message to customerscustomer_listsmsspring_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.

MistakeWhy it's a problemFix
utm_source=socialHides which platform sent the visitutm_source=instagram&utm_medium=social
utm_medium=facebookGA4 can't match it to a channel grouputm_source=facebook&utm_medium=social
utm_source=emailTells you the channel, not the listutm_source=newsletter&utm_medium=email
utm_medium=newsletterA newsletter is a source of email traffic, and non-standard mediums fragment reportsutm_medium=email
utm_campaign=facebook_postDescribes placement, not a promotionUse the real campaign name; put placement detail in utm_content
Source and medium swappedSessions land in the wrong channel or in UnassignedCheck each new link against your list
Missing mediumShows 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:

  1. Medium — the broadest grouping
  2. Source — the specific origin within that medium
  3. Campaign — the initiative, cutting across sources and mediums
  4. 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.