Sub topic 5
Source, Medium, and Campaign in GA4
Assume you know the GA4 interface, have access to a property that collects data, and understand basic website visits and marketing campaigns. This chapter focuses on how GA4 names incoming traffic. It does not cover every attribution model or advertising report.
The three dimensions
A dimension is a descriptive value used to group data. In acquisition reports, these dimensions answer different questions:
| Dimension | Question it answers | Example value |
|---|---|---|
| Source | Where did the visitor come from? | `newsletter` |
| Medium | What kind of traffic was it? | `email` |
| Campaign | Which promotion or initiative sent it? | `spring_sale` |
The values often come from campaign URL parameters. A campaign URL might look like this:
https://www.example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_saleFor a session that begins through this link, GA4 can record:
- Source:
newsletter - Medium:
email - Campaign:
spring_sale
Source identifies the specific origin, such as google, facebook, partner-site, or newsletter. Medium describes the marketing method, such as organic, cpc, social, referral, or email. Campaign groups related links under a promotion, launch, or business initiative.
Use consistent spelling and capitalization. GA4 treats values such as Email, email, and EMAIL as different values in many reports. A naming convention prevents fragmented rows.
How GA4 gets the values
GA4 can receive acquisition information from several sources:
- Manual UTM parameters in a URL.
- Automatic tagging from linked advertising platforms, such as Google Ads.
- Referrer information supplied by the browser.
- Direct traffic, where no usable source information is available.
For manual tagging, the common parameters are utm_source, utm_medium, and utm_campaign. Other parameters, such as utm_content and utm_term, can distinguish creative versions or paid search terms.
GA4 stores these values at different scopes. A session-scoped dimension describes the source that started a particular session. A first-user dimension describes the source associated with acquiring the user for the first time. The same person can therefore have one first-user campaign and many later session campaigns.
Reading combinations correctly
Source and medium are usually most useful together. google / organic means the traffic came from Google through an organic search result. google / cpc usually means paid search. partner-site / referral means a referring website linked to your site.
A campaign value without its source and medium can be misleading. The same campaign name might be used in email, paid social, and partner links. Use a complete naming scheme, such as:
source=linkedin, medium=paid_social, campaign=spring_sale
The default channel group uses source, medium, and other signals to place traffic into broader categories such as Organic Search, Paid Search, Email, or Referral. Channel classification is useful for summaries, while source, medium, and campaign provide more detail.
> callout note > UTM parameters describe how a link was tagged. They do not prove that the visitor converted because of that campaign. Use conversion events and an appropriate attribution view before making performance claims.
Common errors
- Using
utm_medium=marketinginstead of a meaningful medium such asemailorpaid_social. - Omitting UTMs from some links in the same campaign.
- Adding UTMs to internal links, which can overwrite the original session source.
- Using different campaign names for links that should be grouped.
- Expecting a session campaign to equal the user's first acquisition campaign.
Exercise
A newsletter link uses utmsource=mailchimp, utmmedium=email, and utmcampaign=aprillaunch. What three dimension values should you expect for a session that begins through that link?
Show answer
Source is mailchimp, medium is email, and campaign is april_launch.