# Import from Matomo

> Move from Matomo to mettr with your history, from Matomo Cloud or your own server: make an auth token, paste it into mettr with your Matomo's address, pick the site and the days. Step by step.

Source: https://status.mettr.app/features/import/matomo

## Before you start

- **A mettr site with its script.** [Add the script](/docs/quick-start) first, or on the same day: mettr imports every day before its own first event, so nothing is counted twice and no day is left empty between the two.
- **View access to the site in Matomo**, for the user who makes the token: a token never has more access than its user.
- **Your Matomo on the internet**: mettr reaches it over https at a public address, and follows no redirect.
- **Your plan's history.** mettr imports as far back as [your plan](/pricing) keeps: six months on Free, two years on Pro, five on Business.

## 1. Make an auth token in Matomo

1. In Matomo, open **Administration** (the gear icon).
2. Under **Personal**, go to **Security**.
3. Choose **Create new token**, confirm your password and give it a description, such as `mettr`.
4. If your Matomo asks for the token's access, **View** is enough. **Only allow secure requests** can stay on: mettr sends the token in the body of a POST request, never in the address.
5. Create it and copy the token. It is shown only once.

## 2. Connect it in mettr

1. In mettr, open the site's **Settings**, then **Import**.
2. Beside **Matomo**, choose **Connect**.
3. Paste the token into **Auth token**.
4. Under **Server**, give the address where your Matomo opens, such as `https://example.matomo.cloud` or `https://example.com/matomo`.
5. Choose **Connect**. mettr tries the token at once and lists the sites it can view.

## 3. Pick the site and the days

1. Pick the Matomo site to import under **Property**.
2. Check the days: by default from as far back as your plan keeps to the day before your first event in mettr.
3. Choose **Start import**.

The import runs on mettr's side, each report asked once a month by day, newest first, with its progress on the Import page. You can close the page; **Cancel import** keeps the days read so far. The token is kept encrypted and forgotten when the import ends.

## What comes in

Each day's totals with bounces and visit length, pages and entry pages, sources (search engines, websites, social networks and AI assistants), campaigns, places, devices, browsers and your events by category and action. [What comes in from Matomo](/docs/import#from-matomo), and how it adds up with your own days, is in the docs.
