How Cookie-Free Analytics Counts a Visit
No cookie and no list of visitors: our free analytics counts from the server's own records and estimates unique visitors with a daily hash.
The usual way to recognise a returning visitor is to leave something in their browser. Google Analytics, for one, sets cookies holding an identifier, and the browser sends it back on the next visit (Google). That is how the tool knows it has seen this person before.
Our free analytics puts nothing in the visitor’s browser. Here is how it counts instead.
Where the numbers come from
Every time a web server answers a request, it writes a line in its log: which address was asked for, when, which page linked there, and which browser or bot was asking. Our free analytics reads those lines (analytics documentation). There is nothing to install on your site, and nothing for a visitor’s blocker to switch off, because the record exists whether or not any script runs.
From those lines we count page views, your most-visited pages, the sites that send you visitors, bot hits and the bandwidth used. Lines from crawlers and other software are sorted into tabs of their own, as we described in yesterday’s post on AI crawlers.
Counting people without a list of them
Page views are simple: count the lines. Unique visitors are harder, because counting them the obvious way means keeping a list of everyone you have seen.
We don’t keep one. Each visit becomes a salted hash, a scrambled value that can’t practically be turned back into what produced it, and the salt changes every day. The same visitor gives a different value tomorrow, so nobody can be followed from one day to the next and no lasting identifier exists.
Those values are then counted with HyperLogLog, a method that estimates how many different items it has seen without storing the items themselves (Flajolet and others, 2007). The result is an estimate with a small margin of error. It tells you roughly how many people came, and it never records who they were.
What the cookie rules say
The UK’s cookie rules are in the Privacy and Electronic Communications Regulations (PECR). Regulation 6, as the ICO quotes it: “a person must not store information, or gain access to information stored, in the terminal equipment of a subscriber or user”, unless one of the exceptions in Schedule A1 applies (ICO).
Our free analytics stores nothing on a visitor’s device. It works from the details a browser sends with every request it makes to any website. How that fits your own privacy notice is for you to judge, and the ICO’s guidance is the place to read up.
What Analytics Plus adds
Analytics Plus, at £5 a site a month, adds a small script that still sets no cookies. It confirms that visitors are people in real browsers, and it records clicks you tag, scroll depth, time on page, screen sizes and UTM campaigns. Its figures start on the day you switch it on.
Two days ago we looked at why your visitor numbers should leave the bots out.
Ready to Deploy?
Join Jamstack developers across the UK hosting their static sites with privacy and performance built in. Hosting is free for good, no credit card needed, with Plus features when you want them.
