How-to guide

UTM Parameters: What They Are and How to Use Them in GA4

UTM tags tell GA4 where each visit came from. Here are the parameters, the medium values that sort traffic correctly, a naming convention, and how to tag Meta, Google Ads and email links.

SSocialee Growth TeamOct 29, 20269 min read

What are UTM parameters?

UTM parameters are tags you add to the end of a link so your analytics tool can tell where a visit came from. When someone clicks a tagged link, Google Analytics 4 (GA4) reads the tags and files the session under that source, medium and campaign. Without them, many paid and email visits show up as direct traffic or an unclear referral.

The UTM parameters, one by one

ParameterWhat it holdsExample
utm_sourceWhere the traffic comes frommeta, google, newsletter
utm_mediumThe type of channelcpc, paid_social, email
utm_campaignThe campaign, promo or salediwali_sale
utm_termThe paid keywordrunning_shoes
utm_contentTells apart creatives or linksugc_hook_a
utm_idA campaign ID, matching imported campaign dataa number or code from your system
utm_source_platformThe platform that sent the trafficused mainly with Google platforms

Google says you should always use utm_source, utm_medium and utm_campaign, and that if you set one tag you should set the others that apply, because missing values show up as (not set). Source: Google Analytics Help, campaigns and URLs.

How GA4 reads UTM tags

  • Session source and medium. Campaign data appears in the Traffic acquisition report as Session source / medium, Session campaign and related dimensions.
  • Default channel group. GA4 sorts each session into a channel such as Paid Social, Email or Organic Social from the source and medium. Google says the channel rules are not case sensitive and cannot be edited.
  • Values are case sensitive. Meta and meta, or SpringSale and spring_sale, become separate rows. Use lowercase everywhere.
  • A new campaign does not start a new session. Google states a new campaign or source does not start a new session by itself, and values arriving mid-session are not attached to that session.

The medium values that sort traffic correctly

The medium is the tag most teams get wrong. Because the channel rules use patterns, a medium like fb_ad or paid-facebook can fail to match and land in Unassigned, Referral or Organic Social. These mediums match Google’s default rules:

TrafficUse this mediumLands in the channel
Google Ads search and shoppingcpcPaid Search or Paid Shopping
Meta and other paid socialpaid_socialPaid Social, when the source is a social site
Newsletter and flowsemailEmail
Organic postssocialOrganic Social
Influencer or partner linksaffiliate or referralAffiliates or Referral
Display bannersdisplayDisplay
SMS campaignssmsSMS

Google’s paid rule matches any medium containing cp, or equal to ppc or retargeting, or starting with paid. That is why cpc, cpm and paid_social all count as paid. GA4 does not have a rule for WhatsApp, so decide a medium for it, test it in the Traffic acquisition report and keep it consistent.

A naming convention that stays clean

  • Lowercase only, and underscores instead of spaces.
  • One source value per platform, such as meta, google, youtube, newsletter.
  • One medium value per channel, from the table above.
  • Campaign name equals the campaign name in the ad platform, so reports match.
  • Content value identifies the creative: format, hook, version.
  • Document it in a shared sheet. One typo splits a campaign into two rows.
Campaignsourcemediumcampaigncontent
Meta prospecting, UGC videometapaid_socialdiwali_saleugc_hook_a
Google Shoppinggooglecpcshopping_allproduct feed
Weekly newsletternewsletteremailweekly_oct_w4hero_banner
Creator linkcreator_nameaffiliatecreator_launchstory_link

Google’s help page recommends a strict, case-sensitive convention and dynamic values where the platform supports them. The underscore style is our house rule, not a Google requirement.

UTM parameters for Meta ads

In Ads Manager, add tags in the URL parameters field under Tracking when you create the ad. Meta lets you use dynamic values that fill in automatically:

Dynamic valueWhat it inserts
{{campaign.name}}, {{adset.name}}, {{ad.name}}The names of the campaign, ad set and ad
{{campaign.id}}, {{adset.id}}, {{ad.id}}The numeric IDs
{{placement}}The placement, such as instagram_stories or facebook_feed
{{site_source_name}}fb, ig, msg, an or th

A common starting string is utm_source={{site_source_name}}&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}. Meta’s own help example shows campaign and ad name only, so the rest is our convention. Things to know, all from Meta’s help pages:

  • The URL parameters field wins if the same key also appears in the website URL.
  • Never leave a value empty.
  • Name-based values hold the name used when the ad was first published. Renaming later does not update them, so name things well before launch.
  • Editing URL parameters after publishing can restart the learning phase for the ad set.
  • Meta may add its own tags (source set to Facebook or Instagram and medium set to paid). Pick one medium style and stay consistent.

Source: Meta Business Help Center articles on URL parameters and dynamic parameters, read on 29 October 2026. For the ad setup around this, see our Meta ads for ecommerce approach.

