# Move from Fathom to Checkend

> Replace the Fathom script with Checkend. Run both for a period, convert fathom.trackEvent() calls and their values, and remove the Fathom script.

> **Caution**
> Your Fathom history does not move. Checkend imports only the raw events of Plausible Community Edition. Keep your Fathom account for as long as you need its data.

Fathom can [export your data](https://usefathom.com/docs/features/exporting) to CSV files, for pageviews or events. Keep that export if you close your Fathom account.

## Run both for a period

You can put both scripts on your site for some weeks. Then compare the numbers before you remove Fathom.

Expect different numbers:

- Fathom and Checkend both count a visitor with a salt that changes each day. Fathom uses a daily salt that [rotates at midnight UTC](https://usefathom.com/docs/troubleshooting/hashes-salts).
- In Fathom, a bounce is a visitor with one pageview in a 24-hour window. A second page later that day removes the bounce ([source](https://usefathom.com/docs/start/measurement)). In Checkend, a visit ends after 30 minutes without an event. See [Read the dashboard](/docs/dashboard.md).
- Checkend does not count some visits, for example bots that it recognizes. See [Visits that are not counted](/docs/install.md#visits-that-are-not-counted).

## Replace the script

1. Add the site in Checkend.
2. Add the Checkend snippet to the `<head>` of every page, as [Install the analytics script](/docs/install.md) shows.
3. Convert your Fathom events, as [Convert the events](#convert-the-events) shows.
4. Remove the Fathom script, as the next section shows.
5. Deploy your site.
6. Open your site.
7. Open the dashboard of the site in Checkend and select the period realtime. Your visit shows there.

### Remove the Fathom script

> **Caution**
> A call to `fathom.trackEvent()` without the Fathom script can give a JavaScript error. Replace or remove each `fathom` call before you remove the script.

1. Replace or remove each `fathom.trackEvent()` and `fathom.trackGoal()` call in your code.
2. Find the Fathom script tag in the `<head>` of your pages. It loads `cdn.usefathom.com/script.js` and has a [`data-site` attribute](https://usefathom.com/docs/script/embed).
3. Remove the script tag.

## Convert the events

> **Caution**
> Do not put names, email addresses or other personal data in an event name or a property.

There are no goals to set up. An event shows with its properties when it arrives.

A Fathom event has an event name and one optional value, `_value`, in cents ([source](https://usefathom.com/docs/events/overview)). Older code can use `fathom.trackGoal()`. Fathom no longer supports it for new events. Convert those calls too.

```js
// Fathom
fathom.trackEvent('signup', { _value: 1000 });

// Checkend
window.checkend('Signup', { props: { value: '10.00' } });
```

- Checkend stores each value as text. The docs describe no revenue report. A purchase is an event with properties.
- You can add other properties to an event, for example `plan`. Keep in the [limits](/docs/events.md#limits): 30 properties in one event, and 2,000 bytes for a property value.
- To send events before the script loads, add the queue that [Send custom events](/docs/events.md) shows.

## Fathom and Checkend

| Fathom | Checkend |
| --- | --- |
| [`fathom.trackEvent('name', { _value })`](https://usefathom.com/docs/events/overview) | `window.checkend('Name', { props: { … } })`. See [Send custom events](/docs/events.md). |
| [Events and conversions](https://usefathom.com/docs/events/overview), with a conversion rate | No goals to set up. Each event shows when it arrives. |
| An event value in cents, with a currency for each event or site, and sales totals on the dashboard ([source](https://usefathom.com/docs/events/ecommerce-conversions)) | No revenue reports. Send the amount as an event property. |
| [UTM parameters](https://usefathom.com/docs/start/utms) on the dashboard | Checkend reads `utm_source`, `utm_medium`, `utm_campaign`, `utm_content` and `utm_term`. It also reads `ref` and `source` when there is no `utm_source`. |
| Funnels: not in the Fathom docs. Fathom says that a feature that is [not in its docs does not exist](https://usefathom.com/docs/troubleshooting/features). | Funnels of 2 to 8 steps from pages or events, in order and within 7 days. See [Read the dashboard](/docs/dashboard.md#funnels). |
| An [API](https://usefathom.com/api/v1) to manage sites and events and pull reports. Each request counts toward your monthly pageviews. | The [HTTP API](/docs/api.md) gives metrics by up to 3 dimensions and exports raw events. |
| An [LLM reference](https://usefathom.com/api/llms.txt) of the API. We found no MCP server on usefathom.com. | A hosted MCP server, with a bearer token. See [Connect an AI agent](/docs/agents.md). |

## Consent and privacy

The Checkend script sets no cookies and stores nothing in the browser. Whether you need consent depends on your site and your law. Ask your lawyer.

[What an event holds](/docs/privacy.md) lists the data that Checkend stores. Review your privacy policy after you remove Fathom.

## Compare

[Compare the two tools](/compare/fathom/): visitor counts, events, funnels, AI agents and price, with links to the Fathom docs.

## Prompt for a coding agent

```text
Replace Fathom Analytics with Checkend web analytics in this project.
1. Ask me for the snippet of the site from my Checkend account. Do not make up the site key.
2. Add the snippet one time, so that it is in the head of every page.
3. Find each fathom.trackEvent('name', { ... }) and fathom.trackGoal() call. Replace it with window.checkend('Event Name', { props: { key: 'value' } }). Use Title Case for the name.
4. If a call sends _value in cents, send the amount as a text property, for example props: { value: '10.00' }.
5. Do not put names, email addresses or other personal data in the name or the properties.
6. Remove the Fathom script tag.
7. Show me the change. Stop before you deploy and wait for my approval.
```
