Cloudflare
Track AI agents with a Cloudflare Worker
A Worker in front of your site sees every AI agent that reads it — including the ones that got a 404. Works on any origin, with no change to the thing behind it.
Why you can't see them today
Cloudflare's own bot analytics tells you a bot came through. It doesn't tell you which pages the agent read, whether it found your llms.txt, or whether that visit turned into a signup. And if you're fronting a hosted platform, you have no other place to put instrumentation at all.
The reason there's no script tag to paste. AI agents don't execute JavaScript. Every analytics tool you already run is a browser tag, so it never fires for an agent — which is why your dashboards show none of this traffic. The only way to see it is server-side, at the edge, or in your logs.
See yours before you install anything
Check my log free →Install: Worker
- Get a secret key. Sign up for Pickrate (free), then Settings → Your keys → create a secret (sk_) key.
- Deploy the Worker. Use the one-click deploy button on the template repo, or clone it:
git clone https://github.com/pickrate-io/cloudflare-worker cd cloudflare-worker && npm install npx wrangler secret put PICKRATE_KEY npx wrangler deploy - Route it at your site. Add a route in wrangler.jsonc for the hostname you want to measure, then deploy again. Your domain has to be on Cloudflare and proxied (orange cloud) for routes to work.
"routes": [ { "pattern": "docs.example.com/*", "zone_name": "example.com" } ]
Gotchas worth knowing first
Set the key as a secret, not a variable
wrangler 4 needs @cloudflare/workers-types v5
No key means no-op, on purpose
What won't work
Shopify storefronts
Questions
Will the Worker slow down my site?
What happens if Pickrate is down?
Can I use this in front of a site I don't own the code for?
Other setups
- See which AI agents read your Mintlify docs — Docs are where agent reads concentrate. Worker in front, no change to Mintlify.
- See which AI agents crawl your Vercel site — Zero code. Covers every framework on Vercel at once, and captures response status.
- All install options — the full chooser, including pasting a log with no install at all.
- Developer reference — every method in one place.