Traffic Sources and UTM Tracking
Learn how analytics assigns source, medium and channel to each visit, then tag campaign links with UTM parameters so every click is credited correctly.
Welcome back!
Step 1 of 13Learn
Where did they come from?
A yoga studio ran three promotions in the same week: a newsletter, an Instagram story and printed flyers with a QR code. Sign-ups jumped. The owner wanted to know which promotion worked, but GA4 showed most of the extra visits as "Direct" and a few as "Referral" from a link-shortener domain. She couldn't tell.
To understand traffic sources, you need three dimensions:
- Source: where the visit came from specifically: google, newsletter, facebook.com, a partner's domain.
- Medium: the general type of traffic: organic (unpaid search), cpc (paid search), email, referral, social, (none).
- Campaign: the specific promotion: spring_sale, black_friday_2026, yoga_challenge.
GA4 combines source and medium into default channel groups such as Organic Search, Paid Search, Organic Social, Paid Social, Email, Referral, Display and Direct.
How does analytics know the source? Mostly from the referrer, the address of the previous page, which browsers pass along when someone clicks a link, and from tags in the link itself. When there is no referrer and no tags, the visit is labeled Direct: (direct) / (none). That covers typed addresses and bookmarks, but also clicks from many email apps, messaging apps, documents and QR codes. "Direct" is often a bucket of traffic whose source simply wasn't recorded.
Step 2 of 13Practice · Match the pairs
Match each visit to the source / medium analytics would most likely record without any special tagging.
Tap an answer, then tap the place where it belongs (or drag it there).
- Clicking an unpaid Google search result
- Clicking a link on a partner's blog
- Typing the address into the browser
- Clicking a Google search ad with auto-tagging on
Step 3 of 13Compare
The yoga studio's promotions, without and with UTMs
| Aspect | Without UTMs | With UTMs |
|---|---|---|
| Newsletter link | Often (direct) / (none) when opened in an email app | newsletter / email |
| Instagram story | instagram.com / referral or social, campaign unknown | instagram / social, campaign spring_offer |
| QR code on a flyer | (direct) / (none): no referrer at all | flyer / print |
| Can you compare them? | No: they blur into direct traffic | Yes: each has its own row |
Step 4 of 13Learn
UTM parameters
The fix for the yoga studio's problem is UTM parameters: tags added to the end of a link that tell analytics exactly where the click came from. They were named after Urchin, the company whose software became Google Analytics, and nearly every analytics tool reads them.
A tagged link looks like this:
https://example.com/challenge?utm_source=newsletter&utm_medium=email&utm_campaign=yoga_challenge
The main parameters:
| Parameter | Meaning | Example |
|---|---|---|
| utm_source | Who sent the traffic | newsletter, instagram, flyer |
| utm_medium | Type of channel | email, social, print, cpc |
| utm_campaign | Which promotion | yoga_challenge |
| utm_content | Which version or link | top_button, story_2 |
| utm_term | Paid search keyword (optional) | beginner_yoga |
Source, medium and campaign are the ones to always fill in. utm_content is useful for telling apart two links in the same email or two ad versions.
Now the studio can tag the newsletter link with source=newsletter, medium=email; the Instagram link with source=instagram, medium=social; and the flyer QR code link with source=flyer, medium=print. Each promotion shows up separately in the reports.
Step 5 of 13Practice · Fill in the blanks
Fill in the blanks
In the link example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale, the medium is and the campaign is .
Step 6 of 13Diagram
Anatomy of a tagged link
Tap a shape with to see more.
- example.com/?utm_...
- utm_source
Who sent the traffic: newsletter, facebook, google.
- utm_medium
The kind of channel: email, social, cpc, print.
- utm_campaign
The specific promotion: spring_sale.
- utm_content
Optional: which link or ad version, e.g. header_button.
- utm_term
Optional: the paid search keyword.
Step 7 of 13Note
Step 8 of 13Practice · Chart
One channel split into four rows
A report filtered on "email" would miss the other rows. Which stray spelling hides the most sessions?
Tap the bar that answers the question, then press Check.
Step 9 of 13Learn
Tagging rules that keep data clean
UTM tags are simple, but small mistakes cause big reporting headaches. Follow these rules.
Tag every link you control outside your site: emails, social posts, ads on platforms without auto-tagging, partner links, QR codes, PDFs, podcasts' show notes. If you don't tag it, it will probably appear as Direct or as a vague referral.
Never use UTM tags on internal links (links from one page of your own site to another). In many tools that starts a new attribution and overwrites the real source. A visitor who arrived from Google and clicked an internal banner tagged with utm_source=homepage_banner would wrongly lose their Google credit.
Use mediums that match GA4's channel rules. GA4 sorts traffic into channels partly by recognizing medium values. Use standard values such as email, cpc, social, paid_social, referral, affiliate and display so traffic lands in the right channel group.
Keep a tagging log: link, date, campaign, source, medium, content and owner. It prevents duplicate campaign names and helps when someone asks "what was spring_promo_v2?" months later.
Shorten long links if needed, but tag first, then shorten. The shortener redirects to the tagged address, so the UTM values survive.
Step 10 of 13Practice · Spot the mistake
A marketer built these tagged links for a fall campaign. Tap the three that break good UTM practice.
Step 11 of 13Practice · What would you do?
What would you do?
A bakery prints 5,000 flyers with a QR code that points to its online ordering page, with no tags. A month later, the owner wants to know how many orders the flyers brought in. What should she have done?
Step 12 of 13Note
Step 13 of 13Practice · True or false
Adding UTM parameters to links between pages of your own website is a good way to see which internal banners get clicks.
Lesson complete!