Skip to content
all posts
Product 2 min read updated July 20, 2026

How we count visitors without cookies

A plain, honest look at how sonex counts unique visitors with no cookie and no stored identifier, using a rotating daily hash that cannot be reversed or linked across days.

By Sourav · Building sonex
All posts

Counting unique visitors normally means storing a cookie so the same browser is recognised on its next visit. That stored identifier is exactly what turns a pageview into personal data. sonex counts uniques without it. Here is how, in plain terms.

A cookie is a durable label written to the visitor’s device. It is useful precisely because it persists, which is also what makes it personal data under the GDPR and triggers the ePrivacy consent requirement. If we want no consent banner, we cannot keep a durable label. So we do not.

A hash instead of an identifier

When a pageview arrives, sonex builds a short anonymous fingerprint from coarse, non-identifying request signals, then combines them with a secret salt and runs the result through a one-way hash.

visitor_hash = hash(daily_salt + website_id + coarse_signals)

Two properties make this safe:

  • One-way. A hash cannot be reversed. Given the output, there is no way back to the inputs, so the value never identifies a person.
  • Salted per day. The daily_salt is a secret that rotates every 24 hours. Today’s hashes and yesterday’s are computed from different salts, so they cannot be matched.
The raw inputs, including the IP address, are used only to compute the hash and are never stored. What we keep is an anonymous number, not a record of a visitor.

Why it resets, on purpose

Because the salt rotates daily, sonex cannot link a visitor from one day to the next. That sounds like a limitation, and for surveillance it is. For honest analytics it is the point: the system is built to forget. You get an accurate daily unique count without the ability, or the temptation, to follow one person over time.

What you can and cannot measure

You can measure daily and range visitor counts, new versus returning within a day, pages, referrers, funnels and coarse geography. You cannot build a permanent per-person profile, follow one individual across weeks with certainty, or power cross-site advertising audiences. That trade is deliberate.

Why we are telling you this

Privacy claims are only worth as much as their mechanism. Plenty of tools say “anonymous” while quietly keeping a durable identifier. We would rather show the method: a one-way hash, a salt that rotates daily, and raw inputs that are never stored. If a tool cannot explain how it protects you, that is the answer.

That mechanism is what lets sonex count your traffic accurately while collecting no personal data and asking your visitors for nothing.

Frequently asked questions

How do you count unique visitors without a cookie?
sonex derives a short-lived, anonymous fingerprint from coarse request signals combined with a secret salt that rotates every day. The value is a one-way hash, so it cannot be reversed to a person, and because the salt changes daily it cannot link a visitor across days.
Does counting without cookies store my IP address?
No. The IP address is used only as an input to the daily one-way hash and is never stored. What is kept is an anonymous count, not a record of who visited.
Why does the visitor count reset each day?
By design. The salt rotates every 24 hours, so yesterday's anonymous hashes cannot be matched to today's. That deliberate forgetting is what keeps the method free of personal data and consent requirements.

sonex is privacy-first web analytics. No cookies, no consent banner, no personal data. Drop one script and read realtime visitors, funnels and a world map in seconds.

Try sonex free
Questions

Frequently asked.

Cookies, install and pricing, answered. Still stuck? Ask us anything .

01 Can sonex show revenue next to my traffic?

Yes. Connect Stripe or Polar with a read-only key and sonex reads revenue straight from your payment provider, per website. Revenue then appears as a focusable series on the Overview chart and as its own report, beside the traffic that earned it. No tracked event is needed for it to work.

02 Does sonex use cookies?

No. sonex sets no cookies and needs no consent banner. It counts visits without cookies, fingerprinting, or any personal data, so it is GDPR, PECR and CCPA-ready by default.

03 How do I install sonex?

Add one script tag to your site's <head> with your website id. It is a single lightweight tracker — no build step and no SDK required.

04 Is sonex a Google Analytics alternative?

Yes. sonex gives you the reports that matter — visitors, pages, referrers, funnels, revenue and a world map — without surveilling your audience or drowning you in configuration.

05 How is sonex priced?

By monthly tracked events. Free covers 2k events, Pro is $20/mo for 200k events, and Business is $200/mo for 2M events with team seats.

See what your traffic actually earns.

Revenue beside the visitors that produced it. No cookies, no credit card, no consent banner.

Get started