AI bots

Why AI crawlers don't show up in Google Analytics, and where to see them

GA4 drops known bots and its tag only runs in a browser. See which AI traffic reaches GA4 and how to see crawlers.

On this page 6 sections

AI crawlers do not show up in Google Analytics because GA4 removes known bots and its tag only reports when a browser runs it. A person who clicks a link in an assistant does reach GA4, often filed as Direct. To see crawlers, you need a record kept where requests arrive.

Swipe sideways to see the whole diagram.

One page, two paths. Only the browser path runs the tag.
The diagram as a list
  1. A page on your site is requested in two different ways.
  2. A browser loads the page and runs the analytics tag, which sends a hit, so the visit appears in analytics.
  3. A crawler fetches the HTML and does not run the tag, so analytics never hears of it.
  4. The request is still recorded by the server, the CDN or an edge collector, which is where to look for crawlers.

What Google says it excludes

Google's help page on known bot-traffic exclusion is short and plain: "In Google Analytics properties, traffic from known bots and spiders is automatically excluded." The bots are identified by "a combination of Google research and the International Spiders and Bots List, maintained by the Interactive Advertising Bureau." The page also says: "At this time, you cannot disable known bot traffic exclusion or see how much known bot traffic was excluded."

So even a bot that reached GA4 and matched the list would leave no count you could read. That is a sensible default for a tool that counts people. GA4 is not broken when GPTBot is missing from it. It is the wrong place to look.

The second reason: no browser, no tag

A JavaScript tag only sends data when a browser loads the page and runs it. A crawler that reads your HTML never executes the tag, so no hit is sent, whatever the bot list says.

Which crawlers run page scripts is a separate question. Google documents JavaScript rendering for Search and Apple for Applebot, while the OpenAI, Anthropic and Perplexity crawler pages promise nothing either way (see whether AI crawlers can read a JavaScript site). "Not documented" is not "never does", so build no report on either assumption.

Which AI traffic reaches GA4

"AI traffic" is three different kinds, and each reaches GA4 differently.

Kind of AI traffic Shows in GA4? Where to see it
Training crawler, such as GPTBot No. It fetches HTML without a tag run, and known bots are excluded Server or CDN logs, a CDN bot dashboard, an edge collector
Search crawler, such as OAI-SearchBot No, for the same two reasons The same three places
User-triggered fetch, such as ChatGPT-User Not by default. It only reports if the fetch runs your tag, and a listed bot is excluded The same three places
Agent running a real browser Possibly. A real browser can run the tag, so the visit can look like a person GA4 itself, and your logs for the matching request
Human click from an assistant Yes, often as Direct GA4 acquisition reports, with a channel rule

A click carries a referrer or a campaign tag only sometimes, which is why it lands in Direct so often. See why ChatGPT traffic shows as Direct and how to track AI assistant traffic.

The agent row is the uncertain one. To the tag, a browser-based agent is a browser. Whether it appears in GA4 depends on whether its user agent is on the bot list, and Google does not publish what was excluded.

Three places you can see crawlers

Server or CDN logs

Your web server writes one line per request, including the user agent. It is the most direct record and costs nothing:

grep -E "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|PerplexityBot" access.log \
  | awk '{print $1, $7}' | sort | uniq -c | sort -rn | head

The field numbers assume the common combined log format (client IP first, path seventh). Adjust them for your own.

A log line only tells you what the requester wrote. The user agent is a claim anyone can send, so a grep count includes impostors. Check each IP against the company's published list or a reverse DNS lookup, as in how to verify that GPTBot is real. On managed hosting you may not get log access at all.

A CDN's bot dashboard

If your site sits behind a CDN, its dashboard may already classify bot traffic by category, with no extra setup. You see the CDN's categories and judgement, not necessarily the individual bots you want to name, and how a request was classified is not always shown. Treat it as an overview.

An edge collector

A collector sits where requests arrive, records the ones you choose and does the verification for you. It does not rely on the visitor's browser, so it sees what a tag cannot. It has to be installed in front of your site, and only works where supported.

Method Setup Verification Limit
Server logs None, if you have access You do it yourself User agent is only a claim until checked
CDN bot dashboard None The CDN's own Categories, not always each named bot
Edge collector One install Built in Needs a supported CDN

How Lundot handles this

Lundot's tracking script cannot see AI crawlers either. For sites behind Cloudflare, a Worker records requests at the edge and passes each one on unchanged, and labels each by how it was verified (IP list, reverse DNS, signature or user agent only). Spoofed claims are shown apart. Other CDNs and log files are not supported yet. See Connect Cloudflare and the AI bots report.

Sources

Put it into practice

  • DocsConnect Cloudflare

    Record verified AI bot requests at Cloudflare: what is added, what access is asked for, how it is checked.

  • DocsAI bots

    Verified AI crawler, assistant and agent requests, per page and company.

  • ProductSee which AI bots request your pages, verified

    Lundot records AI crawler, assistant and agent requests at Cloudflare, per page and company, and shows how each was verified. Unverified claims never count.

See what your robots.txt tells AI crawlers

The AI crawler check is free and needs no account. It reads your robots.txt for each AI crawler, checks whether your home page has text without JavaScript, and looks for llms.txt.