Traffic sources explained: how each visit gets its channel
Every visit's source comes from two clues: the referrer the browser reports and any UTM parameters in the landing URL. This guide shows exactly how Linqry turns those clues into channels, why so much traffic ends up as direct, and what you can do about it.
Updated · 8 min read
The two clues behind every source report
When someone lands on your site, the page itself holds two clues about where they came from. The referrer is the address of the page that sent them, which the browser exposes as document.referrer. UTM parameters are tags in the landing URL, such as ?utm_source=newsletter&utm_medium=email, which you add to links you control. Every source, channel and campaign report starts from these two clues, in Linqry and in other analytics tools.
The tracker sends the referrer with the first page view of each page load, and only when it points to another hostname. The server then drops referrers from your registered domain, its subdomains and the additional hosts in your site settings, so moving between your own pages and subdomains never shows up as a referral. Route changes in a single-page app never carry a referrer at all. UTM tags are read from the URL of each event, which in practice means the landing page.
How a visit gets its source
Linqry groups a visitor's page views into visits. A visit ends after 30 minutes without a page view, and also at midnight UTC, when visitor IDs rotate. Source reports use the first referrer and the first UTM source, medium and campaign recorded in a visit, so every page of the visit is filed under the source it arrived from, even though later pages don't carry a referrer of their own.
Events inherit the source too. When a signup or purchase is sent from the browser, Linqry copies the visit's referrer and UTM tags onto it, so a purchase three pages after landing is credited to the campaign that brought the visitor. If a visit picks up a second source part-way through, events after that point carry the newer one (see internal tags below).
In the Referrer tab, referring sites are grouped by domain with a leading www. removed, so www.google.com and google.com are one row. Other subdomains stay separate: m.facebook.com and l.facebook.com are two rows, although both count as Social. Visits without a referrer appear as (none).
Linqry's channel rules
The Channel tab of the dashboard's sources card, and the donut beside it, put each visit into one of six channels. The rules are checked in this order, the first match wins, and matching ignores case:
| Order | Channel | A visit lands here when |
|---|---|---|
| 1 | Paid | utm_medium is cpc or starts with paid (paid-social, paid_search), or utm_source is google_ads |
| 2 | utm_medium is email, or utm_source contains mail (mailchimp, gmail) | |
| 3 | Social | utm_medium is social, or the referrer's domain contains twitter, facebook, instagram, linkedin, reddit, tiktok, youtube, pinterest or threads, or is x.com or t.co or one of their subdomains |
| 4 | Search | The referrer's domain contains google, bing, duckduckgo, yahoo, yandex or baidu |
| 5 | Referral | Any other referrer |
| 6 | Direct | No referrer, and no UTM value that matched a rule above |
Four consequences are worth knowing before you read the donut:
- UTM rules beat referrer rules. A visit tagged
utm_medium=emailis Email even if it arrives with a Google referrer, because Paid, Email and the medium half of Social are checked before Search and Referral. - Only a few mediums steer the channel.
cpc, mediums starting withpaid,emailandsocialmap to channels. Any other medium, such asqr,print,affiliate,referralorpodcast, leaves the decision to the referrer, and with no referrer the visit is Direct. A QR-code visit taggedutm_medium=qrtherefore sits in Direct on the donut, while the UTM Source and UTM Campaign tabs still show it by name. - Domain rules match part of the name. Any domain containing
googlecounts as Search, including Google's mail and document products, and the same goes foryahoo. Tag the links you send by email withutm_medium=emailso the Email rule catches them first. - Everything else is Referral, by name. A forum, a partner's blog, a newsletter's web archive or an AI assistant that passes a referrer all land in Referral and are listed by domain in the Referrer tab.
Example: how nine visits are classified
| How the visitor arrived | Referrer | UTM tags | Channel |
|---|---|---|---|
| Clicked a Google result | google.com | none | Search |
| Clicked a LinkedIn post | linkedin.com | none | Social |
| Clicked a Facebook ad | facebook.com | utm_medium=paid-social | Paid |
| Clicked a tagged newsletter link | anything or nothing | utm_medium=email | |
| Clicked an untagged link in a mail app | none | none | Direct |
| Followed a link in a forum thread | forum.example.org | none | Referral |
| Scanned a flyer's QR code | none | utm_source=flyer&utm_medium=qr | Direct, and flyer in the UTM Source tab |
| Opened a link shared in a group chat | none | none | Direct |
| Typed your address | none | none | Direct |
What direct traffic really contains
Direct is the bucket for visits that arrived without a usable clue. People typing your address or using a bookmark are part of it, but often not the biggest part. A visit is also counted as Direct when:
- The link was opened outside a web page. Links in mail apps, chat apps, PDFs, slide decks and many mobile apps often arrive without a referrer. People sometimes call this dark social: the share happened, but its trail didn't survive.
- The linking site withheld the referrer, with
rel="noreferrer"on its links or aReferrer-Policy: no-referrerheader. - The visit went from HTTPS to HTTP. Under the default browser policy, a secure page sends no referrer to a plain HTTP page, so any part of your site still served over HTTP loses its sources.
- The referrer wasn't a web address. Linqry keeps only referrers that start with
http://orhttps://and discards anything else, such as an app identifier. - The landing page didn't run the tracker. If the first page someone sees lacks the snippet, their first recorded page view is the second page, whose referrer is your own site. The original source, UTM tags included, is lost.
- A redirect dropped the query string. Redirects that rebuild the URL without it (HTTP to HTTPS, bare domain to
www, an old path to a new one) silently remove the UTM tags. - The medium didn't match a rule. A tagged visit with an unmapped medium and no referrer is Direct in the Channel view, as shown above.
So a large direct share isn't proof that people know your brand. It usually points at untagged links, a landing page without the snippet, or channels that strip referrers. The direct traffic glossary entry has more examples.
Referrer policies: why you see sites, not pages
Browsers decide how much of the referring address to share, following a rule called the referrer policy. When a site doesn't set one, current browsers apply strict-origin-when-cross-origin: a link from one site to another sends only the origin, such as https://news.example.org/, never the article's path or query string, and nothing at all from HTTPS to HTTP.
That's why referrer reports, in Linqry and elsewhere, list sites rather than individual posts or threads. When you need to know which post or placement sent people, tag the link or give each placement its own short link. The page that links to you controls the policy; your own site's policy only changes what your pages send to others.
How UTM parameters take over
UTM tags exist because referrers are unreliable. They travel in the URL, so they survive mail apps, QR codes and stripped referrers alike. In Linqry:
- They're read from the landing URL automatically. All five tags are stored.
utm_sourceandutm_campaignhave their own tabs on the sources card,utm_mediumdecides the channel and shows on each visit's timeline, andutm_termandutm_contentare stored but don't appear in reports today. - They name the whole visit. Tags on the landing page become the source of every later page view and event in that visit.
- Internal tags rewrite the visit. Because reports take the first value of each tag recorded in a visit, a tagged link between your own pages can change the channel of a visit that started elsewhere. A visitor who arrives from Google and then clicks a banner tagged
utm_medium=emailcounts as Email for the whole visit, and events after the click carry the banner's tags. Keep UTM parameters off internal links. - Values are case-sensitive in tables.
Newsletterandnewsletterare separate rows in the UTM tabs, even though the channel rules ignore case.
The UTM parameters guide covers a naming convention that keeps those tables clean.
Where to read sources in Linqry
- Sources card on the dashboard: tabs for Channel, Referrer, UTM Source and UTM Campaign. The Referrer and UTM tabs list the top 10 by visitors. Hovering a channel shows its top referring domains, and its revenue when there is any.
- Filters: the Referrer and UTM Source filters apply to the whole dashboard, including goals, funnels and revenue. To look at one campaign, add
utm_campaign=and the campaign's value to the dashboard's query string, as in?days=30&utm_campaign=spring-sale. - Realtime: the top sources of the last 30 minutes, useful while a post or newsletter is going out.
- Users: each visit's timeline shows the referrer domain and the source, medium and campaign tags of every page view and event.
- Insights: revenue and conversion by referrer and by UTM source, so you can rank sources by customers rather than clicks.
Server-side events only have the source you send
Events your backend sends to the API don't come from the visitor's browser, so they have no referrer or landing URL unless you include them. A server-side event carries exactly the url and referrer your server sends: UTM tags in that URL become its tags, the referrer becomes its referring domain, and the same channel rules apply. Send neither and the event is Direct. The server-side revenue guide shows how to keep a visitor's landing URL until they pay, and the attribution models guide explains which touch that credits.
Five ways to shrink direct traffic
- Tag every link you control: newsletters, social profiles, PDFs, slides, QR codes and partner links. The UTM builder or campaign short links make it quick, and the guide to measuring marketing campaigns has a naming plan.
- Use the mediums Linqry maps,
email,social,cpcorpaid-…, wherever they fit. Keep other mediums for offline and partner work, and read those in the UTM tabs. - Install the snippet on every page people land on, including the blog, docs, help center and campaign pages on subdomains.
- Check that redirects keep the query string. Click a tagged link and confirm the tags are still in the address bar when the page loads.
- Serve every page over HTTPS so secure sites can pass a referrer to you.
Frequently asked questions
Why is my direct traffic so high?
Usually because many visits arrive without a referrer: links opened from mail and chat apps, documents, QR codes and some mobile apps, plus visits whose UTM tags were dropped by a redirect or that landed on a page without the snippet. Tag the links you control and check your landing pages before concluding that people typed your address.
Does Linqry use the first or the last source of a visit?
The first. Source reports use the first referrer and the first UTM source, medium and campaign recorded in a visit, and events in the visit carry that source. A tagged internal link can still change it part-way, which is why internal links should never carry UTM parameters.
Can I see which article or post sent a visitor?
Rarely from the referrer alone, because browsers send only the referring site's origin by default. Tag the link with UTM parameters or create a short link for each placement, and the visit is identified by its tags instead.
Can I change the channel rules?
No. Every site uses the same rules. You decide where tagged visits land by choosing mediums: cpc or paid-… for Paid, email for Email and social for Social.
Sources
Related
Visits an analytics tool can't attribute to any source: no referrer and no campaign tags. Typed URLs and bookmarks, but also many untagged links.
The address of the page a visitor came from, sent by the browser when they follow a link. Analytics tools use it to report traffic sources.
UTM parameters are tags you add to the end of a link, like ?utm_source=newsletter&utm_medium=email, so your analytics can tell which campaign sent a visitor. They only work if every link is tagged the same way, so the real job is picking a naming convention and sticking to it.
Build UTM-tagged links, shorten them, print QR codes and see clicks per link next to the traffic they sent.
Analytics tools disagree because each one decides differently who counts as a visitor, which requests are real, and which day an event belongs to. A gap between two tools is normal and usually explainable; the useful question is whether each tool is consistent with itself over time.
See your own funnels and revenue by channel
No card required · 30-day trial · No cookies