identify(), which attaches your own user id to events.
This page collects the facts a privacy or legal reviewer usually asks for, with links to the detail. It describes how the product behaves. It is not legal advice: whether you need consent or a banner depends on your setup and the rules where you and your visitors are, and your own counsel should decide that.
Fact sheet
These facts describe the default script tag with no options.
The full list of fields is on what data CrispStats collects.
Options that change the picture
Persistent visitors
Off by default. It needs both a site setting and thedata-persist attribute. When on, the script stores a random id in localStorage.crispstats_vid and sends it with every event. The collector stores a per-site hash of it, so the same browser is recognised across days.
This stores an identifier on the visitor’s device. Under the ePrivacy Directive, UK PECR and similar rules that generally requires consent first, and under GDPR the id is personal data. See persistent visitors for how to load it only after consent and how to delete the id.
identify()
When you callcrispstats.identify(userId, traits), the user id you pass is attached to that event and to later events on the same page, and the traits are stored in that visitor’s profile. CrispStats then groups that person’s visits under your user id across days and devices, and retention cohorts count their returns. The script keeps the id in memory only and stores nothing in the browser. What you pass is up to you: an internal id reveals less than an email address. See identify users.
Revenue attribution
Payments read from your payment provider may contain the customer’s email address. The collector stores a SHA-256 hash of the lowercased address and a masked form such asj***@e***.com, never the address. To attribute a payment to a visit, you pass the visitor id to your payment provider in the crispstats_visitor_id metadata key, or as client_reference_id with Stripe Checkout. See revenue attribution.
Data you send yourself
Custom event names and properties,identify() traits, page paths and JavaScript error messages and stacks (with data-errors) are stored as you send them. Keep personal data out of them unless you intend to collect it.
Where data is processed
CrispStats is a hosted service. The collector and tracking script run on Cloudflare’s network, which handles requests in transit, IP addresses included, and the data is stored in a Postgres database run by Supabase. The full list of subprocessors, with what each handles and where, is at crispstats.com/legal/subprocessors. Anthropic receives data only when someone in your workspace uses Ask AI: the question, any picture or file they attach to it, the report figures needed to answer it and, when Ask AI reads the site’s setup, the names of its goals, funnels, alerts and monitors, its monitor URLs and its chart notes. The data processing agreement is at crispstats.com/legal/dpa. It applies when you accept the terms of service, and you can ask for a signed copy atprivacy@crispstats.com. The privacy policy for CrispStats itself is at crispstats.com/legal/privacy.
Retention and deletion
Traffic data is kept for 6 months during the trial, 24 months on Starter, 60 months on Growth, and for as long as you are subscribed on Scale. Payment records are kept on every plan until you delete the site or your account. A daily job removes expired data. When you delete a site, its payments, events, sessions and visitor profiles are removed. See retention for the exact rules.Requests from individuals
Under the data processing agreement, CrispStats passes a request from one of your visitors to you rather than answering it directly. With the default setup there is no stored identifier that points to a person, so there is usually nothing to look up. If you useidentify(), the events and profile linked to that person carry the user id you sent.
Contacts
Learn more on crispstats.com
- Glossary: cookie consent and cookieless tracking.
- Article: do you need a cookie banner for analytics? This is general information, not legal advice.
Next steps
Data collected
Every field, what is derived and discarded, and how long it is kept.
Cookieless tracking
The daily visitor id in detail.
Persistent visitors
What changes when you recognise visitors across days.