> ## 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.

# Reset a site's stats

> Delete everything CrispStats recorded for a site and start counting from zero while keeping its settings, snippet, goals and payments: who can, what is deleted, what stays and how long it takes.

Resetting stats deletes every visit, pageview, event and error CrispStats recorded for a site, and any imported history, then counting starts again at once. The site itself stays: its settings, snippet, goals, alerts and payments are kept, so nothing needs to be installed again. Use it after a launch to drop your own test traffic, or when a site's numbers should start over.

> [!WARNING]
>
> A reset cannot be undone. To keep a copy, [download your raw events](https://docs.crispstats.com/share/raw-events.md) first.

## Who can reset

Owners and admins of the site's workspace. Members and viewers see the **Reset stats** row without its button.

## Reset stats

**1. Open the danger zone**

Open the site, then **Settings** and the **Danger zone** tab. In the **Reset stats** row, select **Reset stats**.

**2. Check what will be deleted**

The dialog counts what goes, for example `This deletes 48,210 pageviews and events, 6,112 visits and 1,059 imported days. 214 payments and every setting stay. This cannot be undone.` The counts come from daily totals. **Download raw events first** opens the raw events download.

**3. Confirm with the domain**

Type the site's domain exactly as shown and select **Reset stats**.

The dialog closes as soon as the reset is queued, and the row says `Resetting stats. Reports show the old numbers until it finishes, usually within a minute.` The reset runs as one step: your reports show the old numbers until the moment they show none, never half of them. If you keep the page open, a message says `Stats reset for example.com` when it finishes.

## What is deleted

Everything recorded for the site before the moment you confirmed:

* Every event: pageviews, custom events, revenue events, identify calls, web vitals and errors
* Visits, visitor profiles and their journeys
* Error groups
* AI crawler hits
* Daily and hourly totals
* History [imported from Plausible](https://docs.crispstats.com/switch/import-from-plausible.md)

Events that arrive after you confirm are kept, so counting restarts the moment you confirm, not when the reset finishes.

## What stays

* The site, its domain, timezone, currency and every setting, including exclusions, bot filtering and persistent visitors
* The public key and snippet, so the site does not go back to waiting for its first visit
* Goals, funnels, chart notes, alerts, email reports, uptime monitors and their history, widgets and the public dashboard
* Revenue connections and every payment. Revenue totals come back in the charts as the daily totals are rebuilt from the payments, shortly after the reset.

## While a reset runs

You cannot start an [import](https://docs.crispstats.com/switch/import-from-plausible.md), a [transfer](https://docs.crispstats.com/account/transfer-a-site.md) or a second reset of the site until it finishes. Each says so and tells you to try again when the reset is done.

## Errors

| Message | Cause | Way out |
| - | - | - |
| `Stats were not reset: the typed domain differs from example.com. Nothing was deleted.` | The typed domain does not match. | Type the domain exactly as the dialog shows it. |
| `Stats were not reset: an import is running. Nothing was deleted.` | An import of the site is running. | Wait for the import to finish, then reset. |
| `Stats were not reset: a reset is already running. Nothing was deleted.` | A reset of the site is already queued or running. | Wait for it to finish. |
| `The reset did not finish and nothing was deleted. Try again, or write to hello@crispstats.com.` | The reset failed, or did not finish within 30 minutes. Nothing was deleted. | Select **Reset stats** again. If it fails again, write to support. |

## Reset or delete

| | Reset stats | Delete site |
| - | - | - |
| Recorded data | Deleted | Deleted |
| Payments | Kept | Deleted |
| Settings, goals, alerts, monitors, widgets | Kept | Deleted |
| Public key and snippet | Keep working | Stop counting |
| Place under your plan's site limit | Still used | Freed |

To delete a site instead, see [delete a site](https://docs.crispstats.com/account/sites-and-settings.md#delete-a-site).

## Next steps

> [card] [Raw events](https://docs.crispstats.com/share/raw-events.md)
>
> Download a month of events before you reset.

> [card] [Exclude traffic](https://docs.crispstats.com/tracking/exclude-traffic.md)
>
> Keep your own visits out from now on.

> [card] [Import from Plausible](https://docs.crispstats.com/switch/import-from-plausible.md)
>
> Reset first, then bring in your Plausible history.


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