Source and medium are the two fields Analytics writes down when somebody arrives on your site. Source names the specific place the visit came from and medium names the kind of route it took. Almost every question about where traffic comes from is answered by reading them together.
In short
- Source is the place, medium is the kind of route.
- The pair is decided when the visit starts and cannot be edited later.
- Direct is the bucket for everything that could not be classified.
- Channel groups are a tidy layer over the pair, not a replacement for it.
Two halves that only work together
Neither field means much on its own, which is why reports show them as one column separated by a slash.
Source answers where. It is a name: google, facebook, bing, a partner’s domain, a newsletter. Medium answers how. It is a category: organic for an unpaid search result, cpc for a paid click, referral for a link on another site, email for a send, and none for a visit with no discoverable origin.
The reason to pair them is that the same source arrives by several routes. Google sends unpaid search traffic and paid clicks, and those are the same source with different mediums and completely different costs. Facebook sends organic posts, paid adverts and links pasted into messages. Reading source alone merges things you needed to keep apart.
How the classification is decided
Analytics writes the pair at the moment a session begins, using whatever information the browser hands over, and it applies the first of these that it can.
- Campaign tags. If the address carries UTM parameters, they win outright and become the recorded source and medium.
- A recognised referrer. The browser reports the previous page. Analytics matches the domain against its own list of search engines and social platforms, and classifies accordingly.
- An unrecognised referrer. Any other domain becomes the source, with referral as the medium.
- Nothing at all. No tags and no referrer, so the visit is recorded as direct.
The order matters more than it sounds. Tags override everything, including correct information the browser already supplied, which is the mechanism behind most ruined reports.
Once written, the pair is fixed. There is no later correction and no way to reclassify a session, so the discipline has to sit in front of the reporting rather than behind it.
There is one further wrinkle worth knowing, which is that the pair is recorded per session rather than per person. Somebody who finds you through a search on Monday and returns through a bookmark on Thursday is two sessions with two different classifications, and neither of them knows about the other. This is why a report grouped by source and medium describes visits and never describes customers.
The direct bucket, and what is in it
Direct is not a channel. It is the place Analytics files visits it could not identify, and on most Philippine sites it is one of the largest rows in the report.
A link opened inside Messenger or a group chat often arrives with no referrer at all. So does a link clicked in a PDF, a spreadsheet or a desktop application, a scanned code on a tarpaulin, and an untagged email. Add the people who genuinely typed the address or used a bookmark, and the row contains at least five different behaviours under one label.
The size of that row is a measurement problem rather than a marketing result, and it is covered in more detail under direct traffic. What matters here is that reading direct as loyalty, or as proof that brand awareness is working, is a mistake that leads to real budget decisions.
The four things that break it
Classification is fragile in specific and repeatable ways, and all four faults are worth checking once.
- Tagged internal links. A tagged link from your own homepage to your own contact page overwrites the source already recorded. Do it in the navigation and the source data for the whole site becomes fiction.
- Inconsistent capitals. Analytics treats Facebook and facebook as two separate sources that never add up. Agree on lowercase before anybody starts building links.
- Self-referrals. Your own domain appearing as a referral source means a session was broken in the middle, usually by a payment page or a booking tool on another domain, and one visit has been counted as two.
- Redirects that strip the tags. A shortener or a redirect chain that drops the query string delivers the visitor and loses the label.
The first is the most common and the most damaging, because it looks like diligence. Somebody tags every link on the site so that everything is measured, and the result is a report in which the internal banners appear to have produced all the traffic.
Payment and booking tools cause the second most trouble, and they cause it invisibly. A customer sent to an external checkout and returned to a thank you page arrives back with the payment provider as the referrer, so one purchase is recorded as two sessions and the second one is credited to the payment company. Adding that domain to the referral exclusion list in Analytics is a five minute job that most sites have never done.
Channel groups sit on top
Analytics adds a layer above the pair that sorts the combinations into a dozen readable buckets, and the layer is useful until it is not.
Organic Search, Paid Search, Organic Social, Paid Social, Email, Referral and Direct are groupings built from rules about the source and medium underneath. They make a monthly summary readable, and they hide the detail you need whenever a number moves unexpectedly.
The habit worth forming is to start at the group and drop to the pair as soon as something looks wrong. A fall in Organic Social is a question. The same fall visible as one source disappearing while another holds steady is an answer.
Be careful with anything landing in Unassigned, which is what Google Analytics 4 shows when a visit has a medium its rules do not recognise. It almost always means a tag somewhere is using a medium name that nobody agreed to.
Words you will hear
- Source. The specific place a visit came from.
- Medium. The kind of route it arrived through.
- Referrer. The previous page, as reported by the browser.
- Referral. The medium given to a visit from an unrecognised domain.
- Self-referral. Your own domain appearing as a source, which is a fault.
- Channel group. The tidy bucket built on top of the pair.
- Unassigned. A visit whose medium matched none of the rules.
The first thing to do with this report is look for your own domain in it. If it is there, fix that before drawing any conclusion from anything else the report says.
Questions we get
More about source and medium
What is the difference between source and medium?
Why is so much traffic recorded as direct?
What does referral mean?
Can I change how a visit is classified after the fact?
Why do Analytics and Facebook disagree about the same visit?
Should I tag links between my own pages?
What are channel groups?
Related terms
UTM parameters
UTM parameters are tags added to a link so your analytics can report where a visit came from. They are the only reliable way to tell campaigns apart.
Direct traffic
Direct traffic is where analytics files visits whose source it could not identify. A few typed your address in; most came from somewhere the measurement lost.
Google Analytics 4
Google Analytics 4 is the free tool recording what people do on your website and app, built around events rather than around page views and sessions.