Skip to content
AE DIGITAL
Analytics & TrackingBy 6 min read

UTM parameters: naming conventions that keep GA4 data clean

How to write source, medium and campaign consistently, match GA4's default channel groups and keep sessions out of Unassigned.

Article cover: the word “GA4” next to a glowing icon on a violet space background

What UTM parameters are for

UTM parameters are key-value pairs added to a link, such as ?utm_source=brevo&utm_medium=email&utm_campaign=summer-sale, that tell Google Analytics 4 where a visit came from when the browser does not pass that information or passes it too vaguely. You need them for newsletters, social posts, non-Google paid campaigns, links in PDFs, QR codes and partner deals.

GA4 does not validate the values; it records whatever you type. If one colleague uses Facebook, another fb and a third facebook.com, reports will show three sources for the same channel. That is why UTM parameters only work with a written, shared naming convention. This guide proposes a system you can adapt and lists the mistakes that send sessions to "Unassigned".

source, medium, campaign: the rules

GA4's documentation lists nine parameters: utm_id, utm_source, utm_medium, utm_campaign, utm_source_platform, utm_term, utm_content, utm_creative_format and utm_marketing_tactic. Google recommends always using the three core ones: source, medium and campaign. The last two are not currently reported in GA4 properties.

Working definitions

  • utm_source: who sends the traffic. The site, platform or partner: facebook, instagram, linkedin, brevo, partner-name.
  • utm_medium: the channel type. A few fixed values: email, social, cpc, display, affiliate, referral.
  • utm_campaign: the initiative, for example 2026-09_end-of-summer-sale, with the date first so campaigns sort and are easy to find.
  • utm_content: the variant. It separates two links in the same email (header, final-cta) or two creatives in the same ad.
  • utm_term: the keyword, mainly for ads on search engines other than Google Ads.

A practical rule: medium describes how, source describes who. If your medium value changes every month, you are using it as a campaign.

Matching GA4's default channel groups

GA4 assigns each session to a default channel group using fixed rules you cannot edit. The definitions are not case sensitive. Some rules that matter for UTMs:

  • Email: source or medium equals email, e-mail, e_mail or e mail.
  • Organic Social: source in a list of social sites, or medium among social, social-network, social-media, sm.
  • Paid Social: source in the social list and medium matching ^(.*cp.*|ppc|retargeting|paid.*)$, such as cpc or paid-social.
  • Display: medium among display, banner, expandable, interstitial, cpm.
  • Affiliates: medium equals affiliate. Referral: medium referral, app or link.
  • Unassigned: when no rule matches.

The textbook Unassigned case is utm_source=brevo&utm_medium=newsletter: neither source nor medium equals "email", so the session does not land in the Email channel. With utm_medium=email the problem disappears. The same happens with invented mediums such as qr, whatsapp-blast or post. If you keep a custom medium for a specific reason, those sessions will need a custom channel group.

Capital letters, spaces and other common mistakes

  • Case: parameter values are case sensitive. utm_source=Facebook and utm_source=facebook become two rows. Use lower case only.
  • Spaces and accents: a space becomes %20 or + depending on the tool that builds the link, and accented characters get encoded. Use hyphens instead of spaces and avoid accents.
  • Wrong medium for ads: utm_medium=social on a paid Meta campaign sends it to Organic Social. For ads, use cpc or paid-social.
  • UTMs on Google Ads: with auto-tagging on, Google Ads adds the gclid parameter and GA4 receives campaign data. Manual UTMs are not needed.
  • Shortened links and redirects: some redirects drop the query string. Always test the final link.
  • Missing parameters: if one of the three core parameters is missing, reports show "(not set)".

A shared naming sheet

The convention belongs in a single spreadsheet that everyone who creates links can access: marketing, sales, agencies, partners. Minimum structure:

  1. "Allowed values" tab: a closed list of mediums (6–8 values) and sources, with the expected GA4 channel group next to each combination.
  2. "Builder" tab: columns for destination URL, source, medium, campaign, content and a formula that assembles the link in lower case, replacing spaces with hyphens.
  3. "Log" tab: every link created, with date, author and where it was published.

Google's Campaign URL Builder is an alternative for people who do not use the sheet, but it does not enforce allowed values; the sheet is your control. An example of a compliant link:

https://www.example.com/sale?utm_source=brevo&utm_medium=email&utm_campaign=2026-09_end-of-summer-sale&utm_content=final-cta

If you send newsletters with Brevo and enable Google Analytics tracking in campaign settings, check on a test send which UTM values it adds and record them in the sheet, or switch it off and use your own links. The basic account setup is covered in our Brevo setup guide.

When not to use UTMs: internal links

Do not add UTM parameters to links between pages of your own site, such as a homepage banner pointing to a category or buttons in the blog. A visitor who arrived from Google and clicks a UTM-tagged internal banner can have their source replaced by the "internal" one, and later conversions get credited to your banner instead of the channel that brought the person in.

What to use instead of UTMs

To measure internal promotions, use events: GA4 offers recommended ecommerce events such as select_promotion and view_promotion, or you can send a custom event with the banner name. This is also one of the points in our guide to GA4 data quality for ecommerce.

Checking the data in GA4

  1. Before publishing: open the link, then check the Realtime report in GA4 for source and campaign.
  2. After 24–48 hours: in Traffic acquisition, set the "Session source / medium" dimension and look for values outside the convention (capitals, typos, unexpected mediums).
  3. Every month: filter the "Unassigned" channel group and trace the source/medium combinations behind it. Fix the sheet, not the reports.

Historical data cannot be corrected: every mistake stays in that period's reports. That is why an hour spent on the convention before the next campaign pays off. If UTMs also feed sales KPIs, connect these checks to those described in our article on B2B website KPIs and, for the overall setup, to the GA4 server-side tracking guide.

If you want a ready-made naming sheet tailored to your channels and a review of your current acquisition data, contact AE Digital Agency.

Frequently asked questions

Why do my newsletter sessions end up in Unassigned?

You are probably using a medium such as newsletter with a source such as brevo. GA4's Email channel requires source or medium to equal email (or variants such as e-mail). Set utm_medium=email and new sessions will be classified correctly.

Are UTM parameters case sensitive?

The values are: utm_source=Facebook and utm_source=facebook appear as two different sources. The default channel group rules, however, ignore case. Use lower case only to avoid duplicate rows.

Should I add UTMs to Google Ads?

Usually not. With auto-tagging on, Google Ads adds the gclid parameter and GA4 receives campaign data once the accounts are linked. Manual UTMs are for platforms without that integration.

Can I use UTMs to track internal banners on my site?

It is not recommended: a click on a UTM-tagged internal link can replace the visit's original source and shift conversion attribution. For internal promotions, use events such as select_promotion or a custom event.

Sources

  1. URL builders: Collect campaign data with custom URLs — Google Analytics Help
  2. Default channel group — Google Analytics Help
  3. About auto-tagging — Google Ads Help
  4. Campaign URL Builder — Google Analytics Demos & Tools
  5. Recommended events — Google for Developers
  6. encodeURIComponent() — MDN Web Docs

Related articles

Tell us what isn't working.

We reply within one business day with a first opinion and, if it makes sense, a quote.

Write to us