# Why Google Analytics cannot see AI agents

> AI agents fetch pages without running JavaScript, so a browser pixel such as Google Analytics or PostHog never records the visit.

ChatGPT, Claude, Perplexity and a coding agent request a URL the way curl does. The person behind the agent asked for a comparison, a price, a docs page or a signup. The agent reads the HTML or the JSON and either continues or stops. There is no browser, no cookie banner and no `gtag`.

## What a pixel needs

A pixel runs after a browser has parsed the document and executed its scripts. It needs the response to be HTML, JavaScript to be allowed to run, and the tag not to be blocked. An agent that wants the docs, the pricing page or the OpenAPI file does none of that.

The request is still real. The person who sent the agent is still a possible customer. The analytics dashboard stays at zero.

A server log sees the request. A pixel does not. Wake sits with the server. A collector on a Cloudflare Worker, in Express middleware or in Next.js middleware reads the request where the site is served, then keeps a coarse record.

## What is kept

Timestamp, method, page class, status, provider family, country, network operator, and a daily nickname computed on your side. The raw IP address, the user-agent string, the path, the query string, the body, the prompt, cookies and the referrer are not stored. The same rule is written in [Privacy](/wake/docs/privacy).

## What the record is for

The desk turns those rows into a session and a funnel: discovered, read docs, authenticated, attempted an action, converted. A conversion is a successful write on checkout, not a page view. Friction is the status plus the page class: an auth wall, a 401 with no next step, a docs page that ends, a repeated error. Each kind has a fix, and the fix carries the sessions behind it. That measurement is [AXO](/wake/docs/axo).

Search crawlers are sessionised and shown. They are not billed, and they are not counted as the agents that can buy.

## What to do

Install the collector where the site is served. [Install](/wake/docs/install) is the three steps. A browser tag cannot be patched into seeing a client that never runs it.

The free scan at [/wake/start](/wake/start) shows how the public site answers an agent before any collector is installed: homepage, robots.txt, llms.txt, sitemap, agent card. How those files should be written is [Discovery files](/wake/docs/discovery).
