04 [ field note — plugin ]

Cookieless Privacy-first country reports for WordPress

· 1 min read · Plugin

Cookieless Country Reports plugin icon — four tally marks crossed by a red line

Most sites only need two answers: which pages people read, and where they read them from. Andresitaly Cookieless Country Reports counts exactly that — a lightweight, privacy-first alternative to Google Analytics, with no cookies and no IP addresses stored.

Why I built it

On small sites, Google Analytics means a consent banner, third-party scripts and reports nobody opens. I wanted the numbers that matter, kept on the site's own server, without tracking anyone.

What it does

  1. Works behind page cachesa ~2 KB vanilla JavaScript beacon counts the view even when LiteSpeed, W3 Total Cache or a CDN serves the page.
  2. Country detectionfrom Cloudflare's header when the site is behind Cloudflare, otherwise from a MaxMind GeoLite2 database hosted on your own server.
  3. Reports in the adminviews, sessions, top 20 pages, views by country, a 30-day trend chart and CSV export.
  4. Only real pagesa signed token from your site, known bots filtered out, logged-in users never counted.

Privacy by design

No cookies, no IP addresses stored, no calls to a remote service on each visit. Raw hits are rolled up into a small daily table and deleted after a few days (7 by default). Because it doesn't track individuals, it doesn't need a consent banner.

FAQ

Is Cookieless Country Reports free?

Yes. It is free and open source (GPLv2) on the official WordPress.org plugin directory, with no paid version.

Does it use cookies or store IP addresses?

No. It sets no cookies and stores no IP addresses: sessions are counted with a random per-tab identifier, stored only hashed.

Does it work with page caching?

Yes. The count comes from a small JavaScript beacon, so cached pages are counted too.

[ next note ]The book
05 [ contact — commissions open 2026 ]

Got a wall, a canvas or a site to set on fire? Got a wall, a canvas or a site to set on fire?

[ digital ]

[ studio ]

  • Castelplanio, Ancona
  • Marche — Italy
  • local time
  • 43.49°N 13.08°E