# Import from Umami

> Move from Umami to mettr with your history, from Umami Cloud or your own server: make an API key, paste it into mettr, pick the website and the days. Step by step.

Source: https://mettr.app/features/import/umami

## 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.
- **Your own server on the internet**, if you run Umami yourself: 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. Umami Cloud keeps six months on its free plan, so an import from it reaches that far.

## 1. Make an API key in Umami

The same on Umami Cloud and on your own server:

1. In Umami, click your profile, then **Settings**.
2. Go to **API keys** and choose **Create key**.
3. Copy the key. On your own server it is shown only once.

## 2. Connect it in mettr

1. In mettr, open the site's **Settings**, then **Import**.
2. Beside **Umami**, choose **Connect**.
3. Paste the key into **API key**.
4. If you run Umami yourself, give its address under **Server**, such as `https://umami.example.com`. Leave it empty for Umami Cloud.
5. Choose **Connect**. mettr tries the key at once and lists the websites it can read.

## 3. Pick the website and the days

1. Pick the website 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, a day at a time in the site's time zone, newest first, with its progress on the Import page. On Umami Cloud it keeps under Umami's limit of 50 requests each 15 seconds, so a year takes about half an hour. You can close the page; **Cancel import** keeps the days read so far. The key 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, referrers and campaign tags, places, devices, browsers and your events with their visitors. [What comes in from Umami](/docs/import#from-umami), and how it adds up with your own days, is in the docs.
