Analytics
The hosted platform records every visit and distinguishes humans, AI crawlers, AI assistants, and search engines — so you can see how many AIs are reading your docs and which pages they read.
Why AI traffic needs to be distinguished
Traditional analytics scripts only count browsers that execute JavaScript. AI crawlers and AI assistants (ChatGPT browsing, Claude web search, Cursor doc lookups…) usually don't run scripts and are completely invisible in tools like GA — yet they may already be the largest audience for your docs.
ButterIX records every page and Markdown request on the server and classifies it by User-Agent, with no configuration and no cookies. A human view counts once the page's script reports back, so scripts and scanners posing as browsers don't get mixed in.
Traffic classification
| Category | Rule (User-Agent contains) |
|---|---|
| AI assistants | ChatGPT-User, OAI-SearchBot, Claude-User, Claude-SearchBot, Perplexity-User, Gemini, MistralAI-User, DuckAssistBot, Cursor, Windsurf, Claude-Code, copilot, and so on; or the Accept request header contains text/markdown |
| AI crawlers | GPTBot, ClaudeBot, anthropic-ai, CCBot, Google-Extended, Applebot-Extended, Bytespider, meta-externalagent, Amazonbot, PerplexityBot, cohere-ai, and so on |
| Search engines | Googlebot, Bingbot, DuckDuckBot, Baiduspider, YandexBot, Sogou, Applebot |
| Other crawlers | Contains bot / crawler / spider, or programmatic clients such as curl, wget, python-requests, and axios; plus headless browsers, scanners, and requests with no User-Agent |
| Humans | All other requests |
In the dashboard, "AI visits" = AI assistants + AI crawlers, and "Crawlers" = search engines + other crawlers.
Data in the dashboard
The site's Analytics tab (last 30 days by default, up to 365 days):
Total visits, human visits, AI visits, crawlers, Markdown requests, requests for index and spec files, MCP calls, AI questions, searches, and the feedback helpfulness rate.
Daily trends for human, AI, and crawler visits (including .md requests).
The pages humans visit most, and the most-requested nonexistent URLs — often redirects you should add.
Exactly which AIs are reading: ClaudeBot, GPTBot, Cursor…
Referring sites (Referer hostnames), and countries / regions (looked up from the visitor's IP with the DB-IP country database).
Top on-site search terms, the Ask AI question log (question, answer, sources, outcome, reader rating) and resolution rate, and "Was this page helpful?" feedback and comments.
The same data is available through the API: Access stats, AI question log, Resolution rate, Page feedback.
Feedback
The Feedback page keeps three kinds apart:
- Pages: readers answer "Was this page helpful?" at the bottom of a page, with a reason if they like.
- Code issues: readers click the flag next to a code block and pick Doesn't run, Has a mistake or Out of date. Each report says which code block it was, its language and first line.
- AI tools: AI tools that find a mistake or a gap while reading your docs report it through the site's MCP server or the address at the top of each page's Markdown. It is written by AI: check it before changing the docs.
Feedback is collected only while feedback.enabled is on in docs.yml (the default).
Suggested redirects for 404s
Content checks → 404 redirects lists the addresses readers visited in the last 30 days that don't exist, with the page whose address is most like each. Select Add to accept one:
- It works right away, without a deployment.
- It only applies while the address has no page: if the address gets a page again, readers see the page and the rule stops applying.
- When several addresses moved together (say every
/docs/old/…now lives at/docs/new/…), they are offered as one wildcard rule,/docs/old/*→/docs/new/:splat.
Addresses scanners probe for (such as /wp-login.php) don't show up here. To keep redirects with your docs, put them in redirects in docs.yml.
Check the AI question log and "not helpful" feedback regularly: questions readers ask that your docs can't answer are the next docs you should write.
Live visitors
Live visitors on the Analytics page lists each page request from the last 30 minutes and refreshes every 10 seconds, with the number of human visitors in the last 5 and 30 minutes at the top. Show everything, or only humans, AI, or crawlers. Each entry has:
- The time, request method, page, and referrer; hover over the page to see query parameters (tokens, passwords and the like are masked);
- Who it was: a human, or the name of the AI agent or crawler;
- The browser and system, and whether the page was opened in an iframe;
- A flag and country name, and the masked network (the first three parts of the IP), which helps you recognize your own team or a cloud provider's scans;
- Whether it counts as a view. "Prefetch" means the page was fetched ahead while the reader hovered over a link and wasn't opened. "No JS" means the page's script never reported back: a script, a scanner, or a browser that blocks analytics. "Not counted" means it came from the dashboard or was a 404 page.
Live risk requests
Live risk requests lists probes, attacks, and rejected requests separately, so they stay out of visitor and page statistics. It shows the last 24 hours, keeps 7 days, and needs the editor role or above:
| Type | What it is |
|---|---|
| Probes | Scans for paths such as .env or wp-login.php, calls that try internal endpoints, or POST, PUT and similar sent to pages |
| Attacks | Signs of injection, cross-site scripting, path traversal and the like in the path or parameters |
| Rejected | Cross-site calls, rate-limited requests, or a wrong access password |
Hover to see the full parameters, User-Agent, and request content. Up to the first 4 KB of POST, PUT and similar requests is recorded; binary content and access passwords are not.
Search engines also try addresses they find in page source, so being listed here doesn't always mean an attack.
How things are counted
- Human views: a request for an HTML page whose script then runs in the browser and reports back. Views from the dashboard, previews, and 404 pages aren't counted.
- AI and crawler visits: requests for HTML pages and
.md(recorded on the server, since they usually don't run scripts). Static assets and the search index aren't counted. - Markdown requests: requests for
.mdURLs, or requests that return Markdown viaAccept: text/markdowncontent negotiation. - Index and spec files: requests for
llms.txt,llms-full.txt, and API spec files (/openapi.jsonand so on), counted on their own and not included in total visits, AI visits, or crawlers. - MCP calls: JSON-RPC requests to
/_mcp/server. - Searches: on-site search events reported by the browser (only the search term is recorded).
- Visits to preview deployments count toward the same site.
Third-party analytics
To connect with your existing analytics stack, configure it in docs.yml; the scripts are injected into every page and report page views on client-side navigation:
analytics:
ga4:
measurement-id: G-XXXXXXXXXX
plausible:
domain: docs.acme.com
posthog:
api-key: phc_xxxxxxxx
endpoint: https://eu.i.posthog.comGA4, Google Tag Manager, Plausible, PostHog, and Segment are supported; see docs.yml › Analytics. These scripts are not injected in preview deployments or editor previews.