Privacy and cookies
Does CrispStats use cookies?
No. With the default setup the script sets no cookie and writes nothing to the visitor’s device. It reads onelocalStorage key, crispstats_ignore, which only you set to exclude your own browser.
The one exception is persistent visitors, which you switch on yourself in the site’s settings, after which the dashboard’s snippet carries data-persist. Then the script keeps a random id in localStorage.crispstats_vid so returning visitors are recognised across days.
How are visitors counted without cookies?
The collector derives an anonymous visitor id from a hash of a daily random salt, the site, the IP address and the User-Agent. The salt is replaced every day and the old one is deleted, so today’s ids cannot be linked to yesterday’s. The IP address and User-Agent are used for this and to read the device, browser and OS family, then discarded. See cookieless tracking.What does an event contain?
The site key, the page URL without the fragment and with its query string cut to UTM and click-id parameters, the referrer, the screen width, the browser language, the timezone name and a timestamp. Custom events add their name and properties. See data collected.Do I need a cookie banner or consent?
CrispStats cannot answer that for your site, because it depends on the laws that apply to you and on how you configure tracking. The facts you need for that decision: the default setup sets no cookies, stores nothing on the device and does not store IP addresses or User-Agents. Persistent visitors does store an identifier on the device, so load the script withdata-persist only once you have the consent you need, or have established that you need none. See compliance, and ask your own legal adviser if you are unsure.
Installing
Is there an npm package?
No. CrispStats is one script tag, and every framework loads that same tag: Next.js withnext/script, Vite in index.html, Nuxt in nuxt.config.ts. For typed calls in TypeScript, copy the two small files on the TypeScript page: a declaration for window.crispstats and a queue stub. Server code sends events with one HTTP request: see server-side events.
How large is the script?
d.js, with every optional module, is about 3.8 KB gzipped. d.core.js, without the optional modules, is about 2.2 KB. See script builds.
Is the public key in the tag a secret?
No. The public key,cs_pk_…, only tells the collector which site an event belongs to, and it is meant to be published. The secret API key, cs_sk_…, is for the REST API, the MCP server and server-side events. Never put it in a browser. See API keys.
Numbers
Why do my numbers differ from another analytics tool?
Every tool counts a little differently. These are the CrispStats rules that most often explain a gap:- Ad blockers. Some blockers stop analytics scripts, and they do not block every tool equally. A first-party proxy counts those visitors.
- Bots. The collector drops self-identified bots, headless browsers, HTTP clients, prerender and prefetch requests, verified bots, requests without a User-Agent and AI crawlers, at the level set under Bot filtering. See bot filtering.
- Visitors last one day. Without persistent visitors, the anonymous id changes at midnight in the site’s timezone, so someone who returns on another day is counted as a new visitor, and so is a visit from another browser, device or network.
- Sessions. A session ends after 30 minutes of inactivity, or when the visitor comes back through a different campaign or referrer.
- Pageviews. In a single-page app, a navigation to the URL that is already showing is not a new pageview. A reload, or a page restored from the browser’s back/forward cache, counts as a new view. Prerendered pages count only when they are shown.
- Pages that are never tracked. Local pages, automated browsers, your own browser with
crispstats_ignore, and any hostnames, paths and IP addresses you excluded. See exclude traffic. - Days follow the site’s timezone. A daily total covers midnight to midnight in the timezone set in Settings, General.
Plans
Is there a free plan?
No. Every account starts with a 14-day free trial, no card required, with every feature. To keep going, pick a plan before it ends: Starter, Growth or Scale. When the trial ends without a plan, collection stops and the dashboard locks, and your sites and their data are deleted 30 days later unless you pick a plan. See the trial.What happens when I go over my plan’s event limit?
On a paid plan nothing stops: the collector keeps recording, the dashboard stays open, and events beyond the plan’s allowance are billed at $1 for each started block of 100,000. In the trial the limit is hard. At 25,000 events in a calendar month (UTC), the workspace is paused: new events are not recorded, and the dashboard, public dashboards, widgets, API and email reports stop until you pick a plan or the next month begins. Everything recorded before the pause is kept, and you get a warning at 80%. See when the trial reaches its event limit.Are some features only on paid plans?
No. Every feature is in the trial and on every plan. Plans differ in monthly events, sites, seats, data retention, uptime monitors, Ask AI messages, API requests per day and support. See plans and limits.What CrispStats does not offer
Can I import data from another analytics tool?
From Plausible, yes: drop Plausible’s export on the Import and export tab of a site’s settings, and its daily totals come across. See import from Plausible. From other tools, such as Google Analytics, Fathom or Umami, not yet: your CrispStats history starts on the day you install the script. The same tab offers CSV export and raw events to take your data out.Can I self-host CrispStats?
No. CrispStats is a hosted service only. There is no self-hosted edition.Does CrispStats have session replay, heatmaps or A/B testing?
No. CrispStats does not record sessions, draw heatmaps, run A/B tests or manage feature flags.Is there a mobile SDK?
No. There are no SDKs for iOS, Android, React Native or Flutter. CrispStats tracks websites and web apps with the script, and your server can send events with server-side events.Next steps
Troubleshooting
Find out why visits do not show up.
Cookieless tracking
How visitors are counted without storing anything.
Plans and limits
What each plan includes and how overage works.