# Sources and channels

> How each visit gets its channel, its source and its campaign, from UTM tags, an ad click id or the site that linked to yours.

The **Sources** card says where your visits came from, three ways: by channel, by source and by campaign. This page explains how CentPath decides each.

## The first page decides

When a visit starts, CentPath reads three things from its first page: the UTM tags in the page's address, an ad click id, and the site that linked to yours, as the browser reports it. They set the visit's channel, source and campaign, which stay the same for the whole visit, its sales included.

A UTM tag wins over the linking site for the source and the campaign. For the channel, only the `utm_medium` values in the table below, or an AI assistant in `utm_source`, win: any other `utm_medium`, like `newsletter`, leaves the channel to the linking site, or `direct` when there is none. To tag your links, see [Track campaigns with UTM tags](https://centpath.app/docs/utm-campaigns).

Known bots and automated browsers are never counted, and visits from cloud servers can be left out: see [Bot filtering](https://centpath.app/docs/bot-filtering).

## Channels

Every visit falls into one of seven channels:

| Channel | Counted when |
|---|---|
| `organic` | A search engine linked, like Google, Bing, DuckDuckGo or Ecosia, or `utm_medium` is `organic`. |
| `paid` | `utm_medium` is `cpc` or `ppc`, or holds the word `paid`, or the address carries an ad click id from Google, Microsoft Advertising, TikTok, X or LinkedIn. [The script](https://centpath.app/docs/script#campaign-tags-and-ad-click-ids) lists them. |
| `social` | A social site linked, like Facebook, Instagram, X, LinkedIn, Reddit, YouTube or Hacker News, or `utm_medium` is `social`. |
| `ai` | An AI assistant linked, like ChatGPT, Perplexity, Claude, Gemini or Copilot, or `utm_source` names one. |
| `email` | A webmail linked, like Gmail or Outlook, or `utm_medium` is `email` or `e-mail`. |
| `referral` | Any other site linked, or `utm_medium` is `referral`. |
| `direct` | Nothing did: an address typed or bookmarked, a link in an app that doesn't say where it came from, or a visit back from your own site or a payment page. |

The rules go in this order, and the first that matches wins: `paid`, an AI assistant in `utm_source`, the other `utm_medium` values, then the linking site.

Facebook and Instagram add `fbclid` to every link they open, from an ad or a post alike, so it doesn't make a visit `paid`: their visits count as `social` unless your ad's link carries a `utm_medium` like `cpc`.

A visit that comes back from a payment page, like Stripe's or PayPal's checkout, is the same visit going on, so the payment page is never its source.

## Sources

A visit's source is the first of these it has:

1. Its `utm_source`, in lower case, like `newsletter`.
2. The linking site's host name, with a leading `www.`, `m.` or the like left off, so one site is one row. A short link counts as its site: `t.co` as `x.com`, `youtu.be` as `youtube.com`.
3. The ad platform its click id names, like `google.com` for a Google Ads click that sent no linking site.
4. `direct`, when there is none of these.

A link from another subdomain of your domain, like `blog.example.com` to `example.com`, counts as a source of its own. A link from your own site, with or without `www.`, doesn't.

## Campaigns

**Campaigns** lists each `utm_campaign`, as written: `Spring` and `spring` are two campaigns. A visit with no campaign tag isn't in this tab.

To see what each campaign cost against what it brought, enter its spend in **Setup** → **Advanced** under **Ad spend**: see [Add your ad spend](https://centpath.app/docs/ad-spend).
