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

# Switch from Plausible to CrispStats

> Move from Plausible to CrispStats: import your Plausible history, run both scripts side by side, map plausible() calls, CSS class events and goals, and see what does not carry over.

To switch from Plausible, add the CrispStats script next to your Plausible script, [import your Plausible history](https://docs.crispstats.com/switch/import-from-plausible.md) from Plausible's export, mirror your `plausible()` calls and goals, compare for a while, then remove Plausible. The import brings your daily totals across, so your charts continue from Plausible's numbers instead of starting on the day you install the script.

The event APIs line up closely. The main differences: custom events show in CrispStats without creating a goal first, and revenue usually comes from your payment provider instead of the browser.

## Run both side by side

**1. Add the CrispStats script**

Keep the Plausible script and add the CrispStats tag to every page. Follow the guide for your stack in [install](https://docs.crispstats.com/install/overview.md). The two scripts use different globals and send to different hosts, so they do not interfere.

**2. Import your Plausible history**

In Plausible, open **Site settings**, **Imports & exports**, and choose **Export data**. Drop the `.zip` Plausible emails you on the **Import and export** tab of the site's settings in CrispStats. Imported days end the day before CrispStats's first recorded day, so no day is counted twice. See [import from Plausible](https://docs.crispstats.com/switch/import-from-plausible.md).

**3. Mirror your events**

Next to each `plausible("…")` call, add the matching `crispstats("…")` call, and copy class-based events to `data-cs-event` attributes. See the mapping below.

**4. Recreate your goals**

Add a CrispStats [goal](https://docs.crispstats.com/dashboard/goals.md) for each Plausible goal you track as a conversion: a custom event or a page path, which can use wildcards.

**5. Compare, then remove Plausible**

Compare for at least a full week, so weekdays and weekends are both covered. Then remove the Plausible script and its calls. Before you cancel Plausible, keep its export: you can import it again later, for example after a [stats reset](https://docs.crispstats.com/account/reset-stats.md).

## What maps to what

| Plausible | CrispStats | Notes |
| - | - | - |
| `plausible("Download", { props: { method: "HTTP" } })` | `crispstats("Download", { method: "HTTP" })` | CrispStats takes properties directly as the second argument. |
| `class="plausible-event-name=Signup"` | `data-cs-event="Signup"` | Properties go in `data-cs-prop-*` attributes. See [declarative events](https://docs.crispstats.com/track/declarative-events.md). |
| A custom event goal must exist for an event to show | Every event shows under **Events** as soon as it is sent | Add a [goal](https://docs.crispstats.com/dashboard/goals.md) to get a conversion rate for it. |
| `revenue` in the event options | [Revenue](https://docs.crispstats.com/revenue/overview.md) from your payment provider, or `crispstats.revenue(4900, "USD")` | Connect Stripe, Polar, Paddle, Dodo Payments, Creem, Whop, Razorpay, Lemon Squeezy, Shopify, RevenueCat, Superwall, the App Store or the Shopify App Store with a key, or use the [payment API](https://docs.crispstats.com/revenue/payment-api.md). Amounts are in minor units. |
| `interactive: false` (excluded from bounce rate) | No equivalent | In CrispStats every custom event counts as interaction for bounce rate. See [metrics](https://docs.crispstats.com/concepts/metrics.md#bounce-rate). |

## What CrispStats adds

All of these are on every plan and in the trial. Outbound links, file downloads and 404 pages are optional attributes on the tag ([script attributes](https://docs.crispstats.com/tracking/script-attributes.md)), and AI assistants such as ChatGPT and Perplexity have their own [channel](https://docs.crispstats.com/concepts/metrics.md#traffic-channels). Beyond that: [revenue attribution](https://docs.crispstats.com/revenue/overview.md) from payment webhooks, [funnels](https://docs.crispstats.com/dashboard/funnels.md), [retention](https://docs.crispstats.com/dashboard/retention.md), [web vitals](https://docs.crispstats.com/health/web-vitals.md), [JavaScript errors](https://docs.crispstats.com/health/errors.md), [uptime monitoring](https://docs.crispstats.com/health/uptime.md), [AI traffic and crawlers](https://docs.crispstats.com/ai/ai-traffic.md) and [visitor profiles](https://docs.crispstats.com/dashboard/visitors.md).

## Why the numbers will differ

Two tools never count exactly alike: bot filtering rules, how a session is split, how single-page navigation is counted and how ad blockers treat each script. The same differences can make a chart step where imported days end and recorded days begin; see [why a chart may step at the seam](https://docs.crispstats.com/switch/import-from-plausible.md#why-a-chart-may-step-at-the-seam). A CrispStats session ends after 30 minutes without activity or when the visitor returns through a different referrer or campaign. [Why do my numbers differ](https://docs.crispstats.com/help/faq.md#why-do-my-numbers-differ-from-another-analytics-tool) lists every CrispStats rule. Compare trends, not exact totals.

## What does not carry over

* **Part of your history.** The [import](https://docs.crispstats.com/switch/import-from-plausible.md) brings daily totals for visitors, pages, sources, countries, devices and custom events. Hostnames, regions, cities, custom properties and scroll depth are not imported, and the Visitors page, Funnels, Retention, Goals and revenue attribution start on the first day CrispStats recorded. History you imported into Plausible from another tool is not in Plausible's export.
* **Self-hosting.** CrispStats is hosted only. If you run Plausible on your own server, that option does not exist here.
* **Settings that live in Plausible.** Recreate what you need in CrispStats: [goals](https://docs.crispstats.com/dashboard/goals.md), [excluded paths and hostnames](https://docs.crispstats.com/tracking/exclude-traffic.md), [public dashboards](https://docs.crispstats.com/share/public-dashboard.md) and [alerts](https://docs.crispstats.com/alerts/overview.md).

## FAQ

> [accordion] Can I import my Plausible data?
>
> Yes. Drop Plausible's export on **Settings**, **Import and export**, and your daily totals come across. See [import from Plausible](https://docs.crispstats.com/switch/import-from-plausible.md) for what is and is not imported.

> [accordion] Do I have to rename my events?
>
> No. Use the same names in `crispstats()` and `data-cs-event`, so your reports read the same. Names can be up to 120 characters.

> [accordion] Can I keep a proxy I set up for Plausible?
>
> Your Plausible proxy forwards to Plausible. CrispStats needs its own rule under its own path. See [proxy by host](https://docs.crispstats.com/tracking/proxy.md).

## Next steps

> [card] [Import from Plausible](https://docs.crispstats.com/switch/import-from-plausible.md)
>
> Bring your Plausible history across.

> [card] [Declarative events](https://docs.crispstats.com/track/declarative-events.md)
>
> The `data-cs-event` attributes.

> [card] [CrispStats and Plausible](https://crispstats.com/vs/plausible)
>
> The side-by-side comparison on crispstats.com.

> [!NOTE]
>
> Facts about Plausible (the `plausible(eventName, options)` call with `props`, `revenue` and `interactive`, the `plausible-event-name=` class, and that an event shows only once a matching custom event goal exists) are from Plausible's documentation, [https://plausible.io/docs/custom-event-goals](https://plausible.io/docs/custom-event-goals), read on 2026-11-23. Plausible's self-hosting option was not checked for this page.


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