How does cookieless tracking work?
A cookie-based tool writes a random id into the browser on the first visit and reads it back on every later request. Cookieless tracking skips that step. The visitor is recognised from information every web request carries anyway, and only for one day.
In CrispStats, each page view goes through four steps:
- The script sends a small message. The page URL, the referrer, the screen width, the browser language and the time zone. No cookie is read or written.
- The edge computes a visitor hash. A daily secret salt, your site id, the IP address and the user agent are combined into a one-way visitor hash.
- The raw inputs are discarded. The IP address is used in memory for an approximate location and the user agent for the browser, operating system and device type. Neither is stored.
- The salt is deleted after the day. Tomorrow the same person gets a new, unrelated hash, and yesterday’s cannot be recomputed by anyone, us included.
visitor id = hash( daily salt | site id | IP address | user agent )Sessions end after 30 minutes without activity, or when the visitor arrives again through a different campaign or referrer, so each visit is credited to the source that caused it.
What is collected, and what is not?
The middle column says what is kept. The rows marked No are read in memory at most, and never written down.
| Data point | Stored | How it is used |
|---|---|---|
| Page path and hostname | Yes | Top pages, entry and exit pages, funnels |
| Referrer host and UTM tags | Yes | Sources, channels and campaigns |
| Country, region and city | Yes, approximate | Looked up from the IP address at the edge, then the address is dropped |
| Browser, operating system, device type | Yes | Read from the user agent, then the string is dropped |
| Browser language | Yes | Language report |
| Time on page and scroll depth | Yes | Engagement, sent when the page is hidden |
| Daily visitor hash | Yes | Unique visitors and sessions for one day |
| IP address | No | Used in memory for the hash and location only |
| Raw user agent string | No | Used in memory for the hash and device only |
| Cookies or device ids | No | None are set by default |
| Customer email from payments | Only as a one-way hash and a masked form | Revenue is matched by the visitor id, not the email |
Custom events and their properties hold whatever you send, so keep personal data such as email addresses out of event names and properties.
What can cookieless analytics not tell you?
The design gives some things up on purpose. Know them before you rely on the numbers:
- Returning visitors across days. Someone who visits on Monday and Friday counts as two daily visitors, so weekly and monthly uniques run higher than in a cookie-based tool.
- Cross-device journeys. A phone and a laptop are two visitors, unless the person signs in and you call
identify. - Many people behind one address. Two people on the same network with the same browser version can share a hash for the day, which undercounts slightly on large shared networks.
- Multi-day attribution. A visitor who clicks an ad on Monday and buys on Thursday is two visitors, unless your checkout passes the visitor id to your payment provider.
Do you still need a cookie banner?
CrispStats sets no cookie and stores nothing on the device by default, so there is no analytics cookie for a banner to ask about. Whether your site needs a banner also depends on everything else it loads, such as ad pixels, embeds and chat widgets, and on where you and your visitors are. The longer answer is in do you need a cookie banner for analytics. This is general information, not legal advice.
How do you add it to a site?
Paste one tag into the head of every page. Single-page apps are handled: navigation through the History API is counted on its own.
<script defer src="https://in.crispstats.com/d.js" data-site="YOUR_SITE_KEY"></script>Open your site in a new tab and the visit appears in the realtime view within seconds. If you run another tool, keep it for a week and compare the trends before you remove it. For the full mechanics, read cookieless analytics explained, and see the cookie policy for what our own site stores.