Sign inGet started
Answers

How do I track AI crawlers like GPTBot and ClaudeBot on my website?

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

AI crawlers never run your analytics tag. Count them from your server with a sender on Cloudflare, Next.js or WordPress, and check which are real.

Updated

Count them from your server: AI crawlers never run JavaScript tags, so tag-based analytics can't see them. nextanalytica's sender, a Cloudflare Worker, Next.js middleware or the WordPress plugin, passes one hit per AI crawler request after your site has answered, and nextanalytica checks each hit against the addresses the bot's owner publishes.

How do you do it?

  1. Make a server key in nextanalytica.
  2. Add the sender for your stack: Cloudflare Worker, Next.js middleware or WordPress plugin.
  3. Fetch a page with a bot's user agent to test it, then ask your agent.

What can you ask your agent?

  • "Which AI crawlers read my site this week, and which pages?"
  • "Are any of the GPTBot hits fake?"

Next steps