Sub topic 1
Source, medium and campaign: the raw inputs
Prerequisites
You should know the basics of the GA4 interface, including users, sessions, and events. You should also understand that marketing links can contain query parameters, which are values added after a question mark in a URL.
GA4 uses source, medium, and campaign as traffic dimensions. A dimension is a descriptive attribute attached to traffic. These dimensions provide the raw inputs that GA4 later uses to place traffic into a channel such as Email, Organic Search, or Paid Social.
Source identifies where traffic came from
Source names the website, platform, or service that sent the visitor. Examples include:
- newsletter
- partner-site.com
A source does not, by itself, say whether traffic was paid. For example, google could represent an unpaid search result, a paid advertisement, or a link on another Google service. The medium provides more context.
Medium describes the type of traffic
Medium describes how the visitor arrived. Common medium values include:
- organic for unpaid search traffic
- cpc for cost-per-click advertising
- email for email links
- referral for links from other websites
- social for social traffic
GA4 uses the medium together with the source and other information. A source of google with a medium of cpc usually indicates paid search. The same source with a medium of organic indicates unpaid search.
Campaign names the marketing effort
Campaign identifies the promotion or initiative that generated the visit. A campaign value might be springsale2026, productlaunch, or memberdiscount.
Campaign values help you compare marketing efforts within a channel. They usually do not determine the channel by themselves. For example, two links can use the same campaign name while one is sent by email and another is used in a paid advertisement. Their source and medium values can place them in different channels.
The following table shows the usual relationship between these inputs:
| Dimension | Question it answers | Example |
|---|---|---|
| Source | Where did the visitor come from? | newsletter |
| Medium | What type of traffic was it? | |
| Campaign | Which marketing effort sent the visitor? | spring_sale_2026 |
UTM parameters provide the values
UTM parameters are standard query parameters that marketers add to campaign URLs. GA4 reads parameters such as utmsource, utmmedium, and utm_campaign and uses their values for traffic dimensions.
https://www.example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026For this URL, the intended values are:
- Source: newsletter
- Medium: email
- Campaign: springsale2026
A paid search link might use a different source and medium:
https://www.example.com/spring-sale?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale_2026Consistent spelling matters. GA4 treats Newsletter and newsletter as different source values in many reporting contexts. A naming standard prevents unnecessary rows and makes comparisons reliable.
flowchart TD
A[Campaign URL] --> B[UTM parameters]
B --> C[Source]
B --> D[Medium]
B --> E[Campaign]
C --> F[GA4 traffic dimensions]
D --> F
E --> Fcaption: How UTM parameters become GA4 traffic dimensions alt: A campaign URL supplies source, medium, and campaign values that GA4 stores as traffic dimensions.
Other collection methods
UTM parameters are common for email, social posts, banners, and partner links. Some advertising platforms can add campaign information automatically through auto-tagging. GA4 may also infer traffic from referrer information, which identifies the page that linked to your site.
When values are missing, incorrect, or overwritten, later channel classification can differ from your intention. Check the final landing-page URL and the resulting source and medium dimensions when validating a campaign.
Exercise
A link uses utmsource=google, utmmedium=organic, and utm_campaign=summer. Which raw input says that the visit came from an unpaid search medium?
Show answer
The medium value organic. The source google identifies the source, while the campaign names the promotion.