# Move from Umami to Checkend

> Replace the Umami script with Checkend. Run both for a period, convert umami.track() calls and data-umami-event attributes, and remove the Umami script.

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

Umami Cloud can [export the data of a website](https://docs.umami.is/docs/cloud/export-data) to CSV files. Keep that export if you close your Umami account.

## Run both for a period

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

Expect different numbers:

- Umami makes its visitor identifier from the website, the IP address, the user agent and a salt that [rotates monthly by default](https://docs.umami.is/docs/metric-definitions#visitor-identification). Checkend uses a salt that changes each day.
- A person who returns on three days in one month can be one visitor in Umami and three visitors in Checkend.
- 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 Umami events, as [Convert the events](#convert-the-events) shows.
4. Remove the Umami 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 Umami script

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

1. Replace or remove each `umami.track()` and `umami.identify()` call in your code.
2. Find the Umami script tag in the `<head>` of your pages. It loads `script.js` and has a [`data-website-id` attribute](https://docs.umami.is/docs/tracker-configuration).
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.

Umami sends events with [`umami.track()`](https://docs.umami.is/docs/tracker-functions) or with [`data-umami-event` attributes](https://docs.umami.is/docs/track-events).

```js
// Umami
umami.track('signup-button', { plan: 'pro' });

// Checkend
window.checkend('Signup Button', { props: { plan: 'pro' } });
```

```html
<!-- Umami -->
<button data-umami-event="Signup Button" data-umami-event-plan="pro">Sign up</button>

<!-- Checkend -->
<button data-ck="Signup Button" data-ck-plan="pro">Sign up</button>
```

- Checkend stores each value as text.
- 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.
- `umami.identify()` sets a distinct ID that links the sessions of one user across visits and devices ([source](https://docs.umami.is/docs/distinct-ids)). Checkend has no user IDs. Remove these calls.

## Umami and Checkend

| Umami | Checkend |
| --- | --- |
| [`umami.track('name', { … })`](https://docs.umami.is/docs/tracker-functions) | `window.checkend('Name', { props: { … } })`. See [Send custom events](/docs/events.md). |
| [Goals](https://docs.umami.is/docs/goals) for a page or an event | No goals to set up. Each event shows when it arrives. |
| [Properties](https://docs.umami.is/docs/track-events) show on the Properties tab of the Events page. | Each event shows with its properties, with no setup. You can filter by a property. |
| [UTM parameters](https://docs.umami.is/docs/utm) | 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](https://docs.umami.is/docs/funnel) on all plans. Steps are pages, events or URL wildcards, with a maximum number of minutes between two steps. | Funnels of 2 to 8 steps from pages or events, in order and within 7 days. See [Read the dashboard](/docs/dashboard.md#funnels). |
| [Distinct IDs](https://docs.umami.is/docs/distinct-ids) with `umami.identify()` | No user IDs. Checkend does not follow a person across days. |
| An [official MCP server](https://docs.umami.is/docs/cloud/mcp), hosted or local, read-only. It uses an API key from the Pro, Business or Enterprise plan. | A hosted MCP server and the [HTTP API](/docs/api.md), 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 Umami.

## Compare

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

## Prompt for a coding agent

```text
Replace Umami 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 umami.track('name', { ... }) call. Replace it with window.checkend('Event Name', { props: { key: 'value' } }). Use Title Case for the name.
4. Find each data-umami-event attribute. Replace it with data-ck="Event Name", and each data-umami-event-* attribute with data-ck-*.
5. Remove each umami.identify() call. Checkend has no user IDs.
6. Do not put names, email addresses or other personal data in the name or the properties.
7. Remove the Umami script tag.
8. Show me the change. Stop before you deploy and wait for my approval.
```
