Import historical data from Plausible Analytics

Posted on by Danny van Kooten.

Just a few moments ago we pushed version 2.0.19 of Koko Analytics to the WordPress.org servers. This release contains a few minor but useful changes and additions:

One of them is the ability to import your historical data from Plausible Analytics. Plausible allows you to export your analytics data to a ZIP archive containing several CSV files, which you can now upload to Koko Analytics to have them imported.

To import data from Plausible, first use their dashboard to download the ZIP archive. Then go to your WordPress site, access your Koko Analytics dashboard and locate the settings page link in the top-right corner.

In the sidebar on the settings page, there is a section where the various importers are listed. Clicking on the “Import from Plausible” link takes you to the following page.

Click the “Browse” button and upload one of the following CSV files from inside the Plausible export ZIP. Note that these files may be named slightly differently, but you probably get the idea:

  • imported_visitors_20000101_20250101.csv
  • imported_pages_20000101_20250101.csv
  • imported_sources_20000101_20250101.csv

Note: it is important that you’re not uploading the complete ZIP file, but the individual CSV files from inside the archive. Only the visitors, pages and sources files are supported at this point.

After uploading the export file and optionally limiting the import to a certain date range, you will now have your historical analytics data from Plausible in your Koko Analytics dashboard. You can repeat this process for the different files and/or with different date ranges.

Other changes in 2.0.19

Inline script (-1 HTTP request)

One other notable change in this release is that the client-side tracking script is now printed inline in the page HTML. This gets rid of one additional HTTP request and allows for slightly more efficient compression ratios.

The costs of each additional HTTP request is not what it used to be now that HTTP/2 is a thing, but since our client-side script is only 500 bytes it’s still a slight performance win to print it directly in the page HTML.

Pretty public dashboard URL

If your Koko Analytics dashboard is publicly available and you have pretty permalinks enabled in your WordPress settings, your dashboard will now have a pretty URL as well.

In previous versions, you would be able to access the dashboard by appending ?koko-analytics-dashboard to any URL on your site. Since version 2.0.19, you can access the dashboard by going to kokoanalytics.com/koko-analytics-dashboard/ (but using your site instead of ours).

We hope you like these changes as much as we do. As always, you can find the release either on GitHub or on WordPress.org.

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Koko Analytics Pro

We think the free version of Koko Analytics is pretty great in itself, but what if you need a little more?

Koko Analytics Pro adds several powerful benefits, like custom event tracking, geo-location and periodic email reports.

Upgrade Now