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
- 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
Step 1: Prepare your Matomo server
your serverOn 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.
Step 2: Create a Google OAuth client
in Google CloudIn 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.
Step 3: Authorise Matomo
in MatomoAs a superuser, open Administration > System > Google Analytics Import, choose Advanced Google OAuth client configuration, upload the JSON file and click Authorize.
Step 4: Schedule the import
in MatomoSelect 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.
Step 5: Start tracking, then remove GA
bothAdd 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
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
- stars
- 22.1k
- gained · 7d
- +14
- growth · 7d
- ▲up 0.1%
- health
- 93/100
- licence
- GPL-3.0
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.
Where this comes from
- steps, effort
- By Aleksandar Simov, updated 2026-11-26
- the docs
- Matomo: Requirements for the Google Analytics import
- Matomo: Setting up a Google Analytics import
- Matomo: Running the Google Analytics import
- Matomo: Limitations when importing Google Analytics data
- Matomo: Migrate from Google Analytics to Matomo: Import GA data
- Matomo: Migrate from Google Analytics 4 to Matomo: Configure tracking
- Matomo Marketplace: Google Analytics Importer
- matomo data
- GitHub API, as of 2026-12-05 00:37 UTC
- self-host
- Checked against Matomo's own docs
Found something out of date? Report an error
More migration guides
Tables, records and views, with each view's fields, filters, sorts and groups.
Google Analytics 4 to PlausibleDaily totals of visitors, visits, pageviews and engagement time, up to the day Plausible starts counting.
Missing a switch?Tell us which move you need: the queue is ordered by what people ask for.
Request a guide