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

> Move from Fathom Analytics to CrispStats: run both side by side, map fathom.trackEvent calls and event values, and see what does not carry over.

To switch from Fathom, add the CrispStats script next to your Fathom script, mirror your `fathom.trackEvent` calls, compare for a while, then remove Fathom. CrispStats cannot import Fathom data, so your CrispStats history starts on the day you install the script.

Most of the move is a change of function names. The main difference is revenue: in CrispStats it usually comes from your payment provider, attributed to the visit that led to the payment, and amounts are integers in minor units, like Fathom's cents.

## Run both side by side

**1. Add the CrispStats script**

Keep the Fathom 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 `fathom.trackEvent(…)` call, add the matching `crispstats(…)` call. See the mapping below.

**3. Add goals for conversions**

Add a CrispStats [goal](https://docs.crispstats.com/dashboard/goals.md) for each event you treat as a conversion, to see its conversion rate.

**4. Compare, then remove Fathom**

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

## What maps to what

| Fathom | CrispStats | Notes |
| - | - | - |
| `fathom.trackEvent("newsletter signup")` | `crispstats("newsletter signup")` | Use the same name so reports read the same. |
| `fathom.trackEvent("cart add", { _value: 100 })` (value in cents) | `crispstats("cart add", { value: 100 })` for a property, or a goal with a **Value per completion** | A property is reported as a value of the event. A goal value adds revenue each time the goal is completed. |
| An event value for a sale | [Revenue](https://docs.crispstats.com/revenue/overview.md) from your payment provider, or `crispstats.revenue(4900, "USD")` | Amounts are integers in minor units, like Fathom's cents. 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: each payment is attributed to the first touch. |
| An event name cannot be renamed once it is sent | Event names are whatever your code sends | To rename, change the name in your code. Old and new names show as separate rows. |
| Event name allow and block lists | [Exclude traffic](https://docs.crispstats.com/tracking/exclude-traffic.md) | CrispStats excludes by path, hostname and IP address, not by event name. |

## 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), [visitor profiles](https://docs.crispstats.com/dashboard/visitors.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) and [AI traffic and crawlers](https://docs.crispstats.com/ai/ai-traffic.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 Fathom. The only tool it imports from is [Plausible](https://docs.crispstats.com/switch/import-from-plausible.md).
* **Event values as money.** In CrispStats, a property called `value` is an ordinary property, not money. Use goal values or real payments for revenue.

## FAQ

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

> [accordion] Do I need a cookie banner for CrispStats?
>
> CrispStats sets no cookie and stores nothing on the device by default. See [compliance](https://docs.crispstats.com/privacy/compliance.md) for what it collects. This is not legal advice.

> [accordion] Can I serve CrispStats from my own domain?
>
> Yes, with one forwarding rule under a path of your own, separate from anything you set up for Fathom. See [proxy by host](https://docs.crispstats.com/tracking/proxy.md).

## Next steps

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

> [card] [Goals](https://docs.crispstats.com/dashboard/goals.md)
>
> Turn events into conversions, with a value.

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

> [!NOTE]
>
> Facts about Fathom (`fathom.trackEvent(name, options)`, the `_value` option in cents, that an event cannot be renamed once it is sent, and the Firewall event lists) are from Fathom's documentation, [https://usefathom.com/docs/events/overview](https://usefathom.com/docs/events/overview), read on 2026-11-23. Other Fathom features were not checked for this page.


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