> ## 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 Umami to CrispStats

> Move from Umami to CrispStats: run both scripts side by side, map umami.track, data-umami-event attributes and identify, and see what does not carry over.

To switch from Umami, add the CrispStats script next to your Umami script, mirror your `umami.track` calls and `data-umami-event` attributes, compare for a while, then remove Umami. CrispStats cannot import Umami data, so your CrispStats history starts on the day you install the script.

The event APIs line up closely, so most of the move is a search and replace. CrispStats is hosted only: if you self-host Umami today, that option does not exist here.

## Run both side by side

**1. Add the CrispStats script**

Keep the Umami 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. Mirror your events**

Next to each `umami.track(…)` call, add the matching `crispstats(…)` call, and add `data-cs-event` next to each `data-umami-event`. See the mapping below.

**3. Add goals for conversions**

Add a CrispStats [goal](https://docs.crispstats.com/dashboard/goals.md) for each event or page you treat as a conversion, to get its conversion rate and, with a value, its revenue.

**4. Compare, then remove Umami**

Compare for at least a full week. Then remove the Umami script, its calls and its attributes. Export anything you want to keep first.

## What maps to what

| Umami | CrispStats | Notes |
| - | - | - |
| `umami.track("signup", { plan: "pro" })` | `crispstats("signup", { plan: "pro" })` | Flat properties; strings are cut to 500 characters, up to 40 per event. |
| `data-umami-event="signup"` | `data-cs-event="signup"` | No JavaScript needed in either. |
| `data-umami-event-plan="pro"` | `data-cs-prop-plan="pro"` | The suffix becomes the property key in both. |
| `umami.track()` (a manual pageview) | `crispstats.pageview()` | Automatic pageviews cover most apps. For routers the script cannot see, use `data-manual`. See [single-page apps](https://docs.crispstats.com/tracking/single-page-apps.md#manual-pageviews). |
| `umami.identify("user_123", { plan: "pro" })` | `crispstats.identify("user_123", { plan: "pro" })` | Ties the visitor to your own user id for this page. Read [identify signed-in users](https://docs.crispstats.com/track/identify-users.md) for the privacy impact. |
| Revenue | [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). |

A quick way to find what to change: search your code for `umami.track`, `umami.identify` and `data-umami-event`.

## What CrispStats adds

On every plan and in the trial: [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 a [live globe](https://docs.crispstats.com/dashboard/realtime.md).

## Why the numbers will differ

The tools filter bots differently, split sessions differently and are treated differently by ad blockers. A CrispStats visitor id lasts one day unless [persistent visitors](https://docs.crispstats.com/privacy/persistent-visitors.md) is on, and a 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

* **Your history.** CrispStats does not import data from Umami. The only tool it imports from is [Plausible](https://docs.crispstats.com/switch/import-from-plausible.md).
* **Self-hosting and open source.** CrispStats is hosted only and its server is not open source.
* **Direct database access.** CrispStats does not give database access; use the [REST API](https://docs.crispstats.com/api-reference/introduction.md), [CSV export](https://docs.crispstats.com/share/csv-export.md) or the [MCP server](https://docs.crispstats.com/api-reference/mcp.md) to get data out.

## FAQ

> [accordion] Can I import my Umami data?
>
> No. CrispStats has no import from Umami, so run both side by side until you have enough history in CrispStats.

> [accordion] Can I keep my event names?
>
> Yes. Use the same names in `crispstats()` and `data-cs-event`. Names can be up to 120 characters and property keys up to 60.

> [accordion] Does CrispStats use cookies?
>
> CrispStats sets no cookie and stores nothing on the device by default. See [cookieless tracking](https://docs.crispstats.com/privacy/cookieless-tracking.md) for how it counts visitors.

## Next steps

> [card] [Install the script](https://docs.crispstats.com/install/overview.md)
>
> Find the guide for your stack.

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

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

> [!NOTE]
>
> Facts about Umami (`data-umami-event` and `data-umami-event-*`, and the `umami.track` and `umami.identify` signatures) are from Umami's documentation, [https://docs.umami.is/docs/track-events](https://docs.umami.is/docs/track-events) and [https://docs.umami.is/docs/tracker-functions](https://docs.umami.is/docs/tracker-functions), read on 2026-11-23. Umami's self-hosting and cookie behaviour were not checked for this page, so they are not described as facts about Umami.


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