Sub topic 6
From source and medium to channel groups
GA4 does not store a "channel" on your link. It takes the source, medium and campaign values from a session, then runs them through an ordered list of rules to produce a channel label such as Paid Search, Email or Organic Social. This chapter covers how that rule list works, where UTM values fit in, and how to predict and fix the result.
This chapter assumes you can already build a tagged URL and know that GA4 reads utm_source, utm_medium and utm_campaign into session dimensions. If those are unfamiliar, review the earlier chapters first.
What a channel group is
A channel group is a set of rules that sorts traffic into a small number of labeled buckets. Source and medium can have thousands of distinct combinations. Channels reduce them to about a dozen buckets that fit in a chart.
GA4 gives you one built-in grouping, the Default Channel Group. You can't edit it. You can add custom channel groups next to it, which this chapter covers near the end.
The default group shows up under several dimension names. Their scopes differ:
| Dimension | Scope | Answers the question |
|---|---|---|
| Session default channel group | Session | How did this visit arrive? |
| First user default channel group | User | How was this person first acquired? |
| Default channel group | Event | Which channel was credited when this event fired? |
Which one you choose changes the numbers. A returning customer who arrived through a newsletter link today has a "first user" channel of Organic Search, from last year. The session channel is Email.
The rules are ordered, and the first match wins
GA4 checks the rules from top to bottom and stops at the first one that matches. A session therefore gets exactly one channel. The order produces behavior you can't predict from the channel names alone.
The main rules are listed below in evaluation order. The exact source lists and regular expressions are maintained by Google and can change, so treat this table as a working model. Check the current definition in Admin > Data display > Channel groups before you depend on an edge case.
| Order | Channel | Matches when |
|---|---|---|
| 1 | Direct | Source is `(direct)` and medium is `(none)` or `(not set)` |
| 2 | Cross-network | Campaign name contains `cross-network` |
| 3 | Paid Shopping | Source is a shopping site (or the campaign name looks like shopping) and medium is paid |
| 4 | Paid Search | Source is a search site and medium is paid |
| 5 | Paid Social | Source is a social site and medium is paid |
| 6 | Paid Video | Source is a video site and medium is paid |
| 7 | Display | Medium is `display`, `banner`, `expandable`, `interstitial` or `cpm` |
| 8 | Paid Other | Medium is paid, whatever the source |
| 9 | Organic Shopping | Source is a shopping site |
| 10 | Organic Social | Source is a social site, or medium is `social`, `social-network`, `social-media`, `sm`, `social network` or `social media` |
| 11 | Organic Video | Source is a video site, or medium contains `video` |
| 12 | Organic Search | Source is a search site, or medium is `organic` |
| 13 | Referral | Medium is `referral`, `app` or `link` |
| 14 | Source is `email` (or a variant), or medium is `email` (or a variant) | |
| 15 | Affiliates | Medium is `affiliate` |
| 16 | Audio | Medium is `audio` |
| 17 | SMS | Source or medium is `sms` |
| 18 | Mobile Push Notifications | Medium ends with `push` or contains `mobile` or `notification`, or source is `firebase` |
| 19 | Unassigned | Nothing above matched |
In this table, "medium is paid" means the medium matches the pattern ^(.*cp.*|ppc|retargeting|paid.*)$. That covers cpc, cpm, cpv, ppc, retargeting, and anything starting with paid, such as paid_social.
"Source is a search site" means the source appears in Google's list of search engines, such as google or bing. Social and video sites have their own lists. Your own value newsletter is on none of them.
How UTM values enter the rules
The rules read the session's source and medium dimensions, and for two rules the campaign name. Your UTM parameters supply those values:
utm_sourcebecomes the session source.utm_mediumbecomes the session medium.utm_campaignbecomes the session campaign.
When a visit has no UTM parameters, GA4 uses what it can infer. A click from a search engine gets organic as medium. A link from another site gets referral. A visit with no referrer gets (direct) / (none). Your UTM values override that inference. If you tag a link from your own partner's blog with utm_medium=email, GA4 reports Email, because it trusts the tag over the referrer.
The consequence is that utm_medium is the most important value you set. Most channel rules key on the medium. The source decides the outcome only in paid rules, where it must be on a known list, and in a few organic rules.
The diagram simplifies the order. Display is really checked before Paid Other and Organic Social is checked before Email. The next section shows a case where this matters.
Predicting a channel: a worked model
You can write the rules down as code and use it to check your naming before a campaign goes live. This sketch implements a reduced version of the table. It leaves out Shopping, Cross-network, Audio, SMS and Mobile Push, and it uses short source lists. Use it for reasoning, not as a replacement for GA4's own definition.
const PAID_MEDIUM = /^(.*cp.*|ppc|retargeting|paid.*)$/;
const SEARCH = new Set(['google', 'bing', 'yahoo', 'duckduckgo', 'baidu']);
const SOCIAL = new Set(['facebook', 'instagram', 'linkedin', 'twitter', 'x', 'reddit', 'pinterest']);
const VIDEO = new Set(['youtube', 'vimeo']);
const DISPLAY = new Set(['display', 'banner', 'expandable', 'interstitial', 'cpm']);
const SOCIAL_MEDIUM = new Set(['social', 'social-network', 'social-media', 'sm', 'social network', 'social media']);
const EMAIL = new Set(['email', 'e-mail', 'e_mail', 'e mail']);
function classifyChannel(source, medium) {
const s = source.toLowerCase();
const m = medium.toLowerCase();
const paid = PAID_MEDIUM.test(m);
if (s === '(direct)' && (m === '(none)' || m === '(not set)')) return 'Direct';
if (paid && SEARCH.has(s)) return 'Paid Search';
if (paid && SOCIAL.has(s)) return 'Paid Social';
if (paid && VIDEO.has(s)) return 'Paid Video';
if (DISPLAY.has(m)) return 'Display';
if (paid) return 'Paid Other';
if (SOCIAL.has(s) || SOCIAL_MEDIUM.has(m)) return 'Organic Social';
if (VIDEO.has(s) || m.includes('video')) return 'Organic Video';
if (SEARCH.has(s) || m === 'organic') return 'Organic Search';
if (['referral', 'app', 'link'].includes(m)) return 'Referral';
if (EMAIL.has(s) || EMAIL.has(m)) return 'Email';
if (m === 'affiliate') return 'Affiliates';
return 'Unassigned';
}
const samples = [
['google', 'cpc'],
['linkedin', 'cpc'],
['newsletter', 'cpc'],
['newsletter', 'email'],
['newsletter', 'paid_email'],
['facebook', 'email'],
['google', 'organic'],
['partner-blog.com', 'referral'],
['x', 'banner'],
['spring', 'promo'],
['(direct)', '(none)'],
];
for (const [source, medium] of samples) {
console.log(`${source} / ${medium} -> ${classifyChannel(source, medium)}`);
}Running it prints:
google / cpc -> Paid Search
linkedin / cpc -> Paid Social
newsletter / cpc -> Paid Other
newsletter / email -> Email
newsletter / paid_email -> Paid Other
facebook / email -> Organic Social
google / organic -> Organic Search
partner-blog.com / referral -> Referral
x / banner -> Display
spring / promo -> Unassigned
(direct) / (none) -> DirectFour of those results are worth understanding:
newsletter / cpcis Paid Other. The medium is paid, butnewsletteris on no search, social or video list. The paid rules for those channels fail, and the catch-all takes it.newsletter / paid_emailis Paid Other, not Email. The paid pattern matchespaid.*, and the paid rules come before the Email rule. Don't inventpaid_mediums for channels you want grouped elsewhere.facebook / emailis Organic Social. The Organic Social rule matches on source and sits above Email. A tag with a social source but an email medium is almost certainly a mistake, and the report hides it.spring / promois Unassigned.promois not a medium GA4 recognizes. That is the standard way a typo or a free-form medium ends up in Unassigned.
Choosing mediums that land where you expect
Work backward from the channel you want. Pick the medium from the table first, then choose a source that names the specific platform or sender.
| You want | Use medium | Example source |
|---|---|---|
| Paid search ads | `cpc` | `google`, `bing` |
| Paid social ads | `paid_social` or `cpc` | `facebook`, `linkedin` |
| Email campaigns | `email` | `newsletter`, `welcome_series` |
| Organic social posts | `social` | `linkedin`, `instagram` |
| Affiliate partners | `affiliate` | `partner_name` |
| Banner and display ads | `display` or `banner` | `network_name` |
| Links on partner sites | `referral` | `partner_site` |
Two cautions apply.
- Source spelling matters for paid channels.
utm_source=Googleandutm_source=googleappear as separate rows in the source dimension. In the channel rules you should assume only the exact, lowercase platform name is safe. A source likegoogle_adsorfbcan drop a paid social link into Paid Other. - Use the same lowercase medium every time.
Emailandemailcan show as two rows in the source / medium report even if both land in the Email channel. Pick one spelling and enforce it in your URL builder, as in the earlier chapter.
Custom channel groups
When the default rules don't match your business, create a custom channel group. Go to Admin > Data display > Channel groups, then create a new group. You can start from the default rules and edit a copy, or build from scratch.
Typical reasons to build one:
- You need a channel the default group lacks, such as "Podcast" or "Partner".
- You want to split a default channel. For example, separate "Brand Search" from "Non-brand Search" by campaign name.
- Your naming convention uses mediums that the default patterns don't recognize, and you can't change old links.
Each custom channel is a set of conditions on dimensions such as source, medium, campaign or source platform. Conditions use match types like "exactly matches", "contains", "begins with" and "matches regex". The same first-match-wins logic applies, so drag the more specific channels above the general ones.
Custom channel groups apply to your historical data, because GA4 evaluates them when you run a report. That makes them safer to experiment with than a tagging change, which only affects new traffic. A custom group appears as its own dimension, for example "Session [your group name]". It does not replace the default one.
Diagnosing a wrong or missing channel
Work through these steps when a campaign lands in the wrong place.
- Open Reports > Acquisition > Traffic acquisition and set the primary dimension to Session source / medium. Find the exact pair GA4 recorded.
- Compare that pair to the rule table. Check spelling, case, separators (
paid-socialversuspaid_social) and extra words. - Check the rule order. A matching rule higher in the list may have claimed the session, as with
facebook / email. - If the pair is correct but the channel looks wrong, open the current default channel group definition in Admin and compare the source lists.
- Fix the link at the source. Only then consider a custom group.
Here are the usual causes of Unassigned traffic:
- A medium that is a made-up word, such as
promo,adorcampaign. - A medium that is empty, which usually means
utm_mediumwas dropped during a redirect. - A source or medium containing characters that were altered by encoding.
A related problem is (not set). If utm_medium is present but utm_source is missing, GA4 may show (not set) for the source and can't classify the session cleanly. The three core parameters work as a set: send all three, every time.
Exercises
Exercise
A link is tagged utm_source=newsletter&utm_medium=cpc&utm_campaign=autumn_offer. Which default channel does GA4 assign, and why?
Show answer
Paid Other. The medium cpc matches the paid pattern, but newsletter is not on the search, social, video or shopping source lists, so the specific paid channels do not match. The Paid Other rule catches any paid medium regardless of source. To get Email, change the medium to email.
Exercise
You tag a LinkedIn post link with utm_source=linkedin&utm_medium=email by mistake. In which channel does the traffic appear, and why does the mistake stay hidden?
Show answer
Organic Social. The Organic Social rule matches a social source and is evaluated before the Email rule, so the session is classified before the medium is considered. The report shows a plausible, populated channel, so nothing looks broken. You only see the problem by checking the source / medium row, which reads linkedin / email.
Exercise
Your team has used utm_medium=promo for hundreds of old links, and they all show as Unassigned. You can't edit the old links. What is the least disruptive fix in GA4, and why does it work on past data?
Show answer
Create a custom channel group in Admin > Data display > Channel groups, with a condition such as "Medium exactly matches promo" mapped to a channel of your choice. Custom channel groups are evaluated at report time, so they apply to historical data. For new links, use a recognized medium.