migration guide · editorialupdated

Migrating from Google Analytics to Matomo

What transfers, what doesn't, the five steps in order and what you give up. Written for one person who has deployed a server before.

Plan on a few days, and we rate it moderate. Every step follows Google Analytics's and Matomo's own documentation, listed under Sources.

What moves over

What comes across from Google Analytics, and what doesn't, by the products' own docs.
  • Your historical GA reports, as aggregated report data in a new Matomo websitetransfers
  • Custom dimensions, which the importer creates for youtransfers
  • GA dimensions Matomo doesn't have, such as demographics, mapped into custom dimensionstransfers
  • Raw visits: the Visitor Log, Ecommerce Log, Custom Reports and Segmentation don't work on imported reportsdoesn’t transfer
  • Unique visitors and users for weeks, months and other periods longer than a daydoesn’t transfer
  • Funnels reports, media analytics, and GA4 goals' names, revenue and conversion ratesdoesn’t transfer

The five steps

In order, each tagged with where it happens.
  1. Step 1: Prepare your Matomo server

    your server

    On Matomo On-Premise, PHP must allow shell_exec() or exec(), nohup must be available and cron archiving set up. Then install and activate the free Google Analytics Importer plugin from the Marketplace.

  2. Step 2: Create a Google OAuth client

    in Google Cloud

    In Google Cloud Console, create a project and enable the Google Analytics Data API, plus the Admin API for GA4 data. Set up a published External app, then a Web Application client with Matomo's redirect URI, and download its JSON.

  3. Step 3: Authorise Matomo

    in Matomo

    As a superuser, open Administration > System > Google Analytics Import, choose Advanced Google OAuth client configuration, upload the JSON file and click Authorize.

  4. Step 4: Schedule the import

    in Matomo

    Select the import type, fill in the Schedule an Import form and click Start. Tick Mobile App for an app property, and list extra GA dimensions under Extra Custom Dimension Mappings. Progress shows in the Import Jobs table.

  5. Step 5: Start tracking, then remove GA

    both

    Add the new website's Matomo tracking code, check you see visits in real time, and make the import's End Date earlier than the day tracking starts. Then remove the GA tag, remove Matomo's Google authorisation and back up the database.

Back up your data before you start. These steps follow each product’s own documentation, listed under Sources, as it read on 2026-11-26; products change, so check those pages before you run anything.

Watch out for

What you give up, said plainly before you start.
  • Quick Connect is for Matomo Cloud: self-hosted Matomo needs your own Google Cloud OAuth client, and if you don't publish the app you re-authorise Matomo every seven days until the import finishes

  • Run the import before you add Matomo's tracking code if you want one website: the import always creates a new one and can't be merged into an existing website later

  • Google limits API requests per day, so a long history imports over several days rather than in one run

EditorialAleksandar Simovupdated

Check Matomo before you commit

GitHub star growth and maintainer health, read from GitHub. Watch them for a few weeks; it’s free.
stars
22.1k
gained · 7d
+14
growth · 7d
up 0.1%
health
93/100
licence
GPL-3.0
measuredGitHub API · 2026-12-05 00:37 UTC

Frequently asked

How long does migrating from Google Analytics to Matomo take?

A few days for one person who has run a server before, by our estimate, and we rate it moderate. The steps below follow both products' own documentation.

What comes across from Google Analytics?

Your historical GA reports, as aggregated report data in a new Matomo website. Custom dimensions, which the importer creates for you. GA dimensions Matomo doesn't have, such as demographics, mapped into custom dimensions.

What doesn't come across?

Raw visits: the Visitor Log, Ecommerce Log, Custom Reports and Segmentation don't work on imported reports. Unique visitors and users for weeks, months and other periods longer than a day. Funnels reports, media analytics, and GA4 goals' names, revenue and conversion rates.

What do I need to run Matomo?

LAMP stack, 2 GB RAM minimum, app and database, stated in matomo.org docs, checked 2026-10-21, by our curated profile, which rates it moderate to run. On a server of its own that is about $14.40 a month by our published rule, before your time.

Is Matomo open source?

Yes. Matomo is published under GPL-3.0, a copyleft licence approved by the Open Source Initiative. If you distribute a modified version, you share its source under the same terms.

More migration guides

effort · difficulty · editorial
All migration guides