# How We Count Unique Visitors Without Cookies

A technical deep dive into how privacy-first analytics counts unique visitors accurately without storing any personal data.

By Jasper Koers · Published 2026-01-01

## Key takeaways

- ClearAnalytics counts unique visitors with a daily-rotating SHA-256 hash of the IP address, the User-Agent string, a daily salt derived from the application key and the current date.
- ClearAnalytics discards the visitor's IP address immediately after hashing.
- The ClearAnalytics visitor hash is not reversible, is only valid for one day and cannot be linked across different websites.
- Cookieless hashing can under-count visitors on VPNs or shared networks and counts a visitor who returns after midnight as new.
- According to ClearAnalytics testing, daily-hash visitor counting is within 5–10% of cookie-based counting for most websites.

Counting unique visitors is one of the most important functions of any analytics tool. But how do you do it without cookies, fingerprinting, or storing personal data?

## The Traditional Approach

Traditional analytics tools use persistent cookies or device fingerprinting to identify returning visitors. While effective, this approach stores personal data and requires consent under GDPR.

## Our Privacy-First Approach

We use a daily-rotating hash that combines several data points into an anonymous identifier:

1. The visitor's IP address (immediately discarded after hashing)
2. The User-Agent string
3. A daily-rotating salt derived from the application key
4. The current date

The resulting SHA-256 hash is:
- Not reversible to the original data
- Only valid for the current day
- Not linkable across different websites
- Not personal data under GDPR

## Accuracy Considerations

This approach has some trade-offs compared to cookie-based tracking:

- Visitors using VPNs or shared IPs may be under-counted
- Multiple people on the same network may be counted as one
- Returning visitors after midnight are counted as new

In practice, our testing shows this method is within 5-10% accuracy of cookie-based approaches for most websites, which is more than sufficient for making data-driven decisions.

## Why This Matters

By not storing any personal data, we eliminate the need for consent banners, simplify GDPR compliance, and ensure that 100% of visitors are tracked, rather than only those who accept cookies.

## Frequently asked questions

### How can analytics count unique visitors without cookies?

By hashing a few request details into an anonymous identifier that changes every day. ClearAnalytics combines the IP address, User-Agent, a daily-rotating salt and the date into a SHA-256 hash and discards the IP right away.

### How accurate is cookieless unique visitor counting?

Within 5–10% of cookie-based counting for most websites, according to ClearAnalytics testing. Shared networks, VPNs and visitors returning after midnight are the main sources of difference.

### Is a daily visitor hash personal data under GDPR?

ClearAnalytics treats it as not personal data, because the hash cannot be reversed, expires after one day and cannot be linked across websites. That is why no consent banner is needed.

### Does cookieless analytics use fingerprinting?

Not at ClearAnalytics. The visitor hash rotates daily and is never stored as a persistent identifier, unlike device fingerprinting or cookies.

Source: https://clearanalytics.eu/blog/how-we-count-unique-visitors-without-cookies
