Analysis
Google documents how to identify Search traffic in analytics and server logs
Google now explains how to identify Google Search traffic by its Referer header. See which values to match, why some visits arrive blank and what to check.
Key takeaways
- Google Search sends only the scheme and host in the Referer header, such as https://www.google.com/, never the path or the search query.
- Google Images and Discover send the same Referer values, so a match tells you Google sent the visit, not which surface it came from.
- If Google visits show up as referral or direct, check custom channel rules, unwanted-referral lists, filters and client-side redirects first.
- Expect analytics sessions and Search Console clicks to differ, and compare their trends rather than their totals.
On this page
To identify Google Search traffic outside Search Console, match the HTTP Referer header on landing-page requests against the Google values listed in Google’s new page on identifying Search traffic (opens in a new tab). The header holds only a Google host, such as https://www.google.com/, so it tells you a visit came from Google but never which query was typed. Google added the page on November 12, 2026, according to its documentation changelog (opens in a new tab).
Google’s changelog describes this as a new page; it does not announce any change in how Search sends traffic. What is new is an official reference you can point to when an analytics set-up, a log pipeline or a redirect is losing Google visits. The same page also explains why your own counts often won’t line up with Search Console.
What Referer values does Google Search send?
Google Search uses the origin referrer policy, so the Referer header (opens in a new tab) carries the scheme and host and drops the path and query string. MDN’s Referrer-Policy reference (opens in a new tab) describes the same behavior: under origin, a page sends only its origin, whatever its full address.
The values Google lists, as of November 2026:
| Where the user clicked | Referer value |
|---|---|
| Google Search on the web | https://www.google.com/ or a local Google domain, such as https://www.google.co.uk/ |
| Google app on Android | android-app://com.google.android.googlequicksearchbox/https/www.google.com when the link opens in a browser tab, otherwise https://www.google.com/ or a local domain |
| Google app on iOS | https://www.google.com/ or a local domain |
Two limits matter for reporting. Google says (opens in a new tab) Discover traffic uses the values of the surface where it was viewed, and services on the same origins, such as Google Images, send the same values. This means a match covers Search, Images and Discover together. For queries, Google points you back to the Performance report in Search Console.
How to match it in server logs
If you read raw logs or run your own analytics, filter on the Referer field and count only requests for landing pages. Google notes (opens in a new tab) that image, CSS and JavaScript requests carry a Referer too, yet it points at your own page rather than at Google.
Here is our example of a pattern that follows Google’s table. It is deliberately broad, so it can also catch lookalike hosts. Test it against your own log format before you rely on it:
^(https?://www\.google\.[a-z.]+/?|android-app://com\.google\.android\.googlequicksearchbox/.*)$
Google’s page lists gclid as a parameter commonly used for ad tagging. Our read: paid clicks from Google can match the same pattern, so setting aside landing requests that carry it is a reasonable first cut at separating ad clicks from organic ones, though it will not be exact.
Why Google visits show up as direct or referral
Even when Google sends the header, the browser or operating system can strip it. Google gives four common cases: private or anti-fingerprinting modes, some browsers when a result opens in another tab, a jump from a phone’s built-in search widget into a separate browser, and people who run privacy add-ons or tight settings. Our read: in most analytics tools, those visits will be counted as direct traffic.
Google’s page and the Analytics help center point to causes you can fix:
- Custom rules in your analytics. Google says (opens in a new tab) most tools sort these values into organic search on their own. If yours does not, check custom channel rules, referral exclusions and filters.
- Unwanted-referral lists in Google Analytics. The Identify unwanted referrals help page (opens in a new tab) says matching events get
ignore_referrer=true, and the referrer is then not shown as a traffic source. Our read: a broad entry that matches a Google domain would hide Search visits, so review that list. - Client-side redirects. If your page forwards visitors with JavaScript or a meta refresh, the browser can report your page as the referrer instead of Google. Check that redirects keep the full query string, so
gclidsurvives, and that none of them sets a tighterReferrer-Policythan your landing page.
If you are reviewing tracking more broadly, our guides to measuring AI referral traffic and a UTM naming convention that holds cover the other channels that tend to leak into direct.
How far apart should analytics and Search Console be?
Expect a gap, because the two tools count different moments. Google explains (opens in a new tab) that Search Console counts the click on the result, and analytics counts nothing until your page has loaded and its tag has fired. Search Console also leaves out Google Ads clicks.
Google’s guide to using Search Console with Google Analytics (opens in a new tab) adds more reasons: consent opt-outs, time zones (Search Console uses Pacific Time), canonical URLs, non-HTML files such as PDFs, and bot filtering. It says small differences can be ignored and the trends should follow the same pattern.
That gives you a workable rule. Compare weekly trends, not totals. If the trends split apart, work through the fixable causes above, starting with redirects and analytics rules. If you also pull Search Console data by API, the branded queries filter helps you separate branded from non-branded Google traffic.
Advertisement
Reach marketers while they are doing the work.
Sponsor a topic, a guide or a week of the daily briefing. Text-first placements, clearly labelled, no tracking scripts.
See advertising optionsSources
- Identify Google Search traffic in your web analytics or server logs (opens in a new tab) (Google Search Central)
- Latest Google Search documentation updates (opens in a new tab) (Google Search Central)
- Using Search Console and Google Analytics data for SEO (opens in a new tab) (Google Search Central)
- Identify unwanted referrals (opens in a new tab) (Google Analytics Help)
- Referrer-Policy header (opens in a new tab) (MDN Web Docs)
Standards and corrections
Claims are linked to the sources listed above so you can check them yourself. Our standards are set out in the editorial policy. Found a mistake? Send us a correction.