# Import history from other tools

> Bring your history from Google Analytics 4, Plausible, Simple Analytics, Umami, Matomo or GoatCounter into mettr, so your charts do not start the day you switched. On the queue, on every plan.

Source: https://status.mettr.app/docs/import

Moving to mettr should not cost you your charts. mettr reads your Google Analytics 4, Plausible, Simple Analytics, Umami, Matomo or GoatCounter history day by day and puts it under your own, so a year's chart shows the year, not the weeks since you switched. Importing comes with every plan, Free included, as far back as the plan keeps history.

Add mettr's script first, or on the same day: only days before mettr's first event are imported, so the import then fills every day up to it. Each tool's guide takes you step by step from its export, or its key, to the finished import: [Google Analytics 4](/features/import/google-analytics), [Plausible](/features/import/plausible), [Simple Analytics](/features/import/simple-analytics), [Umami](/features/import/umami), [Matomo](/features/import/matomo), [GoatCounter](/features/import/goatcounter). This page is what each import reads, what it brings in and how imported days add up with your own.

## From Google Analytics 4

**How:** sign in with a Google account that can read the property (the **Viewer** role is enough), read-only (`analytics.readonly`, nothing else). [Step by step](/features/import/google-analytics).

When the import ends, finished or cancelled, mettr revokes its access at Google and forgets the token. A connection never used is removed after a day, its access revoked.