UTM parameters and Google Ads

For Google Ads, the usual best practice is to leave auto-tagging on and link Google Ads to GA4, instead of adding UTMs to your final URLs. Auto-tagging adds a GCLID to the landing page URL. Google Ads Help states that in GA4, auto-tagging takes priority over manual tagging, because GA4 has no override setting. The override option you may read about belongs to older Universal Analytics.

  • If both are present, GA4 takes source and medium from the auto-tagged values.
  • Manual utm_content and utm_term can still fill the manual content and term dimensions.
  • If the GCLID cannot be used and a UTM is present, GA4 builds the traffic source values from the UTMs.
  • If your site rejects unknown parameters, auto-tagging can produce an error page. Ask your developer to allow arbitrary parameters.

Shopping ads and free listings do not need UTMs. See how we run Google Shopping and our guide to Google Merchant Center.

Email, SMS, WhatsApp and creator links

Anything Google or Meta does not tag for you needs manual UTMs: newsletters, SMS, WhatsApp broadcasts, QR codes, influencer bio links and partner placements. Build each link once in Google’s Campaign URL Builder, paste it into a shared sheet, and reuse the exact strings. This is how you see whether retention flows and creator content bring revenue, not only clicks.

Do not tag internal links

Do not put UTMs on links inside your own site, such as a homepage banner linking to a product page. Google does not publish a rule on this. Google does say a new campaign does not start a new session, but analytics practitioners report that an internal UTM can overwrite the real source on later events and muddy attribution. Track internal banners with event parameters instead, and test any doubtful case in GA4 DebugView. Treat this as best practice, not a Google rule.

Limits, length and privacy

  • Length. Google does not state a character limit for UTM values. GA4 limits the page location value to 1,000 characters, so keep tagged URLs well below that.
  • Encoding. Spaces and special characters should be encoded. Meta shows a space as %20. Underscores avoid the issue.
  • Too many values. Endless unique values create messy reports, and GA4 groups high-cardinality rows as (other).
  • No personal data. Google says to keep personally identifiable information out of utm_source, utm_medium, utm_term, utm_campaign and utm_content. Do not put emails, phone numbers or names in newsletter links.

Source: Google Analytics Help, best practices to avoid sending PII.

Common UTM mistakes

  • Mixed case, which splits one campaign into several rows.
  • A wrong medium, so traffic lands in Unassigned.
  • UTMs on Google Ads final URLs next to auto-tagging.
  • Tagging internal links.
  • Changing campaign names after launch and breaking the report match.
  • Tagging some links and leaving others blank, which causes (not set).

UTM checklist

  1. Write the naming convention in a shared sheet.
  2. Use lowercase and underscores.
  3. Always set source, medium and campaign.
  4. Use the medium values in the table above.
  5. Use dynamic parameters in Meta ads, and name campaigns before publishing.
  6. Leave auto-tagging on in Google Ads and link it to GA4.
  7. Never tag internal links or add personal data.
  8. Check a few live links in the Traffic acquisition report.

Sources: Google Analytics Help, campaigns and URLs, default channel group, manual tagging vs auto-tagging, Google Ads auto-tagging, Meta URL parameters. Read on 29 October 2026. Once your tracking works, see what to do with the numbers in our guide to performance marketing.

Straight answers

UTM parameters, answered

What are the five UTM parameters?

utm_source, utm_medium, utm_campaign, utm_term and utm_content. GA4 also reads utm_id and utm_source_platform. Google says you should always use source, medium and campaign.

Are UTM parameters case sensitive?

Yes. The values are case sensitive, so Meta and meta become two rows. Google’s channel grouping rules are not case sensitive, but your reports are, so use lowercase.

Should I use UTMs with Google Ads?

Usually not on the final URL. Leave auto-tagging on and link Google Ads to GA4. In GA4, auto-tagging takes priority over manual tagging, since there is no override setting.

How do I add UTMs in Meta ads?

Add them in the URL parameters field under Tracking in Ads Manager. Use dynamic values such as {{campaign.name}} and {{ad.name}}, never leave a value empty, and name campaigns before publishing because name-based values do not update later.

Can UTMs be used on internal links?

Avoid it. Google has no explicit rule, but practitioners report it can overwrite the real source on later events. Use event parameters for internal banners.

Is there a character limit for UTMs?

Google does not state one. GA4 limits the page location value to 1,000 characters, so keep the full tagged URL well under that.

What does (not set) mean in GA4 campaign reports?

It means a value was missing, for example incomplete UTMs, auto-tagging not working, or clicks from an unlinked Google Ads account.

Track what pays

We set up tracking, creative and ads for 20+ D2C brands. Get an honest audit of your funnel and attribution in one conversation.