Practical guidesWeb & marketing

Choose utm_source and utm_medium values.

Pick utm_source and utm_medium values that GA4 files under the right channel, with examples for email, social, paid social, paid search, referral and print.

Open the UTM builder

Source is where, medium is how

utm_source answers where the visitor came from: a newsletter, a platform such as facebook or google, or a partner site. utm_medium answers what kind of channel that was: email, social, paid social, paid search, referral. Together they produce the familiar source / medium pair, such as newsletter / email.

Keep the two jobs separate. A medium of facebook-ads mixes the platform into the channel type and makes channel reports harder to read. Put facebook in source and paid_social in medium instead.

Values for common channels

The values below are widely used and match the platform presets in the UTM builder. They are suggestions, not rules: what matters most is choosing one spelling and using it every time.

Example result

Email newsletter      source: newsletter   medium: email
Facebook post         source: facebook     medium: social
Facebook ad           source: facebook     medium: paid_social
Instagram ad          source: instagram    medium: paid_social
LinkedIn post         source: linkedin     medium: social
X (Twitter) post      source: twitter      medium: social
X (Twitter) ad        source: twitter      medium: paid_social
Google Ads            source: google       medium: cpc
Partner's blog        source: partner-blog medium: referral
Affiliate link        source: site-name    medium: affiliate
Printed flyer         source: flyer        medium: print

How Google Analytics 4 uses them

GA4 sorts each session into a default channel group using rules based mainly on source and medium. A medium of email puts traffic in Email. A medium of social, or a recognised social site as the source, puts it in Organic Social. A medium that starts with paid, such as paid_social, together with a social source such as facebook, goes to Paid Social. Paid Search expects a search site such as google as the source with a medium such as cpc. Referral and affiliate are recognised mediums too.

A medium that matches no rule, such as print or qr, still shows in source / medium reports but is grouped as Unassigned in channel reports. That is fine if you look at it by source and medium, but worth knowing. The rules can change, so check Google's default channel group definitions if a channel matters.

Build the link

Paste the destination into the builder and either choose a Platform preset or type your own source and medium. Choosing a preset fills both fields; if you then edit one of them, the preset menu goes back to Choose a platform so you can see the values no longer match a preset. Add a campaign name and copy the result.

Example input

Destination URL: https://example.com/offer
Source: partner-blog
Medium: referral
Campaign: spring-launch

Example result

https://example.com/offer?utm_source=partner-blog&utm_medium=referral&utm_campaign=spring-launch

Common questions

Should source be the site name or the platform? Use the most specific name you will want to report on. For a social network, the platform name is usual. For a partner, use the partner's site or a short agreed name.

Can I use spaces? Avoid them. A space becomes a plus sign in the link. Turn on Lowercase values and turn spaces into hyphens to convert them automatically.

Is utm_medium required? Source, medium and campaign are all required by the builder, because reports are much less useful without them.

Where should I write the list down? In a shared document. The naming convention guide shows how to set one up and check exports against it.

Open the UTM builder