Say you sell an online course. On Tuesday your newsletter goes out, on Wednesday you post on LinkedIn, and on Thursday a podcast you guested on is published. By Friday, sales are up, and you open your analytics to see which of the three worked. The biggest source of sales is “Direct”.
That moment is what website traffic source attribution is about. It answers two questions that sound like one: where did this visit come from, and which source deserves the credit for the sale?
By the end of this guide you’ll know how analytics detects a source, how sources become channels, why so much traffic lands in Direct, where AI assistants fit, how bots and spam get in the way, and what a cookieless tool can and can’t attribute. Each section links to a post that goes further.
Key takeaways
- Every visit’s source comes from three signals: a tag on the URL, the referrer the browser sends, or an ad platform’s click ID. A visit with none of them is Direct.
- Channels group sources into answers you can act on, and a useful grouping gives AI assistants a channel of their own instead of hiding them in Referral or Direct.
- Direct only means a visit arrived with no evidence of where it came from, and tagging every link you control is the cheapest way to shrink it.
- Bots and referrer spam distort the sources report more than any other, so they have to be removed before visits are counted.
- Multi-touch attribution needs an identifier that lasts for weeks. A cookieless tool credits each conversion, and its revenue, to the source of the visit it happened in.
What is a traffic source?
A traffic source is the label stamped on a visit when it starts: Google, your newsletter, LinkedIn, ChatGPT, or nothing at all.
Your analytics never sees where somebody was before they arrived. It infers the source from what the page request carries, which is surprisingly little: at most a referrer, the page address with any parameters added to it, and the browser’s user agent.
The inference happens once per visit, at the start. If a visitor arrives from your newsletter and reads five pages, that’s one visit from the newsletter, not five.
In FunnelSights a visit ends after 30 minutes without activity, and it keeps the source it started with until then. Moving between your own pages doesn’t change it, and neither does clicking a second tagged link within the same visit.
How does analytics know where a visit came from?
There are three places a source can come from, and every analytics tool checks them in some order. FunnelSights checks them in this one.
- TagA utm_source on the landing URL wins outright. Without one, a source or ref parameter is read instead.
- ReferrerOtherwise the referring site’s host is folded into a known name, so google.co.uk and www.google.de are both Google.
- Click IDNo referrer, but a gclid, msclkid, fbclid or similar on the URL? The ad network that issued it becomes the source.
- DirectNothing to go on, so the visit is recorded as Direct.
Order matters. A tag somebody wrote on purpose beats a referrer the browser happened to send.
Referrers
The referrer is the address of the page that linked to yours. The browser sends it in the Referer header, and scripts can read it as document.referrer.
It’s the one signal you get for free, and it’s thinner than it used to be. Modern browsers default to a policy called strict-origin-when-cross-origin, so a link from another site sends only that site’s origin (https://news.example.com/, not the article’s path). A link from an HTTPS page to an HTTP one sends nothing at all.
Sites can tighten that further with their own Referrer-Policy header or a rel="noreferrer" attribute on links. Many apps send no referrer whatsoever.
Raw referrers are messy, too. Google alone arrives from dozens of hostnames, so FunnelSights folds them into one source using the open-source referer-parser database plus a hand-maintained list of additions. Google ends up as one row rather than thirty.
A referrer from your own hostname isn’t a source, because someone moving between your own pages hasn’t arrived from anywhere. A different subdomain is a different host, though. If your blog lives on blog.example.com, links from it to example.com show up as referrals from the blog.
UTM tags
UTM parameters are labels you add to a link yourself: utm_source, utm_medium, utm_campaign, utm_term and utm_content. Because you wrote them, they beat whatever the referrer says.
They also survive the places that strip a referrer, such as a mail app, a PDF or a QR code on a poster. And they’re the only way to tell two links from the same site apart. A referrer can say a visit came from LinkedIn, but only a tag can say it came from Wednesday’s post rather than your company page.
Back to the course launch: if the newsletter links had carried utm_medium=email, a good part of that “Direct” would probably have shown up as Email. The UTM parameters guide covers each parameter, a naming convention that holds up, and the mistakes that quietly split your reports.
Some platforms and directories use shorter parameters for the same job. When there’s no utm_source, FunnelSights reads source and then ref. All three are matched against the same list of known names, so ?utm_source=ig and a referral from instagram.com land on one Instagram row.
Click IDs
Ad platforms that auto-tag their links add a click identifier instead of UTM parameters. Google Ads uses gclid (often gbraid or wbraid on iOS), Microsoft Ads uses msclkid, Meta uses fbclid, LinkedIn ads use li_fat_id and X uses twclid.
Auto-tagged clicks carry no utm_medium, so a tool that only reads UTMs files paid search as organic. FunnelSights treats a Google click ID on a Google visit, or msclkid on a Bing one, as Paid Search, and li_fat_id as Paid Social.
fbclid is different. Facebook adds it to ordinary shared links too, so it names the source without proving the click was paid.
Click IDs also rescue visits that lose their referrer, which is common in in-app browsers and on iOS. When a click ID arrives with no referrer, the network it names becomes the source instead of the visit falling into Direct.
How do sources become channels?
A list of sources gets long fast. Channels group them into a handful of answers you can act on: search, social, email, paid, referral and direct.
FunnelSights follows Google Analytics 4’s default channel definitions, so the groups mean what most marketers already expect. There’s one deliberate addition: AI assistants get a channel of their own.
The rules run in order and the first match wins, paid before organic. For example, a search engine with a paid medium such as cpc is Paid Search, and the same engine with no medium is Organic Search.
| What the visit carries | Channel | |
|---|---|---|
| Search result | A referrer from google.com, bing.com, duckduckgo.com and the like | Organic Search |
| Search ad | A gclid or msclkid, or a search source tagged utm_medium=cpc | Paid Search |
| Social post | A referrer from linkedin.com, reddit.com, instagram.com and the like | Organic Social |
| Social ad | A social source with a paid medium, or li_fat_id | Paid Social |
| Newsletter | utm_medium=email, or utm_source=newsletter | |
| Assistant citation | A referrer from chatgpt.com, claude.ai or perplexity.ai, or a utm_source naming the assistant | AI Assistants |
| Blog or directory link | Any other external referrer | Referral |
| Bookmark, typed address, stripped link | Nothing | Direct |
Simplified. The full rule set also covers cross-network campaigns, shopping, video, display, affiliates, audio, SMS and push notifications, in GA4’s order.
Two practical lessons follow from rules like these. First, the medium you write in a UTM tag decides the channel. Say one teammate tags a campaign paid-social and another tags the next one social-paid: they can land in two different channels, because only the first starts with “paid”.
Channel rules ignore case, but the UTM tables show values exactly as they were sent, so Email and email appear as two rows. Second, a channel report is only as good as the source list behind it, which is why that list is maintained data rather than something you configure.
Why is so much traffic direct?
Direct traffic is any visit that arrived with no tag, no referrer and no click ID. Some of it really is direct: a bookmark, a typed address, a browser’s autocomplete.
A lot of it, though, is traffic whose origin was stripped on the way. Think of links opened from mail and messaging apps, PDFs and slide decks, HTTPS-to-HTTP hops, sites that send no referrer by policy, and many AI assistant apps. People sometimes call this “dark traffic”, because it came from somewhere real but nothing in the request says where.
Two smaller causes are easy to misread. If a visitor leaves a tab open for more than 30 minutes and then clicks one of your own links, a new visit starts with your own site as the referrer. That isn’t a source, so the visit is Direct.
The other is time. A customer who first found you through an ad last week and types your address today is, today, Direct.
Nobody can recover the origin of a stripped visit after the fact, in any tool. What you can do is shrink the share that arrives stripped, mostly by tagging every link you control in email, documents, social bios and print. What is direct traffic in analytics? goes through each cause and how to fix it.
Where do AI assistants fit?
More and more people find websites through answers rather than result pages. When an assistant cites your page and someone clicks the link, that visit has a real origin.
It also tends to behave differently from search traffic. The visitor has usually read a summary already and arrives with a narrower question. Filed under Referral beside hundreds of blogs, or lost in Direct, that visit is effectively invisible.
FunnelSights recognises visits from a maintained list of assistants and reports them as their own AI Assistants channel. The list covers ChatGPT, Claude, Perplexity, Google Gemini, Microsoft Copilot, DeepSeek, Grok, Meta AI, Mistral, Phind, Poe and You.com.
Recognition works like any other source: the assistant’s domain as the referrer, or a utm_source naming it. ChatGPT, for one, commonly adds utm_source=chatgpt.com to the links it cites, so some of its traffic is still recognised when the referrer is missing.
The limit is the same as for every other source. An assistant app that opens links with no referrer and no tag produces a visit nothing can identify, so it lands in Direct. Answers inside a search engine, such as Google’s AI Overviews, arrive with the search engine’s own referrer and count as organic search.
None of this uses a language model. It’s referrer classification against a list. How to track traffic from ChatGPT and other AI assistants covers what the channel can and can’t see.
How do bots and referrer spam distort your sources?
Automated traffic does most of its damage in the sources report. A crawler with no referrer inflates Direct, and a spam domain that fakes a referrer creates a source row that never sent anybody.
Both have to be removed before visits are counted. If you filter them out afterwards, every total, bounce rate and conversion rate has already been calculated with them in.
FunnelSights does this at ingest. Each request is checked against a catalogue of named bots (search engines, AI crawlers, SEO tools, link previewers, uptime monitors, headless browsers and HTTP libraries), then against the uap-core crawler database. A request with no user agent counts as a bot too.
Bots never reach your human reports. Their pageviews are counted separately, by name, on a Bots report, so you can see how much of your site machines are reading. Referrer spam is checked against the Matomo referrer-spam list, subdomains included, and dropped outright.
User-agent checks only catch bots that say what they are. A script that sends an ordinary browser’s user agent and runs JavaScript looks like a person at that layer, so a sudden spike from one source deserves a second look. Bot traffic and referrer spam explains the filters, their limits, and how to spot what slips through.
What are the main attribution models?
Detecting a visit’s source is the easy half. Attribution in the marketing sense asks which of several touches deserves credit for a conversion.
Go back to the course launch. Imagine one buyer read the newsletter on Tuesday, saw the LinkedIn post on Wednesday, and bought on Friday after typing your address. Each model below gives that sale to someone different.
| Who gets the credit | Needs to recognise a person across visits? | |
|---|---|---|
| First touch | The first source that ever brought the person | Yes |
| Last click | The last source before the conversion, usually skipping Direct visits | Yes, to look past a Direct visit |
| Linear | Every touch, equally | Yes |
| Position-based | Mostly the first and last touches, the rest shared across the middle | Yes |
| Time decay | More to the touches closest to the conversion | Yes |
| Data-driven | Weights learned from many converting and non-converting paths | Yes, plus a lot of data |
| Same visit | The source of the visit in which the conversion happened | No |
Google Analytics 4 now offers data-driven and last-click models. First-click, linear, position-based and time-decay were retired in 2023.
Every model except the last one depends on recognising the same person on different days. That means a durable identifier (a cookie or a login) and, in many places, permission to set it.
Even then the path is partial. People switch devices, clear cookies and decline banners, and the ones who decline aren’t a random sample, as the consent analytics gap explains. A multi-touch model can give you a precise-looking split of an incomplete path, and the precision is the misleading part.
What can a cookieless tool attribute?
FunnelSights stores nothing on the visitor’s device. A visitor is a hash of the user agent, IP address and domain, under a salt that rotates every 24 hours and is deleted after 48.
So visitor counts are per-day: someone who returns on another day is a new visitor, and a weekly total counts them twice. How cookieless visitor counting works explains the mechanism. For attribution it means one thing: credit is assigned per visit.
That gives you four things:
- The source, channel, referrer and full UTM set of every visit, with AI assistants as their own channel.
- Goal conversions credited to the visit they happened in. The Sources report shows visits, conversions and conversion rate for your primary goal beside every source, channel, campaign, UTM source and UTM medium.
- Revenue credited the same way, with each row carrying the revenue recorded during its visits in your site’s currency.
- Any report narrowed to one source or campaign, such as the landing pages a campaign sends people to, or what visitors from AI assistants read next.
And it gives up three:
- Multi-day paths. In the course example, the Friday purchase is credited to Friday’s Direct visit, and the newsletter gets credit only for the visit it sent on Tuesday.
- First-touch and multi-touch models, for the same reason: no identifier survives the day to join the touches together.
- Cross-device journeys, which cookie-based tools mostly miss as well.
This is a real trade, and no setting changes it. Same-visit attribution still answers the question most small teams ask: which campaigns, posts and referrers send visits that convert.
If your work depends on per-person paths across weeks, a tool built around identifiers is the right instrument, and what you lose leaving Google Analytics is worth reading first. If not, how to measure marketing campaigns without cookies shows how to get the most out of same-visit attribution.
How to review your traffic sources each week
Attribution data is most useful when you read it regularly and briefly. This routine takes about 15 minutes.
- Compare the channel mix with last week, and explain the channel that moved most before anything else.
- Rank sources by conversions, not visits. A source with a fifth of the traffic and half the sign-ups is the one to invest in.
- Read Direct as a share of visits. If the share is creeping up, look for links that went out this week without tags.
- Scan the referrers table for new names, like a newsletter that mentioned you, a forum thread or a directory listing. They’re often worth a thank-you or a follow-up.
- Open the AI Assistants channel. Check which assistants sent visits, which pages they landed on, and whether those pages answer the question the visitor probably came with.
- Check the campaign table for near-duplicates such as Spring-Sale and spring_sale, and fix the convention before next week’s links go out.
- If one source spiked overnight with a near-total bounce rate and no conversions, check the Bots report and the landing pages before you celebrate.
Illustrative numbers, not customer data. Read the shape from week to week rather than the absolute values.
Conversions only mean something once you’ve picked a goal, so start with how to choose conversion goals if you haven’t. And when a source looks promising, follow it past the landing page: a conversion funnel shows where its visitors stop.
Where does FunnelSights fit?
FunnelSights handles the detection half of attribution carefully and is plain about the modelling half. Sources come from tags, referrers and click IDs, channels follow GA4’s definitions with AI assistants given their own, and bots and spam are removed before anything is counted.
Every visit carries its conversions and revenue, and reports update every 15 minutes. You can explore the Sources and AI views with sample data on the demo dashboard, read how a pageview becomes a number on how it works, or install the script with the getting-started guide.
Frequently asked questions
What is traffic source attribution?
It is working out where each visit to your website came from, and which sources deserve credit for conversions. Detection reads the signals a visit arrives with: UTM tags, the referrer and ad click IDs. An attribution model then decides how credit is shared when someone visited more than once before converting.
What is the difference between a source, a medium and a channel?
A source is the specific origin, such as Google, a newsletter or ChatGPT. A medium is the type of traffic, such as organic, cpc or email, usually set in a UTM tag. A channel is a group with a shared meaning, such as Paid Search or Email, built by rules from the source and medium together.
Why is so much of my traffic direct?
Direct means the visit arrived with no referrer, no UTM tag and no click ID. Bookmarks and typed addresses are part of it, but much of it is traffic whose origin was stripped: mail and messaging apps, documents, assistant apps, and sites whose referrer policy sends nothing. Tagging every link you control is the most effective fix.
Can analytics show traffic from ChatGPT?
Yes, when the visit carries evidence of it. A click from ChatGPT in a browser usually sends chatgpt.com as the referrer, and many of the links it cites carry utm_source=chatgpt.com. FunnelSights reports these, and visits from the other assistants on its list, as an AI Assistants channel. A click from an app that strips both arrives as Direct in any tool.
Do UTM parameters override the referrer?
In most analytics tools, yes. In FunnelSights a utm_source, or a source or ref parameter when there is no utm_source, always beats the referrer the browser sent. That is useful, and it also means a wrong tag misattributes a visit with complete confidence.
Does cookieless analytics support attribution?
It supports attribution within a visit: each visit’s source, and the conversions and revenue that happened during it. It cannot join visits made on different days, so first-touch and multi-touch models are out of reach. That is the cost of having no identifier that lasts beyond a day.
Which attribution model should a small business use?
Use the simplest model your data can support honestly. If you can’t reliably recognise people across days, crediting the visit in which the conversion happened is a defensible default, and comparing campaigns on it is still useful. Multi-touch models are only as good as the path they can see, and that path is usually incomplete.
In this series
- UTM parameters: best practices and a naming convention that worksWhat each of the five UTM parameters is for, a naming convention that keeps your reports clean, and the common mistakes that split one campaign into five rows.
- How to track traffic from ChatGPT and other AI assistantsWhy visits from ChatGPT, Claude and Perplexity often hide in Direct or Referral, how analytics recognises them, where that stops working, and what to do with the numbers.
- How to filter bot traffic and referrer spam out of your analyticsWhat bots and fake referrers do to your numbers, why they need filtering before anything is counted, and how to recognise the automated traffic that still gets through.
- What is direct traffic in analytics, and how do you reduce it?Direct traffic is rarely people typing your address. Where it comes from, why some of it can’t be recovered, and the steps that shrink the rest.
- How to measure marketing campaigns without cookiesA step-by-step way to measure campaigns with UTM tags, goals and revenue per visit, and a clear look at what you give up without an identifier that lasts beyond a day.
