Sub topic 7
Source categories: how GA4 recognizes search, social, shopping and video sites
This chapter assumes you know what source, medium and campaign are, and that you have seen the default channel list (Organic Search, Paid Social, Referral and so on). It covers the list that lets GA4 decide a session's source is a search engine, a social network, a shopping site or a video site. It also explains why that list produces results that surprise people.
Why GA4 needs a list
Look at two sessions:
- source
google, mediumorganic - source
bing, mediumcpc
GA4 puts the first in Organic Search and the second in Paid Search. The medium value tells it "organic" or "paid", but nothing in the word bing says it is a search engine. GA4 has to know that from somewhere.
That knowledge is a source category list. It is a table maintained by Google that maps known source values, such as google, facebook.com, youtube.com or amazon, to one of four categories:
| Category | Typical members | Channels that use it |
|---|---|---|
| Search | google, bing, duckduckgo, baidu, yahoo | Organic Search, Paid Search |
| Social | facebook, instagram, linkedin, reddit, pinterest, t.co | Organic Social, Paid Social |
| Shopping | amazon, ebay, etsy | Organic Shopping, Paid Shopping |
| Video | youtube, vimeo, twitch | Organic Video, Paid Video |
The members shown are examples. The real list is much longer and includes many regional sites and subdomain variants. Google publishes it as a downloadable spreadsheet linked from its help article on default channel group definitions.
Where the category enters the rules
The channel rules read like sentences that combine a category test with a medium test. In simplified form:
- Organic Search: source is in the search list, or medium is
organic. - Paid Search: source is in the search list and medium looks paid.
- Organic Social: source is in the social list, or medium is one of
social,social-network,social-media,sm,social networkorsocial media. - Paid Social: source is in the social list and medium looks paid.
- Organic Shopping and Paid Shopping: the same pattern, with a shopping source list. The campaign name can also trigger the organic version when it contains the word "shop" or "shopping".
- Organic Video and Paid Video: the same pattern, with a video source list. A medium containing "video" also triggers the organic version.
"Looks paid" means the medium matches a regular expression. The expression accepts anything containing cp (cpc, cpm, cpv), plus ppc, retargeting, and anything starting with paid.
So the category answers "where did the visit come from?", and the medium answers "was it paid for?". Neither alone decides the channel. For the paid-versus-organic details, see the chapter on that topic. Here the focus is the category side.
A model you can run
The script below models the category lookup and the two-part rule. It is simplified: it uses a handful of sources, covers only some channels, and skips campaign-name tests. The real definitions are longer and Google changes them over time.
import re
CATEGORIES = {
"search": {"google", "bing", "duckduckgo", "yahoo"},
"social": {"facebook", "instagram", "linkedin", "reddit", "t.co"},
"shopping": {"amazon", "ebay", "etsy"},
"video": {"youtube", "vimeo", "twitch"},
}
PAID_MEDIUM = re.compile(r"^(.*cp.*|ppc|retargeting|paid.*)$")
SOCIAL_MEDIA = {"social", "social-network", "social-media", "sm",
"social network", "social media"}
def source_category(source):
for name, members in CATEGORIES.items():
if source in members:
return name
return None
def classify(source, medium):
source = (source or "").lower()
medium = (medium or "").lower()
category = source_category(source)
is_paid = bool(PAID_MEDIUM.match(medium))
if category and is_paid:
return "Paid " + category.capitalize()
if category == "search" or medium == "organic":
return "Organic Search"
if category == "social" or medium in SOCIAL_MEDIA:
return "Organic Social"
if category == "shopping":
return "Organic Shopping"
if category == "video" or "video" in medium:
return "Organic Video"
if medium in ("referral", "app", "link"):
return "Referral"
return "Unassigned"
tests = [
("google", "cpc"),
("facebook", "referral"),
("facebook", "cpc"),
("youtube", "(none)"),
("amazon", "referral"),
("smallforum.example", "referral"),
("smallforum.example", "social"),
("promo", "banner-x"),
]
for source, medium in tests:
print(f"{source:20} {medium:10} -> {classify(source, medium)}")Running it prints:
google cpc -> Paid Search
facebook referral -> Organic Social
facebook cpc -> Paid Social
youtube (none) -> Organic Video
amazon referral -> Organic Shopping
smallforum.example referral -> Referral
smallforum.example social -> Organic Social
promo banner-x -> UnassignedThree results matter here:
facebookwith mediumreferralis Organic Social, not Referral. The social category test is evaluated before Referral, and it matches.smallforum.exampleis on no list. With mediumreferralit is Referral. With mediumsocialit becomes Organic Social, because the medium alone can satisfy the social rule.promowithbanner-xmatches no category and no medium rule, so it is Unassigned.
Evaluation order creates the gotchas
GA4 checks channels in a fixed order and stops at the first match. In the real definitions the paid channels come before the organic ones, and Referral comes after Organic Search, Social, Shopping and Video. That ordering is why a listed source almost never ends up in Referral.
The diagram below shows this order for one session.
Common situations
A platform you use is missing from the list
The category list covers well-known sites. A niche forum, a regional social network or a new app is probably not on it. Traffic from such a site arrives as a normal referral with its domain as the source and referral as the medium. It lands in Referral, even though you think of it as social.
You have two fixes:
- Tag your own links with a medium the rules recognize, for example
utm_medium=social. This is the better choice for links you control. - Build a custom channel group that maps that source to a Social channel. This is the only fix for untagged links you cannot control, such as organic mentions.
Source naming variants
Social platforms send visits from several hostnames: the app, the mobile site, and link shorteners such as t.co. The category list includes many of these variants. If you tag a link yourself, write utm_source=facebook, not utm_source=Facebook Page Post. A free-text label is on no list and will not be recognized as social.
Case and spelling
GA4 reports UTM values as you typed them, so Facebook and facebook can appear as separate rows in a source report. Use lowercase everywhere so your tagging and the rules agree. A spelling mistake such as utm_medium=emial matches no email rule, and the session falls through to a later channel or to Unassigned.
Paid traffic without a paid medium
A session from youtube with utm_medium=video-ad has a video source but a medium that does not look paid. The regular expression needs cp, ppc, retargeting or a leading paid. GA4 reports it as Organic Video, which understates your paid spend. Name paid media consistently: cpc, cpm, cpv, paid-social.
Auto-tagged Google Ads traffic
Linked Google Ads campaigns with auto-tagging supply their own source and medium (google / cpc), so you do not tag them. The search category and paid medium then place them in Paid Search. If auto-tagging is off and you provide no UTMs, the click appears as organic or direct, depending on how the visit arrived.
Checking what GA4 did
You do not need the full category list to diagnose a problem. Use this routine:
- Open a report with Session source / medium as the dimension and Session default channel group as a second dimension.
- Find the rows where the channel is not what you expected.
- Ask whether the source is a known site. If not, look for a medium that could rescue it.
- Compare the medium against the paid pattern if the paid and organic split looks wrong.
- Fix the tagging for links you control. Otherwise build a custom channel group.
Summary
The source category list tells GA4 which source values are search, social, shopping or video sites. The channel rules combine that category with the medium: a listed source with a paid-looking medium goes to the Paid channel, and a listed source with any other medium goes to the Organic channel. Sources not on the list fall back on medium-only rules, then Referral, then Unassigned. Most surprises come from that order and from sources missing from the list.
Exercise
A link to your site is tagged utmsource=linkedin&utmmedium=sponsored. Which channel does GA4 most likely assign, and what change to the tag would put it in Paid Social?
Show answer
Most likely Organic Social. linkedin is in the social source category, but "sponsored" does not match the paid-medium pattern (it contains no "cp", is not ppc or retargeting, and does not start with "paid"). Changing the medium to something like cpc or paid-social makes the medium look paid, so the session goes to Paid Social.
Exercise
Visitors arrive from a regional social network that is not on Google's source list, and they appear in Referral. Name two ways to get them into a social channel.
Show answer
For links you control, tag them with utm_medium=social (or another recognized social medium), which satisfies the Organic Social rule. For untagged links, create a custom channel group with a Social channel whose condition matches that source domain.