Site analytics
View analytics related to your published documentation’s traffic and usage
Site analytics gives you information on the content you’ve published and how it performs. It’s split into reports, each focused on one audience:
Traffic: the people reading your site, the pages they land on, what they search for, and the feedback they leave.
Agents & MCP: the LLMs, coding agents, and crawlers reading your site through Markdown,
llms.txt, and your site’s MCP server.AI Assistant: what your visitors ask GitBook Assistant, and how well your content answers them.
To open a report, go to Analyze in your site’s sidebar. You can also see a top-level overview of your analytics on your site’s Overview screen, with a globe that shows views in the last hour by location.
Incoming links that land on a “Page not found” are reported in Broken links, under Improve in the site sidebar, alongside the redirects GitBook suggests for them.
Filters
Every report has a filter bar at the top. Add a filter to narrow a report down to the data you care about: a single site section, variant, or page, or an audience defined by country, language, device, browser, referrer, campaign, or authenticated visitor status. Filters apply to every card in the report at once.
Sites using adaptive content can also filter by visitor claims, such as a customer, plan, role, or feature access, so you can look at how one segment reads your docs.
Time periods and comparisons
Use the time filter in any report to switch between the last 24 hours, 7 days, 30 days, or 3 months. Click Custom range to pick your own period in the calendar. Reports include today’s data as it arrives.
Each figure at the top of a report compares itself to the period before, so you can see what’s moving without setting anything up. To compare a whole report, open the comparison picker next to the time filter and choose Previous period or Same period last year. With a comparison on, the report changes in three ways:
Figures show the change and the earlier value they moved from.
Charts draw the earlier period underneath each series.
Breakdown rows show a trend arrow, with the change and the earlier figure in its tooltip.
Same period last year shifts the window back 12 months and stops where the current window starts, so a range longer than a year never counts an event twice. The comparison is stored in the report’s URL along with your other filters, so you can share a compared view.
Export data
To analyze data outside of GitBook, open the menu on a card and click Download CSV. To build your own reports from the underlying events, see the Events Aggregation API guide.
Ads & sponsorship
Sites on the sponsored site plan get an extra Ads & sponsorship report, showing impressions, clicks, click-through rate, and revenue, along with the advertisers and pages behind them.
FAQ
Last updated
Was this helpful?