How is it calculated?
Filtering happens in layers. Bots that announce themselves are matched by their User-Agent. Headless and automated browsers are detected by the signals they expose, such as navigator.webdriver. Some services add network-level reputation scores.
Many crawlers never run JavaScript, so a script-based tool does not see them at all. Server logs see everything, which is why log totals are far higher than analytics totals.
Example
- 90,000 requests
- 31,000 pageviews
Your server log shows 90,000 requests for HTML pages in a week. Your analytics shows 31,000 pageviews. Most of the gap is crawlers and monitoring checks that fetched pages without running the script.
Common mistakes
- Expecting server logs and analytics to match. They measure different things.
- Assuming filtering is perfect. A bot that runs a real browser and hides it will be counted as a visitor by any tool.
- Throwing away all bot data. Knowing which AI crawlers read which pages is useful in its own right.