Skip to Content
Pageflock

How visitors are counted

What Pageflock collects, what it never stores, and how it counts unique visitors without cookies.

Pageflock counts visits without identifying the people behind them. It sets no cookies and stores nothing on your visitors' devices, so you don't need a consent banner.

What the script sends

For each page view or event: the page URL, the referrer, the screen width, the event's name and properties, and, when the visitor leaves the page, time on page and scroll depth. Nothing else is sent. The script uses no cookies, no localStorage or sessionStorage, and no fingerprinting APIs.

What the server does with it

The ingest Worker reads the visitor's IP address and user agent from the request, uses them while it handles the request, and then discards them. They are never stored or logged.

  • Location: the country, region and city come from Cloudflare's lookup of the IP. Only those names are kept, and with strict privacy on in a site's settings, only the country.
  • Device: the browser, operating system and device type are read from the user agent. Only those names are kept.
  • Bots: known crawlers and automated browsers are dropped.
  • Unique visitors: Pageflock computes a visitor ID as the first 8 bytes of HMAC-SHA256(daily_salt, site_id + ip + user_agent).

The daily salt

The salt is 32 random bytes, a new one for each day in UTC. Salts are deleted after a day, so once a salt is gone, nobody, Pageflock included, can work out which IP and browser a visitor ID came from, or link a visitor today to the same person tomorrow. Visits that cross midnight are matched with yesterday's salt while it still exists.

Including the site ID means the same visitor gets different IDs on different sites, so sites can't be joined up either.

What that means for your numbers

A "visitor" is one IP and browser on one site on one day. Someone who comes back tomorrow, or switches from their phone to their laptop, counts again. Counting them once would mean recognising them across days or devices, which is the tracking Pageflock leaves out. Treat unique visitors as a close estimate, and compare them over time rather than reading them as a head count.

On this page