What the script sends
Each event is a small JSON payload. These are all the fields; the first block is on every event, the rest only on the event types that need them.
The script cuts string property values at 500 characters but does not shorten the other fields. The collector drops an event whose fields are over their limits, such as an event name over 120 characters, a property name over 60 or a user id over 200, and a browser gets no error for it.
The fragment (
#…) is never sent unless you add data-hash for a hash router. See single-page apps.
Query strings are cut in the browser
Query strings carry license keys, password reset tokens, checkout session ids and e-mail addresses, so the script cuts them before anything leaves the page, for the page URL and the referrer. It keeps only:utm_source,utm_medium,utm_campaign,utm_term,utm_content,ref,sourceandvia, with their values,- ad click ids (
gclid,gbraid,wbraid,msclkid,fbclid,ttclid,twclid,li_fat_id), with the value replaced by1, - the parameters you list in
data-keep-params, with their values.
/reset?token=abc123&utm_source=mail is sent as /reset?utm_source=mail. data-keep-params="*" turns this off and sends the whole query string. See script attributes.
Two kinds of event carry other URLs, and the browser cuts them the same way: the url property of Outbound link and File download events, and the source of a JavaScript error. Both lose their fragment and every query parameter that is not kept. An error’s stack trace is sent as the browser reports it, so it can still contain script URLs with their query strings.
What the collector derives and discards
The IP address is also used in memory for rate limiting and to match your excluded IP addresses. Excluded addresses are saved only as a SHA-256 hash and compared hash to hash.
What is stored for each event
No IP address, User-Agent string, full referrer URL, screen width or timezone is stored.
Paths and query strings
What the browser sends is reduced again on the collector:- The query string is removed from the stored path, except the parameters you keep under Query parameters in Settings, General, an allowlist for parameters that make a page different, such as
pageorlang. Everything else is dropped. When you keep a parameter there, the snippet in Settings, Tracking code adds it todata-keep-paramsso the browser sends it. - UTM values are kept in their own fields, each cut at 200 characters.
ref,sourceandviaare read asutm_sourcewhenutm_sourceis absent. - Query parameter names, without their values, are checked for ad click ids to classify a visit as paid. They are not stored.
- Duplicate slashes are collapsed, a trailing slash is removed, and the path is cut at 1,024 characters.
data-exclude or Excluded paths, or change the URLs.
Fragments
The script never sends the fragment unless you adddata-hash, and then only a route that starts with #/ or #!/. The collector also keeps only a hash route that starts with #/ or #!/, normalised like a path, and drops any query string inside it. Other fragments, such as #pricing or #access_token=…, are not stored.
Location precision
Location comes from Cloudflare’s estimate for the connection, not from the browser’s location API. The collector keeps the country, region and city, and rounds latitude and longitude to 0.1 degree, about 11 km, before anything is broadcast to the live view or stored. When the collector is reached through your own proxy, the network location describes your server. A proxy that knows the visitor’s location passes it in location headers, and the collector uses them the same way. Without them, only the country is kept, taken from the visitor’s timezone name. See location behind a proxy.Payments
Payments read from Stripe, Polar, Dodo Payments, Creem, Whop, Razorpay, Lemon Squeezy, RevenueCat and Superwall can include the customer’s email address. The collector stores two derived values and never the address:- a SHA-256 hash of the lowercased address, which links a customer’s payments together,
- a masked form, such as
j***@e***.co.uk, enough to recognise but not to contact.
crispstats.revenue() carries no email at all. Each payment also stores the provider, its own id, kind, amount, currency, time, product name and the visitor, user and session ids it was attributed to. See revenue attribution.
Domain Rating
For each site, the collector asks Ahrefs for the Domain Rating of the site’s own domain, at most once a day. It sends the domain and nothing else: no visitor data and no site id. The value and its date are stored with the site and deleted with it.Widgets
For each widget, CrispStats keeps the time it was last loaded and the host name of the page it was loaded on, written at most once every 10 minutes. Widgets set no cookies, store nothing on a visitor’s device and do not count the people who see them. IP addresses are used in memory for rate limiting only and are never stored.Data you control
CrispStats stores whatever you send in these fields, so keep personal data out of them unless you mean to collect it:- custom event names and properties,
- the user id and traits you pass to
crispstats.identify(), which are kept with events and in the visitor’s profile, - error messages and stacks from
data-errors, which can contain URLs from your own site, - page paths.
Retention
Data is kept according to the plan of the workspace that owns the site, or its trial:
A daily job removes expired data. Cut-offs align to the start of a UTC month: on a 6-month plan, on 16 November everything before 1 May is removed, so you always keep at least the full retention period plus the current month. Retention applies to events, AI crawler hits, sessions, visitor profiles (by the date they were last seen), error groups, daily totals (including days imported from Plausible) and resolved uptime incidents. Payments and refunds are kept on every plan until the site is deleted or you delete your account; to remove one buyer’s payments, write to privacy@crispstats.com. When a workspace has no paid plan after its trial, or after a plan is cancelled or left unpaid, its sites and all their data are deleted 30 days later: see when the trial or a plan ends.
Some data has a fixed window on every plan: hourly totals are kept 35 days, raw uptime checks 90 days and alert delivery logs 90 days. When you delete a site, its payments are deleted with it, and a cleanup job removes its events, sessions, visitor profiles, AI crawler hits, uptime checks and totals.
Learn more on crispstats.com
- Glossary: cookieless tracking, visitor hash and referrer.
Next steps
Cookieless tracking
How the visitor id is built from the IP address and User-Agent.
Exclude traffic
Keep pages, hostnames and IP addresses out of your data.
Plans and limits
Compare retention and allowances across plans.