Tracking

Source and medium

Source is where a visit came from and medium is the kind of route. The pair is what most reports group by, and it is easier to break than to read.

Also called source / medium, traffic source, session source

SiiteWritten by SiiteUpdated September 10, 2026

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?

Source names the specific place, such as google, facebook or a partner site. Medium names the kind of route, such as organic, cpc, referral or email. Google organic and google cpc share a source and differ in medium, which is exactly why the two halves are always read together.

Why is so much traffic recorded as direct?

Because direct is where Analytics puts every visit it could not classify. Links opened inside a messaging app, links from a document, a scanned code and untagged email all land there. A large direct figure is usually a measurement gap rather than a crowd of people typing your address.

What does referral mean?

Somebody arrived by clicking a link on another website, and that site is recorded as the source. It is worth checking for your own domain appearing in the referral list, because a self-referral means a visit was broken in the middle and counted twice.

Can I change how a visit is classified after the fact?

No. The classification is written when the session starts and it is not editable afterwards, so a tagging mistake is permanent for the traffic that already arrived. This is the reason to agree the naming before anybody builds a link, rather than tidying the report later.

Why do Analytics and Facebook disagree about the same visit?

They are counting different things. Analytics records what the browser told it on arrival. The ad platform records everybody it showed the advert to who later converted, within its own window and using its own data. Neither is lying, and the gap between them is normal rather than a fault to fix.

Should I tag links between my own pages?

Never. Tagged links always override whatever Analytics had already recorded, so a tagged internal link rewrites a visit in progress and credits your own banner instead of the search that brought the person in. Tag only links that arrive from somewhere else.

What are channel groups?

A layer of tidying that Analytics applies on top of the pair, so a hundred combinations become a dozen readable buckets such as Organic Search or Paid Social. Useful for a quick view, and worth abandoning as soon as a number looks wrong, because the underlying pair is where the answer usually is.
Want this handled for you?

Let us take source and medium off your desk.

The guides and these pages are yours to use for nothing. When you would rather have the work done properly than done by you, tell us what is already in place and we will put a proposal together.

or call +63 2 5323 8174