Cookieless counting

Count unique visitors without cookies.

While a visit is counted, its IP address and browser string are hashed with a random salt that changes every day and is different for each website. Then both are thrown away.

  • No cookies are set, and nobody can be identified from the stats
  • The IP address is used once to find the country, region and city, then discarded
  • The free connector marks the stats as necessary in 5 common consent tools, so cookie banners don’t hold them back
  • Want returning visitors? Turn on Recognize returning visitors, still with no cookies
How visitors are counted, in the docs →

Recorded

  • Pages viewed, time on page and scroll depth
  • Where the visit came from, and campaign tags
  • Country, region and city
  • Device, browser and operating system
  • Form sends by form name, purchases with their amount
  • An anonymous visitor ID for the day

Never recorded

  • Cookies or a lasting device ID
  • The IP address
  • The full browser string
  • What is typed into forms: names, emails, card or address details

Ways to install

First-party tracking that ad blockers rarely stop.

Pick one of 4 ways per website. Serve the script and visits from the client’s own domain, and far fewer visits go missing.

  1. 01Standard snippetPaste one line into the site’s head, on any platform.Ad blockersSome block it
  2. 02WordPress connectorInstall the free plugin and turn on Serve from this site. No DNS changes.Ad blockersHardly ever blocked
  3. 03Domain in your CloudflareNothing to do, when the client’s domain is already in your Cloudflare account.Ad blockersHardly ever blocked
  4. 04Their own subdomainAdd one CNAME record, such as go.theirsite.com. Uses Cloudflare for SaaS, a paid Cloudflare add-on.Ad blockersHardly ever blocked
No WordPress? Ready-made setups for
  • Nginx
  • Apache
  • Caddy
  • Netlify
  • Vercel
  • Next.js
  • Express
  • Cloudflare Workers
More about first-party tracking →

Bot filtering

Real people, not bots.

Bots and scrapers make numbers look better than they are. They’re left out before they’re counted, for every website, and cost almost nothing on Cloudflare.

  • About 39,000 data center address ranges and 12,000 hosting networks, updated every week
  • Known bots, automated and outdated browsers, give-away time zones, scrapers walking listings, and referrer spam
  • VPNs, iCloud Private Relay and Cloudflare WARP are still counted, because people browse through them
  • Each rule has its own switch, and shows what it would leave out before you turn it on
  • Nothing is blocked or challenged: real visitors use the site as usual
More about bot filtering →

Left out in the last 7 days, by rule

  • Data center addresses
  • Automated browser checks
  • Known bot names
  • Scraper patterns
  • Outdated browsers
  • Referrer spam

Illustration

Your data, your region

The data stays in your own account.

Every visit is stored in your own Cloudflare account. Your WordPress keeps settings, portal accounts and invoices, but no visits.

  • Choose at setup: nearest to visitors, or European Union only for the database, stats and backups
  • Keep detailed visits for 90 to 3,650 days, or for good. 400 days by default
  • Daily totals are kept for good, so charts still go back years
  • Archive older detail to your own R2 bucket instead of deleting it
  • Export everything, or move to another Cloudflare account, any time
More about EU data residency →

Where a visit goes

Visitor’s browserno cookies
Client’s siteclient-site.com/…
Your Cloudflarego.youragency.com
Your WordPresssettings and billing, no visits
RegionNearest or EU only
Anyone elsenever sees it

Shields

Leave out your own visits.

Keep your team, your office and your test pages out of a client’s numbers.

  • Leave out IP addresses, pages and countries, before anything is stored
  • Leave out signed-in roles, such as administrators and shop managers, with the connector
  • Changes apply within a minute
More about shields →
youragency.com/wp-admin · Shields
Site settings › Shields with IP addresses, pages and countries

Health

Catch broken tracking early.

Health checks every website at once, so a theme change or a cache never quietly stops the stats.

  • When each website last had a visit, and whether its home page carries the right snippet
  • The fix for each finding, often in one click
  • Debug follows a test visit step by step and names the first problem
More about health →

Health · every website

  • acmebakery.comCounting
    Last visit 2 min ago
  • acmebakery.shopLook at it
    A cached page carries an old key: purge the page cache
  • acme-dental.exampleNot counting
    No snippet on the home page

Illustration

Questions

Tracking and privacy, answered

Something else? Ask us.

Do I need a cookie banner for the stats?

The stats set no cookies and store no personal data, so they’re usually counted without consent. This isn’t legal advice: check what applies to each client with their own adviser.

How are unique visitors counted without cookies?

The IP address and browser string are hashed with a salt that changes every day and differs per website, then thrown away. So by default, the same person is a new visitor the next day.

Will ad blockers hide visits?

Rarely, when the script and visits are served from the client’s own domain, through the WordPress connector, a domain in your Cloudflare, or the client’s own subdomain.

Is EU-only storage really EU-only?

With European Union only chosen at setup, the database, each website’s stats and the backups stay in Cloudflare’s EU jurisdiction.

Does bot filtering block anyone?

No. The rules only decide what is counted. Nothing is blocked or challenged, so a real visitor who is left out can still use the site.

Stats you can defend to a privacy-minded client.

One license, unlimited client websites, every feature.