Import and export
Bring your history from Plausible or Umami, and download daily totals as a ZIP on every plan.
Bring your history with you when you switch from Plausible or Umami, and soon from Google Analytics. Imported days show on the dashboard next to the days the script counts, so your charts start years back instead of today.
What carries over
An import adds daily totals for the days before this site's first event:
- Visitors, visits, pageviews, bounce rate and visit duration on the overview.
- Pages, entry pages and exit pages.
- Sources, referrers, channels and UTM tags.
- Countries, regions and cities. Plausible exports have no city names.
- Devices, browsers and operating systems.
- Custom events and outbound link clicks.
Funnels, journeys, realtime and the raw event export count only the events the script records. Imported days hold totals per day, not single visits, so they cannot follow one visitor from page to page.
You can import before the script is on your website. The overview then shows your imported history with a Not receiving events notice, since nothing new comes in until you add the script. From the site's first event on, its own numbers count instead, and any imported day after that is left out. Days older than your plan keeps are left out when you import, and dropped later when they age past it.
Import from Plausible
Export from Plausible
In Plausible, open the site's settings, go to Imports & Exports and click Export to CSV. Plausible emails you when the ZIP is ready to download.
Upload the ZIP
In this site's settings, open Import and export, pick Plausible and drop the ZIP on the box, or click Choose file. Leave the ZIP as it is. We read the CSV files inside it by their names.
Import from Umami
Umami has no export of its own, so you copy two tables out of its database: website_event and session. Each needs its header row.
Copy the two tables
On Postgres, run this once per table, with your website's ID:
sql \copy (SELECT * FROM website_event WHERE website_id = 'YOUR_WEBSITE_ID') TO 'website_event.csv' CSV HEADER \copy (SELECT * FROM session WHERE website_id = 'YOUR_WEBSITE_ID') TO 'session.csv' CSV HEADEROn MySQL, export the same two queries as CSV with a header row from your database tool. Keep the table names in the file names.
Upload both files
In this site's settings, open Import and export, pick Umami and drop both files at once. Plain CSV, gzipped CSV and one ZIP holding both all work.
Import from Google Analytics
Importing from Google Analytics is coming soon.
Connect the Google account that can read the GA4 property, then pick the property and the days. The import runs in the background. Google retired Universal Analytics, so only GA4 properties show.
Connect Google
In this site's settings, open Import and export, pick Google Analytics and click Connect Google. Google asks you to allow read-only access to Analytics. Your Search Console connection stays as it is.
Pick the property and the days
The list shows every GA4 property the account can read. The days start as everything your plan keeps, up to the day before this site's first event. Click Start import within the hour.
Let it run
The list shows how far it got, and you can close the page. Once the import is done, it shows its first and last day.
How GA4 numbers carry over
GA4 counts in its own way, so imported days come close to what the script would have counted without matching it:
- Visitors are GA4's total users for the day and visits are its sessions. GA4 counts a person again on each device and browser.
- Bounce rate is the share of sessions GA4 did not call engaged. GA4 calls a session engaged after 10 seconds, a key event or two page views, so its bounce rate runs lower than one based on single-page visits.
- Visit duration is GA4's average session duration.
- Pageviews are GA4's views. A property with an app stream counts app screens in them too.
- Custom events are the events you set up in GA4. Its automatic ones, such as page_view, scroll and session_start, stay out. GA4's click and file_download events become Outbound link and File download.
- Days follow the property's time zone.
GA4 gives no exit pages, regions or visits per page. Entry pages have visits, and pages have visitors and pageviews. Rows a large property folds into (other) stay out of the breakdowns, and the day's totals still count them.
When Google slows it down
Google limits how much of a property anyone can read in an hour and in a day. The import pauses before a limit runs out and carries on by itself, and the list says when. A long range on a busy property can take a few days.
When Google stops accepting the connection or the account loses access to the property, the import stops and shows Connect again. Connect an account that can read the same property, and the import carries on from the day it stopped. After a week without that, it fails.
Your Google access
We store the Google account's email to show owners and admins which account is connected, and the access Google grants, encrypted. Other members never see the email. We use the data only for this site's imported days, never to train AI and never outside your organization, as Google's API Services User Data Policy requires.
When the import ends, fails or you remove it, we revoke the access at Google, unless the same Google account still backs Search Console or another import here. You can remove it yourself under Third-party connections in your Google account.
Google Analytics on your own server
The import uses the same Google OAuth client as Search Console. Until you turn it on, the settings show Google Analytics as coming soon.
- In the Google Cloud project of that client, turn on the Google Analytics Data API and the Google Analytics Admin API.
- Add the scope
https://www.googleapis.com/auth/analytics.readonlyto the OAuth consent screen. - Add the redirect URI
https://your-domain/api/v1/imports/google/callbackto the OAuth client. - Set
GOOGLE_ANALYTICS_IMPORT=onon the api and the worker, besideSEARCH_CONSOLE_CLIENT_ID,SEARCH_CONSOLE_CLIENT_SECRETandENCRYPTION_KEY, and restart them. Without those three, they refuse to start.
Until Google verifies the app for read-only Analytics access, only your test users can connect.
While it runs
For a file, your browser checks it, splits it into parts and uploads them, so the page shows progress as it goes. Keep the tab open until the upload ends. Stop cancels the import and deletes what it sent.
Then the server reads the parts. That takes a minute or two for a large export, and you can leave the page. The import shows in the list with its first and last day once it is done. When a file has a problem, the import fails and says which file and what was wrong.
Hide imported days
The trend chart on the overview shows Imported when the range includes imported days. Click it to hide them on every panel and see only what the script counted. Click Imported off to bring them back. The choice stays in the address, so a link you share keeps it.
Imported days hold one total per day, so some views count only the script's days: any filter, an hourly chart, and breakdowns an import has no numbers for, such as screen sizes. When the trend chart leaves imported days out, it shows Imported not counted.
Remove an import
In Import, click Remove next to it. Its days leave the dashboard within a minute. When two imports cover the same day, the one that finished first counts it, so removing that one lets the other fill the day.
Export daily totals
Export, under Import and export in the site's settings, has Daily totals on every plan. It downloads a ZIP of CSV files in Plausible's import layout, with one row per day for each page, source, location, device and event. Both the script's days and imported days are in it, counted the same way as on the dashboard.
You can import that ZIP into another site here, or into Plausible. For every event as its own row, use the CSV or Parquet export, or the export API.
Limits
- Owners and admins can import and remove imports. A Google Analytics import stops when the person who connected Google is no longer one.
- A site keeps up to 20 imports. One runs at a time, a Google Analytics one included.
- An organization can start 20 imports a day.
- An upload is at most 2 GB, 4 GB once unpacked, and 25 million rows.
- Only CSV files, gzipped or in a ZIP. We reject anything else before it leaves your browser, and check every part again on the server.
- Imported days do not count toward the plan's monthly events.