fivebar

Sources and campaigns

Copy page
View Markdown
Open with
Connect MCP
Claude Mistral Vibe Cursor VS Code

Each visit is counted with where it came from: the site that linked to it, or the tags on the link.

Google is one source however a visit reached it, and sources are grouped into Google Analytics’ channels, AI Assistants among them, so your figures line up with an ad platform’s. Your own campaigns are counted by the utm_ tags on your links. Sources and channels need nothing from you. An app connected over MCP has ready-made questions for AI traffic and campaigns.

The Channels view for djangodocs.dev: Direct, Organic Search, AI Assistants, Referral and Organic Social, each with its pageviews by day and its share

Sources

The Sources tab names where each visit came from. Google, Bing, DuckDuckGo, Facebook, Reddit, ChatGPT and about 150 others are named whichever of their addresses a visit came from, so Google counts google.com, google.co.uk and the Google app as one. Anywhere else is named by its host, such as news.example.org.

Direct is a visit with no referrer and no tag: an address typed or pasted, a bookmark, a link in an email or an app, or a link from a site that sends no referrer.

Referrers

The Referrers tab has the host each visit came from, without www., such as google.co.uk: the detail behind each source. Only the host is used, which is usually all a browser sends. Moving from one page of the site to another isn’t a referral, whether the page loads or a single-page app moves to it, so a site is never a source of its own visits.

Channels

The Channels tab groups your sources into the channels Google Analytics uses, so your figures line up with an ad platform’s. Organic Search is Google, Bing, DuckDuckGo and the other search engines, Organic Social is Facebook, Reddit, LinkedIn and the rest, and AI Assistants is ChatGPT, Claude, Perplexity, Gemini, Copilot and the other assistants. Click one to filter the dashboard by it.

A visit’s channel comes from its source and its utm_medium and utm_campaign tags, whatever their case. It’s worked out as your stats are read rather than when they’re counted, so every day already counted has its channels too. The channels are tried in this order, and the first that fits is the visit’s:

ChannelA visit
DirectWith no referrer, and no source or medium tag, or with no medium and a source tag of exactly Direct
Cross-networkWith a campaign containing cross-network
Paid ShoppingFrom a shop, such as Etsy, or with a shopping campaign, and with a paid medium
Paid SearchFrom a search engine, with a paid medium
Paid SocialFrom a social network or a messaging app, with a paid medium
Paid VideoFrom a video site, such as YouTube, with a paid medium
DisplayWith a medium of display, banner, expandable, interstitial or cpm
Paid OtherWith any other paid medium
Organic ShoppingFrom a shop, or with a shopping campaign, such as summer-shop
Organic SocialFrom a social network or a messaging app, or with a medium of social, social-network, social-media, sm, social network or social media
Organic VideoFrom a video site, or with video in its medium
AI AssistantsFrom an AI assistant
Organic SearchFrom a search engine, or with a medium of organic
EmailFrom webmail or a Mailchimp link, or with email, e-mail, e_mail, e mail or newsletter in its source or medium
AffiliatesWith a medium of affiliate
AudioWith a medium of audio
SMSWith a source or a medium of sms
Mobile Push NotificationsWith a medium ending push, or containing mobile or notification, or with a source of firebase
ReferralFrom any other site, or tagged with a source and no medium, or with a medium of referral, app or link
UnassignedWith a medium none of the above knows, such as qr

A shopping campaign has shopping in its name, or shop at its start, after an e or after anything but a letter: summer-shop and eshop are shopping campaigns, and workshop isn’t.

Some sites count where you might not expect: GitHub, Stack Overflow, Medium, WordPress, Blogger, Slack, Teams, Discord, Tripadvisor and Yelp are social networks, Google News is a search engine, and Wikipedia and Substack are Referral.

How paid traffic is told apart

By the utm_medium tag. A medium containing cp, such as cpc or cpm, or one of ppc, retargeting, ad and ads, or starting paid, is paid: from a search engine it’s Paid Search, from a social network Paid Social. Tag your ads’ links, for example with utm_source=google&utm_medium=cpc.

An ad whose link has no source tag and no utm_medium is told apart by the click ID its platform adds to it, so auto-tagged ads need nothing from you:

Click IDCounts as
gclid, gbraid, wbraidGoogle, with a medium of cpc: Paid Search
dclidGoogle, with a medium of display: Display
msclkidBing, with a medium of cpc: Paid Search
ttclidTikTok, with a medium of cpc: Paid Social
li_fat_idLinkedIn, with a medium of cpc: Paid Social
twclidX, with a medium of cpc: Paid Social

Only the fact of a click ID is read. The ID itself identifies one click, so it’s never kept. Tags you add win over a click ID. Facebook and Instagram add fbclid to every link out, ads or not, so it only names Facebook for a visit that would otherwise be Direct, and never makes one paid: tag Meta ads with a paid medium. A source tag such as adwords or fbads names Google or Facebook, not an ad, so it’s paid only with a paid medium beside it.

Compared with Google Analytics

  • Google Analytics calls its channel AI Assistant, and gives it a visit whose referrer is on its own list of assistants, which it doesn’t publish. fivebar’s AI Assistants goes by the source alone, so a link tagged utm_source=chatgpt.com, as ChatGPT tags its links, counts there too. In both, Google’s AI Overviews and AI Mode are Organic Search.
  • ad and ads are paid mediums here, as well as a click ID telling a paid click apart, which is how Google Analytics tells one.
  • A visit from Gmail, Outlook, Yahoo Mail, Proton Mail or a Mailchimp link is Email, where Google Analytics counts it as Referral, and so is one with email or newsletter anywhere in its source or medium, not only one tagged exactly email.
  • A link tagged with a source and no medium, such as utm_source=partner, is Referral, where Google Analytics has it as Unassigned: the source says where the visit came from.
  • DuckDuckGo’s AI chat, duck.ai, is DuckDuckGo, so its visits are Organic Search.

Add tags to a link’s address to say where you put it, and the visits it brings are counted by them:

https://example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=autumn
  • utm_source is the source, in the Sources tab, in place of wherever the visit came from.
  • utm_medium, utm_campaign, utm_content and utm_term are the Campaigns pane’s four tabs: Medium, Campaign, Content and Term.

Tagging with ref

ref is a slightly cleaner, more modern tag for the source, and counts exactly as utm_source does. Many sites, Product Hunt and Ghost blogs among them, already add it to their links:

https://example.com/?ref=newsletter

source works the same way. A link with more than one of them is counted by utm_source first, then ref, then source.

How tags are named

A source tag fivebar knows is counted under its name for that source, in any case: google, fb, yt and chatgpt.com are Google, Facebook, YouTube and ChatGPT, alongside the visits that came from those sites untagged. Any other tag is kept exactly as written, capitals and all, so newsletter and Newsletter are two sources: pick one spelling and stick to it.

Campaign tags are always kept as written. Each tag is cut to 120 characters.

Read visits, not pageviews

Only the first pageview of a visit carries its source, channel and campaign, since the pages after it are reached from the site itself. So for traffic from a source, a channel or a campaign, read visits and visitors rather than pageviews: Filters says what each figure counts.