Everything in [What comes in](#what-comes-in), with these differences:

- The events GA4 collects on its own (`page_view`, `session_start`, `first_visit`, `user_engagement`, `scroll`, `click`, `file_download`, `form_start`, `form_submit`, `view_search_results`, `video_*`) are left out.
- GA4 counts a bounce as a visit it did not call engaged, while mettr counts a visit with one page. Imported days keep GA4's.
- Its days are the property's time zone, taken as the site's.
- Places come by name only, which may differ from mettr's own names.

## From Plausible

**How:** upload Plausible's export, a zip of CSV files, read in your browser. [Step by step](/features/import/plausible).

Your browser reads the zip and sends its rows in pieces; the zip itself is never stored, and an upload left unfinished is deleted after a day. The export has the site's own stats, not data once imported into Plausible.

- Regions come by their ISO code and cities by their GeoNames id, both named by mettr.
- Plausible's own goals, such as `Outbound Link: Click` or `File Download`, come in as events of those names.
- Left out: exit pages, custom properties, and the engagement Plausible measures (scroll depth and time on page).
- Browser and system versions are left out: each browser and system comes in by name.
- A laptop counts as a desktop, as in mettr.

## From Simple Analytics

**How:** an API key (it starts with `sa_api_key_` and needs a trial or a plan with API access) and the website's hostname, such as `example.com`. [Step by step](/features/import/simple-analytics).

mettr reads one day at a time in the site's time zone. The key is kept encrypted, never shown again, and forgotten when the import ends; a connection never started is removed after a day.

- A visitor is its unique page view, which starts a visit, so its visitors are also the visits.
- It counts no bounces and no visit length, so imported days leave bounce rate and visit length to your own days (they are never read as zero).
- Referrers and campaign tags count visits; the visits no referrer names are direct.
- Events come with their counts, not their visitors. Regions and cities are not in its API.

## From Umami

**How:** an API key, from Umami Cloud or your own server. [Step by step](/features/import/umami).

mettr reads one day at a time in the site's time zone, and on Umami Cloud keeps under its limit of 50 requests each 15 seconds, so a year takes about half an hour. Your own server must be on the public internet over https: mettr does not reach private addresses and follows no redirect. The key is kept encrypted and forgotten when the import ends.

- Page views, visitors, visits, bounces and visit length for the day, and for each country, device, browser and system.
- Umami gives no bounces or visit length by page, entry page, referrer or campaign tag, so those lists leave them to your own days.
- Referrers and campaign tags count visits. Umami leaves out visits from the site's own domain and those with no referrer; mettr counts both as direct.
- Browsers and systems are named as mettr names them (Umami's `crios` is Chrome Mobile iOS, `Mac OS` is Mac, every Windows is Windows); a laptop counts as a desktop.
- Events with their visitors. Regions by their ISO code, cities by name.
- Umami Cloud keeps six months on its free plan, so that is as far back as an import from it reaches.

## From Matomo

**How:** an auth token of a user with **View** access to the site, and the address where your Matomo opens, on your server or Matomo Cloud. [Step by step](/features/import/matomo).

mettr asks for each report once a month, by day, and sends the token in the request's body, never in the address, so Matomo's **Only allow secure requests** can stay on. Your Matomo must be on the public internet over https, as for Umami. The token is kept encrypted and forgotten when the import ends.

- Page views, visitors, visits, bounces and visit length for the day, for each entry page, source, campaign, country, device, browser and system.
- Pages by the path of their address, with their page views; Matomo's row of others (past what it archives) is left out.
- Countries, devices, browsers and systems count Matomo's actions (page views, downloads, outlinks, searches and events): it gives no page views by them.
- Sources by name: search engines, websites, social networks and AI assistants. Campaigns come in by source and medium when your Matomo has Marketing Campaigns Reporting (Matomo Cloud does); without it, by name only, and their visits with no source.
- Events by category and action, as Matomo shows them ("Ecommerce - Cart change"). Regions by their ISO code, cities by name.
- Its days are the Matomo site's time zone, taken as the site's.

## From GoatCounter

**How:** upload GoatCounter's CSV export of hits, read in your browser. [Step by step](/features/import/goatcounter).

Your browser unpacks the file and sends its rows in pieces, as for Plausible; the file itself is never stored. mettr reads version 2 of the export (its first column is `2Path`). The export has every hit, so mettr adds them up itself, a visit being GoatCounter's session that day:

- Page views, visitors and visits, a bounce being a visit with one page view and no event, and visit length from a visit's first hit to its last.
- Pages, entry pages, sources and channels (from a visit's first hit: a site by its host, a name GoatCounter gave such as "Hacker News", a campaign by its text), countries, browsers and systems (without versions), and events by name.
- The export has no user agent, so the device is told from the screen's width: narrower than 768 pixels a phone, than 1,024 a tablet.
- Each hit's day is the site's, from its time. Regions come from the location ("US-TX"); the export has no cities.
- The export does not say which hits GoatCounter took for bots, so the few it kept out of its own charts may come in.

## While it runs

The import runs on mettr's queue, a month at a time, newest first, so your charts fill from the switch back. The Import page shows how many months are done and how many days came in, and when it ends you get a notification and an email with the days it brought in, or what stopped it. **Cancel import** stops it: the days read so far are kept. One import of a site runs at a time.

Only people who manage the site can import; starting, cancelling and deleting an import, and connecting Google, are recorded in mettr's audit log.

## What comes in

These tools give sums by day, not single visits, so mettr keeps each day's totals and lists, never made-up events:

- Page views, visitors and visits, bounce rate and visit length.
- Pages, and entry pages (GA4's landing page).
- Sources and channels, and the five campaign tags.
- Countries, regions and cities.
- Devices, browsers and operating systems.
- Your own events by name, with how many visitors sent them.

Each tool above says what it leaves out or counts its own way. A list keeps its 1,000 largest values a day. Sources are named as mettr names them ("google" is Google, "m.facebook.com" is Facebook, "Direct / None" is none), and the channel follows mettr's own rules from the source and the medium, so an imported day groups like a live one.

## How it adds up

- **A day is imported or live, never both.** Only days before your first event in mettr are imported, so nothing is counted twice. The day you switched may be partly measured by mettr alone.
- **Visitors add up by day.** mettr counts a visitor once a day (it keeps no cookie), and the imported daily visitors are added the same way.
- **Shares and averages** over imported and live days together, such as bounce rate and visit length, are weighed by visits.
- **One import holds a day.** Another import of the same days keeps only the days no import holds yet.
- **Places by code.** A region given by its ISO 3166-2 code (such as `US-CA`) and a city by its GeoNames id are named as mettr names its own visitors' places, so an imported region and a live one are one row. A region mettr cannot name shows its code; a city it cannot name is left out. GA4 gives names only, which may differ.

## Where it shows

Tiles and what they compare with, the traffic chart by day, top lists, stacked bars, [widgets](/docs/widget-api) and the [MCP tools](/docs/mcp) read imported days wherever a query asks only for what they hold: page views, events by name or all events, counted, as visitors or as visits, by at most one field (path, entry page, section, source, channel, a campaign tag, country, region, city, device, browser or OS).

Everything else shows mettr's own data alone over imported days:

- The live feed, the live map, visit depth, funnels, exit pages.
- Scroll depth, time on page, 404s, errors, response times and props.
- Hours and minutes: an imported day has none, so a chart by the hour starts on the day you switched.
- Two fields at once, such as Google visitors to one page.

## Delete an import

**Delete** removes an import and its days from every chart. Another import may then fill those days.

## Other tools

For history kept as single events, such as your own app's logs, send it through the [Import API](/docs/import-api).

## While Google reviews mettr

Read access to Google Analytics is a scope Google reviews. Until its review is done, you may see a warning that the app is not verified, and Google lets at most 100 people connect. If you see it, choose **Advanced** and continue, or [write to us](/contact).
