The traffic a script never sees #
Crawlers do not run JavaScript, so no analytics script counts them. On content sites they are often most of the requests, and most of the hosting bill. The Bots view counts them from your own server's hits.
Send your server hits #
From a Cloudflare Worker in front of your site, send each request's path, user agent and status to us with an API key, batched. The snippet is in the install guide. Nothing about the visitor is stored beyond the user agent's class: no IP, and only the top pages per bot and day.
The classes #
- Search: Googlebot, bingbot, Applebot, DuckDuckBot, YandexBot, Baiduspider.
- AI: GPTBot, ClaudeBot, PerplexityBot, CCBot, Bytespider, meta-externalagent, Amazonbot, Google-Extended.
- SEO: AhrefsBot, SemrushBot, MJ12bot, DotBot.
- Link preview: facebookexternalhit, Twitterbot, Slackbot, Discordbot, TelegramBot, WhatsApp.
- Other bot: any other agent that looks like a bot.
Errors are hits answered with a 4xx or 5xx status, so a crawler stuck on broken pages shows up.
Upload a server log #
If you cannot send hits as they happen, upload your access log. On the Bots view, under Upload a server log, pick one or more files: nginx or Apache logs in the combined or common format, or a CloudFront standard log, plain or gzipped (.gz). The browser unpacks them and sends them in parts of 1,000 lines. Each line counts on the day it was logged, in UTC, in this report only; lines that are not log lines are skipped and counted. Uploading the same file twice counts it twice. Editors and the owner can upload.
Bot spikes #
A sudden wave of bots can get an ad account flagged. In Alerts, sites that send their hits can watch Bot hits and get mail or a webhook when a day is far above the 7 days before.