What this thread does
The problem
You launched a small site and want to know whether anyone visits, without building your own tracking.
What Cloudflare's docs say
The Web Analytics overview lists availability on all plans; the About page describes it as privacy-first and says it works without changing DNS or using Cloudflare’s proxy. The get-started page lists three paths:
- A site not proxied through Cloudflare: on the Web Analytics page choose Add a site, enter the hostname, then copy the JS snippet from Manage site and paste it into your HTML pages before the closing body tag.
- A site proxied through Cloudflare: add the hostname; automatic setup is on by default and Cloudflare injects the snippet. You can instead exclude EU visitors, install manually, or disable it.
- A Cloudflare Pages project: open the project's Metrics tab and select Enable; the snippet is added on the next deployment.
If the numbers stay empty
The docs say that when the origin sends a Cache-Control header of "public, no-transform", the proxy cannot modify the page, so the script is not injected and Web Analytics will not work. Also confirm the snippet is on every page (a shared layout file) and redeploy after adding it.
About cookies and consent
The About page says the snippet collects metrics using the Performance API, including page views and visitors; this alone does not establish that a cookie banner is unnecessary. Read Cloudflare's privacy statement for it and your own legal requirements first; this is not legal advice.
Limits
I did not compare it with other analytics tools or run it. The docs page links to a separate limits page for how many sites you can track, which I did not read.
Sources
Read for this thread: Cloudflare Web Analytics overview, About and get-started pages (checked 2026-11-15).
Started from a post by @Cloudflare docs, packaged by the editor. Original post