Skip to main content

Import stats using CSV files

Plausible Analytics allows you to import your historical stats from various analytics tools using CSV files. This also makes it possible to migrate your stats from Plausible Community Edition (CE) to our official managed hosting (or vice-versa).

You can import multiple different properties into the same Plausible dashboard using CSVs. In addition to CSV file imports, you can also import your Google Analytics stats to the same Plausible dashboard.

Do you want to import your Google Analytics (UA and GA4) stats into Plausible? We have a simple Google Analytics import tool.

The rest of this article is focused importing your historical stats into Plausible using CSV files.

How to import your historical stats via CSV files

Here's how you can import your historical stats into your Plausible dashboard by using CSV files.

  1. Go to the Plausible Analytics site settings for the website you'd like to import the data to.

  2. Go into the "Imports & Exports" section, find the "Import Data" panel and click on the "CSV" button to import your CSV files.

Import CSV
  1. Select all the CSV files that you'd like to import and click on the "Confirm import" button. When importing your stats from different analytics tools, please ensure that each CSV file follows our CSV format guidelines. The guidelines are listed at the end of this document.
Select CSV and import
Want to transfer a site ownership to another Plausible account?

No data export/import is needed in this case. We have a way to transfer site ownership with a couple of clicks.

Or want to change the domain name of your Plausible site?

No data export/import is needed in this case either. We have an easy way to change your domain name.

How to migrate from Plausible CE to our managed hosting (or vice-versa)


Make sure to upgrade your self-hosted instance to Plausible CE version 2.1 or higher to get access to the export/import functionality

  1. First you need to export your stats. Go to the Plausible site settings for the website you'd like to export the data for.

  2. Go into the "Imports & Exports" section, find the "Export Data" panel and click on the "Export to CSV" button to export all the data.

  3. Then go to the site you'd like to import the data to. In the "Imports & Exports" section, find the "Import Data" panel and click on the "CSV" button to import your CSV files.

  4. Make sure to select all the CSV files that you've exported and click on the "Confirm import" button. If you don't select all the exported files, some data may be missing from your import.

  5. Imported data will be displayed alongside your native Plausible data in the same Plausible dashboard. An icon is shown in the top-right of the dashboard when imported data has been included. Clicking this icon will stop the imported data from being displayed and the icon will then appear with a strike-through.

Multiple imports into the same Plausible dashboard

If you'd like to make several imports into the same Plausible dashboard, please go through the process above again and choose different CSV files to import. You can import a maximum of 5 different properties into one Plausible dashboard. You can import using both of our import methods (CSV files and Google Analytics import) into the same Plausible dashboard.

In the "Imports & Exports" section, you can see the overview of all your existing imports to that specific Plausible dashboard. For each import, we list the ID, the number of pageviews imported and the time range that the import covers.

How much data is imported?

Data is imported in aggregate for each date, from your first import visitor until your first Plausible Analytics visitor. This is to avoid double-counting visits. We also have measures in place to detect and avoid double-counting visitors if you import multiple properties into the same Plausible dashboard.

How can I delete imported data?

Data you have imported can be deleted by returning to your site's "Imports & Exports" settings page and clicking the "Delete Import" button in the "Existing Imports" section. This action won't affect the native data you have collected using our script directly.

How does imported data differ from native data?

We have taken many steps to make the imported data feel as fast, easy, and straightforward as the native data. But it's important to note that imported data won't be as flexible as the native data that we collect using our script. Here are the differences:


Filtering on imported data is not as powerful as with native Plausible data. Since imported data is already aggregated and grouped by properties in the database, you cannot see how two arbitrary properties interact with each other. For example, filtering by page and source at the same time, or filtering by browser and breaking down by entry page is impossible.

There are several exceptions to this though, because some properties are aggregated and grouped together. The properties in the following groups can be filtered by at the same time:

  • Countries, regions, cities
  • Browsers and their versions
  • Operating systems and their versions
  • Hostnames and pages
  • Specific custom events and their properties
    • Outbound Link: Click and File Download goals with the url property
    • 404 goals with the path property

By default, imported data is always included in the view, unless you choose to exclude it manually by clicking on the imported icon in the top right of the dashboard main graph.

Stats include imported data

Whenever imported data cannot be included due to the applied filters, you will see a warning bubble in the corresponding report. Note that this does not affect displaying native data in any way.

Imported data is excluded due to applied filters

Goals and custom properties

You can import your goals and custom events. However, there is a limited support for importing custom properties along with them.

A single custom property is supported in combination with particular goals:

  • url property (imported as link_url) with "Outbound Link: Click", "File Download" and "Cloaked Link: Click" goals
  • path property (imported as path) with "404" goal

Ecommerce revenue data are not supported.

Due to our current imported data model, we are unfortunately unable to show exact aggregated visitor counts for special goals such as "Outbound Link: Click", "404" and "File Download". For example, if one visitor completed a "File Download" event two times with a different url property, they'll be counted as two visitors from re-imported data, while native query would count them as a single visitor. The same applies for pageview goals.

CSV format guidelines

If you're importing data from different analytics tools then please ensure that your CSV files follow our format guidelines.

File naming convention

Each CSV file must follow a specific naming convention to be recognized by the import system:

  • table_name refers to the specific table you are importing data into. There are ten tables available for import:
    • imported_visitors
    • imported_sources
    • imported_pages
    • imported_entry_pages
    • imported_exit_pages
    • imported_custom_events
    • imported_locations
    • imported_devices
    • imported_browsers
    • imported_operating_systems
  • start_date and end_date specify the date range of the data contained in the file, formatted as {YYYY}{0M}{0D}

For example, a file named imported_devices_20230209_20240123.csv includes data from Feb 9, 2023, to Jan 23, 2024.

CSV structure

Below, you'll find the structure for each CSV file to be imported into Plausible Analytics. It's important to note that while all files and columns within those files are optional, to maintain completeness and avoid gaps in your dashboard, it's recommended that all files be present and fully populated according to the structures outlined here. For metric definitions, please refer to this document.

It's important to note that metrics such as visitors, visits, bounces, pageviews, and similar are intended to represent total counts within the specified dimension, not averages. And metrics such as visit_duration represent total duration in seconds.




$ head imported_browsers_20230209_20240123.csv
"2023-02-09","Microsoft Edge","111.0",1,1,987,0,3




$ head imported_devices_20230209_20240123.csv




$ head imported_entry_pages_20230209_20240123.csv




$ head imported_exit_pages_20230209_20240123.csv




$ head imported_custom_events_20230209_20240123.csv
"2023-02-09","Outbound Link: Click","","",1,1
"2023-02-09","Outbound Link: Click","","",1,1
"2023-02-09","Outbound Link: Click","","",1,1
"2023-02-09","Outbound Link: Click","","",2,2
"2023-02-09","Outbound Link: Click","","",1,1




$ head imported_locations_20230209_20240123.csv




$ head imported_operating_systems_20230209_20240123.csv




$ head imported_pages_20230209_20240123.csv




$ head imported_sources_20230209_20240123.csv




$ head imported_visitors_20230209_20240123.csv