# Import from Simple Analytics

> Move from Simple Analytics to mettr with your history: make an API key, paste it into mettr, pick the days, and each day's page views, pages, referrers and events come in. Step by step.

Source: https://status.mettr.app/features/import/simple-analytics

## 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.
- **API access in Simple Analytics.** Making an API key needs an active trial or a plan that includes API access.
- **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 API key in Simple Analytics

1. In Simple Analytics, open your **Account** settings and find **API keys**.
2. Create a key and copy it. It starts with `sa_api_key_`.

mettr only reads with it. The key belongs to your user in Simple Analytics, not to a team.

## 2. Connect it in mettr

1. In mettr, open the site's **Settings**, then **Import**.
2. Beside **Simple Analytics**, choose **Connect**.
3. Paste the key into **API key**, and check the **Website**: its hostname in Simple Analytics, such as `example.com`.
4. Choose **Connect**. mettr tries the key at once and says if Simple Analytics refuses it.

## 3. Pick the days and start

1. Check the days: by default from as far back as your plan keeps to the day before your first event in mettr.
2. 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. You can close the page; **Cancel import** keeps the days read so far. The key is kept encrypted, never shown again, and forgotten when the import ends.

## What comes in

Each day's page views and visitors, pages, referrers and campaign tags, countries, devices, browsers and your events. Simple Analytics counts no bounces or visit length, and its API has no regions or cities, so those stay with your own days. [What comes in from Simple Analytics](/docs/import#from-simple-analytics), and how it adds up with your own days, is in the docs.
