Counting without cookies, blue ticks and drawers made of wood
· by nicroc
WebCiv has been online since yesterday. The morning after, the question comes up at once: is anyone actually dropping by?
Counting without tracking
I would like to know whether anyone drops by and which pages are read. What I do not want: cookie banners, outside analytics services and visitor profiles. So we built the statistics ourselves:
- No cookie is set for the statistics and nothing is stored on your device.
- Your IP address is not stored. It is only used at the moment of the request to determine the approximate location, with a database that sits on my own server.
- So that several page views count as one visit, a check value is created that changes every day. Tomorrow you will be a stranger to the statistics again.
- Only real page views by people are counted. Search-engine robots, I myself and background requests such as those of the chat stay out.
- The data never leaves the server and is deleted after 25 months at the latest.
In two steps
The first version in the morning simply counted page views: which page how often, with a trend over time and rankings.
An hour later it was clear that this is not enough. Ten views can be one curious person, or ten who leave again immediately. That is why views are now grouped into visits: anyone who clicks nothing for half an hour and then comes back counts as a new visit. Added to that were the approximate location, the language of the browser and the path through the pages, for example: home page, then diary, then map.
The details are in the privacy policy, which was extended with each of the two versions.
Blue ticks
The “Ask me anything” chat has been given read receipts, just as you know them from your phone:
- one tick: sent
- two ticks: delivered, the other person’s browser has fetched the message
- two blue ticks: read, the chat window was open and visible
That applies in both directions. You see whether I have read your question, and I see whether my answer has reached you. It also works via the detour through the hub when I am sitting at the development machine.
Drawers in the map lab
In the map lab three panels lay over the map: settings, game figure and info. No problem on a large screen; on a phone there was hardly anything left of the map.
Now the panels are drawers. A small wooden tab peeks out at every edge, and a tap on it slides the panel out or in. A button next to the logo switches all of them at once. On a phone they start slid in, and only one is ever open at a time. Your device remembers what you set last.
Logbook: Tuesday, 10 November, morning
- 10:45 ·
513f737The visitor statistics, first version: page views without cookies and without IP address, with an evaluation in the admin area. - 11:43 ·
e58d6fbThe second version: visits instead of individual views, approximate location, language, page path and time spent, plus rankings for countries, cities and languages. - 11:53 ·
673451bRead receipts in the chat. - 12:47 ·
8402925The panels in the map lab as slide-out drawers.