> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crispstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> CrispStats is a hosted, privacy-first web analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing, no mobile SDKs and no data import except a site's history from a Plausible export (Settings, Import and export).
> The script global is crispstats(...), site keys start with cs_pk_ and secret API keys start with cs_sk_. The script is served from https://in.crispstats.com/d.js and the REST API lives at https://crispstats.com/api/v1.
> There is no npm package to install. Integrations copy the script tag, the queue stub, crispstats.d.ts and proxy code from these docs or from Settings, Tracking code in the dashboard. A first-party proxy forwards one path of the site to https://in.crispstats.com/p/ and forwards only content-type, user-agent, accept-language, referer, origin, if-none-match and x-forwarded-for, never cookies.

# Frequently asked questions about CrispStats

> Short answers about CrispStats: cookies and consent, no npm package needed, why numbers differ from other tools, whether there is a free plan, what happens at the plan limit, and features that are not offered yet.

These are short answers to the questions people ask most about CrispStats: cookies and consent, whether there is an npm package, why the numbers differ from other tools, what happens when you go over a plan limit, and what CrispStats does not offer. Each answer links to the page with the full detail.

## 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 one `localStorage` key, `crispstats_ignore`, which only you set to [exclude your own browser](https://docs.crispstats.com/tracking/exclude-traffic.md#exclude-your-own-browser).

The one exception is [persistent visitors](https://docs.crispstats.com/privacy/persistent-visitors.md), 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](https://docs.crispstats.com/privacy/cookieless-tracking.md).

### 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](https://docs.crispstats.com/privacy/data-collected.md).

### 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 with `data-persist` only once you have the consent you need, or have established that you need none. See [compliance](https://docs.crispstats.com/privacy/compliance.md), 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 with `next/script`, Vite in `index.html`, Nuxt in `nuxt.config.ts`. For typed calls in TypeScript, copy the two small files on the [TypeScript](https://docs.crispstats.com/install/typescript.md) page: a declaration for `window.crispstats` and a queue stub. Server code sends events with one HTTP request: see [server-side events](https://docs.crispstats.com/track/server-side-events.md).

### 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](https://docs.crispstats.com/tracking/script-builds.md).

### 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](https://docs.crispstats.com/account/api-keys.md).

## 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](https://docs.crispstats.com/help/ad-blockers.md) 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](https://docs.crispstats.com/privacy/bot-filtering.md).
* **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](https://docs.crispstats.com/tracking/exclude-traffic.md).
* **Days follow the site's timezone.** A daily total covers midnight to midnight in the timezone set in **Settings**, **General**.

See [metrics](https://docs.crispstats.com/concepts/metrics.md) for how each number is defined.

## 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](https://docs.crispstats.com/account/plans-and-limits.md#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](https://docs.crispstats.com/account/plans-and-limits.md#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](https://docs.crispstats.com/account/plans-and-limits.md).

## 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](https://docs.crispstats.com/switch/import-from-plausible.md). 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](https://docs.crispstats.com/share/csv-export.md) and [raw events](https://docs.crispstats.com/share/raw-events.md) 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](https://docs.crispstats.com/install/overview.md), and your server can send events with [server-side events](https://docs.crispstats.com/track/server-side-events.md).

## Next steps

> [card] [Troubleshooting](https://docs.crispstats.com/help/troubleshooting.md)
>
> Find out why visits do not show up.

> [card] [Cookieless tracking](https://docs.crispstats.com/privacy/cookieless-tracking.md)
>
> How visitors are counted without storing anything.

> [card] [Plans and limits](https://docs.crispstats.com/account/plans-and-limits.md)
>
> What each plan includes and how overage works.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.