# Import from GoatCounter

> Move from GoatCounter to mettr with your history: export its CSV of hits, upload it, and mettr adds the hits up into each day's visits, pages, sources and places. Step by step.

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

## 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.
- **Pageviews collected in GoatCounter.** Its CSV export has every hit, so GoatCounter offers it only while the site collects pageviews: check its site settings.
- **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. Export from GoatCounter

1. In GoatCounter, open **Settings**, then **Export/Import**.
2. Under **Export to CSV**, choose **Start export**.
3. GoatCounter emails you a link once the export is ready; it is also listed among the last exports on the same page. Download the file, a `.csv.gz`.

GoatCounter makes one export an hour.

## 2. Upload it to mettr

1. In mettr, open the site's **Settings**, then **Import**.
2. Beside **GoatCounter**, choose **Upload**.
3. Choose the `.csv.gz` file. If your browser unpacked it, choose the CSV in it instead.
4. Check the days: by default those of the export your plan keeps, up to the day before your first event in mettr.
5. Choose **Import**.

Your browser unpacks the file and sends its rows in pieces; the tab shows how many have gone. Keep the tab open until the upload is done. The file itself is never stored, and **Cancel upload** stops and deletes what was sent. mettr reads version 2 of the export, the one GoatCounter makes today.

## 3. Let it run

Once uploaded, the import runs on mettr's side, a month at a time, newest first, with its progress on the Import page. You can close the page; **Cancel import** keeps the days read so far.

## What comes in

The export has every hit rather than sums, so mettr adds them up itself: each day's totals with bounces and visit length, pages and entry pages, sources and channels, countries and regions, devices, browsers and your events. [What comes in from GoatCounter](/docs/import#from-goatcounter), and how it adds up with your own days, is in the docs.
