Skip to content
brought to you byVoidZero

Visit Analytics ​

A Void platform counts page views as it serves your app. There is no script to add and no cookie: the count happens on the server. Analytics is on by default for every hosted project.

sh
void project analytics
Views (7d, all hosts)  ≈12,340   human 10,120   AI & bots 2,220
▁▂▃▅▇▆▅▃▂▁▂▃▅▇▆▅▃▂▁▂▃▅▇▆▅▃
The lists below leave out bots Cloudflare verified; other bots can still show.
Top pages    Views   Referrers             Views   Countries  Views
/            4,210   (direct)              6,001   US         5,120
/blog/hello  1,904   news.ycombinator.com    812   DE         2,010
Devices: desktop 7,010 · mobile 2,950 · tablet 160
Browsers: Chrome 6,120 · Safari 2,440 · Firefox 830
AI & bots: GPTBot 900 · Googlebot 700 · ClaudeBot 300 · other 320

Counts are estimates, marked with ≈: on busy projects the platform samples requests. Views are not unique visitors; Void does not track who a visitor is.

If your platform runs the dashboard, the project's Analytics page shows the same numbers.

Choose what to see ​

sh
void project analytics --range 30d                 # 24h, 7d (default), 30d or 90d
void project analytics --host shop.example.com     # one of the project's hosts
void project analytics --path /pricing             # one page
void project analytics --traffic bots              # top lists for bots only
void project analytics --json                      # the raw data, for scripts

--traffic changes what the top lists count: human (default), bots, or all. The totals and trend line always show both humans and AI & bots. See void project analytics for every flag.

What counts as a page view ​

  • A page load: a successful GET that returns a page's HTML, including a browser check that the page has not changed (304).
  • A client-side move in a Pages app that asks the server for the next page's data.

Each view records the page path (without the query string), the host, the referring site, the country, the device type, the browser, and the bot name for bots. Void stores no IP address, no full user agent, and no cookie.

What is not counted ​

  • Prefetches. Links prefetched on hover, and pages the browser prerenders ahead of time, are not views. When the visitor then opens such a page, it shows from the prefetched copy and is not counted either.
  • Client-side moves served from cache. Going back or forward to a page the app already has, and routes that a single-page app handles in the browser, send nothing to the server.
  • Everything that is not a page: API calls, images, scripts, styles, redirects, errors, and HEAD requests.
  • Uptime monitors, and preview deployments.
  • Bots are shown apart. Crawlers and AI agents, such as GPTBot, ClaudeBot, and Googlebot, are counted under "AI & bots", matched by their user agent. A bot that presents itself as a browser counts as a human.

A single-page app answers every path with its page, so paths that scanners try can show up under top pages.

Apps deployed with an earlier Void version can count hover prefetches as views, and some client-side moves twice. Redeploy them to stop that.

Who can see it ​

Every project member can read analytics, readers included. See Project Collaboration for roles.

Turn analytics off ​

The owner or a project administrator can stop collecting page views:

sh
void project analytics off
void project analytics on

The change takes effect within a couple of minutes. Turning analytics off does not delete what was already collected: page views are kept for about 90 days and then age out.

Platforms that record no paths ​

A platform installed with minimal runtime logs still counts page views, countries, devices, browsers, and AI & bots, but records no page paths or referrers. On such a platform, top pages and referrers are not shown and --path is not available.

Direct Cloudflare deploys ​

For an app deployed with void deploy --platform cloudflare, the same command reads the analytics Cloudflare already keeps for your zone. Nothing is added to your app or your deploy, and it works on the Workers Free plan.

sh
void project analytics
Views (7d, all hosts)  ≈3,120   human ≈2,900   AI & bots ≈220   (Cloudflare zone data, page loads only)
▁▂▃▅▇▆▅▃▂▁▂▃▅▇▆▅▃▂▁▂▃▅▇▆▅▃
Top pages    Views   Countries  Views
/            2,010   US         1,480
/pricing       640   DE           520
Devices: desktop 2,300 · mobile 760 · tablet 60
Browsers: Chrome 1,720 · Safari 840 · Firefox 210
AI & bots: Googlebot 120 · GPTBot 60 · other 40
Note: counts page loads only; numbers are not comparable with Void hosting.

It needs a custom domain or a route on a zone in your Cloudflare account. Cloudflare keeps no zone analytics for workers.dev, so an app served only there has none. A route limited to a path, such as example.com/blog/*, is left out, because zone analytics count the whole host. Add a domain with void domain add.

What is different from a Void platform:

  • Page loads only. A view is a successful GET from a visitor that returns HTML. Client-side moves in a Pages app are not counted, and pages prefetched by the browser can count.
  • No referrers. Cloudflare does not offer them on every plan, so there is no Referrers list.
  • Up to 30 days. Use --range 24h, 7d or 30d. Cloudflare keeps 31 days, so 90d is not available.
  • Bots. Bots that Cloudflare verifies and bots Void recognizes by user agent are both counted under "AI & bots". In the top lists, --traffic human drops only the bots Cloudflare verifies, so other bots can still show there, and --traffic bots shows only the bots Cloudflare verifies.
  • No switch. Cloudflare zone analytics are always on, so on and off are not available: the command stops with an error.

A browser login (void cloudflare login) can read zone analytics. If yours is older and is refused, run void cloudflare logout, then void cloudflare login. An API token in CLOUDFLARE_API_TOKEN needs Zone → Analytics → Read and Zone → Zone → Read for the app's zones.