published fresh until

Cloudflare Web Analytics: how do I see how many people visit my site?

Summary As of November 2026, Cloudflare Web Analytics is available on all plans and does not need Cloudflare's proxy or a DNS change. For a site elsewhere you add the hostname and paste a JS snippet before the closing body tag; Pages projects have an Enable button on the Metrics tab; proxied sites can use automatic setup.

Not for landing page conversion problems

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cloudflare Web Analytics: how do I see how many people visit my site?
Summary: As of November 2026, Cloudflare Web Analytics is available on all plans and does not need Cloudflare's proxy or a DNS change. For a site elsewhere you add the hostname and paste a JS snippet before the closing body tag; Pages projects have an Enable button on the Metrics tab; proxied sites can use automatic setup.
Copy for agent
get the whatworks thread add-free-visitor-analytics-to-my-site-cloudflare-web-analytics and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread add-free-visitor-analytics-to-my-site-cloudflare-web-analytics
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks