Back to blog

Why Google Analytics Misses GPTBot & ClaudeBot — And How Edge Analytics Fixes It

Nov 28, 2026IndexMirror Engineering

AI crawlers do not execute client-side JavaScript tags. Learn why GA4 and Plausible stay blind to AI bot visits and how edge mirror logs + official IP CIDR verification expose real AI crawl demand.

If you check Google Analytics 4, Plausible, or PostHog to see whether GPTBot, OAI-SearchBot, ClaudeBot, or PerplexityBot are reading your documentation, you will see zero sessions. That is not a configuration bug — it is a physical constraint of how AI crawlers work.

Why client-side analytics tags are blind to AI bots

  1. No JavaScript execution: Most AI fetchers issue raw HTTP GET requests and parse the returned HTML or Markdown directly. Client <script> tags never run and never fire beacon requests.
  2. Client-side rendered (CSR) shells look empty: If your docs or pricing page ships <div id="root"></div> plus a 500 KB JS bundle, AI bots not only skip your analytics — they often see zero product copy.
  3. Spoofed User-Agents pollute raw logs: Even if you inspect raw server logs, scrapers routinely fake User-Agent: GPTBot. Without verifying source IPs against official vendor CIDR ranges, raw UA counts mislead teams.

The two-step edge solution

  • Step 1 — Zero-code hosted Markdown mirror: When you serve /llms.txt, /llms-full.txt, and clean .md mirrors through an edge gateway (such as IndexMirror Live Mirror), every AI crawler request passes through the edge worker automatically — giving you real bot hit counts and status codes with zero code changes on your origin.
  • Step 2 — Optional 3-line non-blocking middleware: To measure AI bot hits across your entire HTML site as well, add a lightweight ctx.waitUntil(...) edge snippet in Cloudflare Workers, Next.js middleware, or WordPress that fires only on AI bot User-Agents with zero added latency to human visitors.

Ready to see whether your site is readable without JavaScript? Run our Website to Markdown Converter or full GEO Site Audit now.