Migrate from Piwik PRO to Matomo

Moving from Piwik PRO to self-hosted Matomo is a rebuild of sites, goals, tags and consent, not a data copy. This page sets out what moves cleanly, the sequence, and what drives cost and duration.

On this page

What migrating from Piwik PRO to Matomo involves

Most teams start this move because of a Piwik PRO renewal, a data residency question, or a consent review that made them want analytics running on servers they control. The short answer is that the move is a rebuild: you recreate sites, goals, custom dimensions and the tag container on a Matomo instance your organization runs, and you rebuild consent handling in the same pass. Historical data is a separate decision and should not hold up the cutover. Plan the rebuild as a project with its own scope, owners and acceptance tests, not as an export and import.

Internal platform or analytics engineers usually do the work, often with an implementation partner for server setup, tag migration and consent configuration. Your team will own the Matomo servers, the database, PHP and web server upgrades, backups and access control from day one, so confirm who carries those duties before you commit. Effort depends mainly on how many sites and tags you run, how much custom tracking sits inside the Piwik PRO container, and how well your consent flow is documented. Ask any vendor or partner to show you a written inventory of tags and events before quoting, and treat that inventory as the basis for test cases.

The main risks are gaps in tracking that go unnoticed, consent settings that differ between sites, and reports that stop matching finance or marketing numbers after cutover. Run both trackers in parallel for a defined period, compare key reports, and sign off each site separately. Confirm with Matomo's current requirements which PHP and database versions your chosen release needs, since the latest stable release and its requirements change over time.

Which Piwik PRO capabilities map to Matomo, and what needs rework

This table maps the main Piwik PRO capabilities your team relies on to their Matomo equivalents and marks each as clean, needs rework or gap. Read the status column first, then check the notes on imported history and premium features before you plan cutover. Items not covered by the sources used here should be confirmed against Piwik PRO's and Matomo's current documentation.

CapabilityMatomo equivalentStatus and notes
Websites and sitesMatomo sites, one per propertyNeeds rework. Recreate each site and its settings in Matomo, then map every domain and subdomain to the right site ID.
Goals and conversionsGoals in MatomoNeeds rework. Rebuild goal definitions by hand and confirm trigger rules match the old Piwik PRO configuration.
Custom dimensionsCustom dimensions (scope visit or action)Needs rework. Match each dimension's scope and index, because historical values will not map automatically.
Tag manager containerMatomo Tag ManagerNeeds rework. Export or document the existing container, then rebuild tags, triggers and variables in Matomo before switching the snippet.
Consent managerMatomo consent handling and your chosen consent toolGap for direct replacement. Confirm your consent setup against CNIL guidance and your legal review, since Matomo does not ship a built-in equivalent to the Piwik PRO consent module.
Ecommerce trackingMatomo EcommerceNeeds rework. Verify product, order and cart events after migration. Ecommerce Log on imported history will not work.
Standard reportsMatomo core reportsClean for live data from the cutover date. Imported history appears only as aggregated reports.
Visitor Log, segments and Custom Reports on historyVisitor Log, segmentation and Custom ReportsGap for imported history. The Google Analytics Importer does not bring raw visit data, so these features do not work on imported aggregated history. Confirm the same limits with Piwik PRO export options.
Heatmaps and session recordingsHeatmap and Session Recording pluginGap without a paid plugin. It is a premium plugin sold per number of users under the InnoCraft EULA, not the GPL, with a 30-day free trial. Adding it also affects consent treatment under the CNIL exemption.
User access and permissionsMatomo users and rolesNeeds rework. Recreate users, roles and site-level access, and connect SSO only if your Matomo setup supports it. Confirm the current options in Matomo documentation.

Which data can move, and which integrations must be rebuilt

Historical data and integrations do not move in the same way. Raw Piwik PRO history depends on what your contract and export tools allow, while tracking code, consent, goals and downstream feeds are rebuilt by hand in Matomo. Work through the cards below before you set a cutover date.

Raw history and the importer limit

Matomo's Google Analytics Importer is the documented import path in Matomo's materials, but it only brings aggregated report data, not raw visit and action data. Visitor Log, Ecommerce Log, Custom Reports and Segmentation do not work on imported reports, and some reports such as Funnels are not imported. Treat it as a route for historical summaries only, and ask Piwik PRO in writing which raw export formats, export frequency and retention terms your contract includes before you plan any raw history.

Importer limitations

Tracking code and site tags

Every page template, single-page app route and mobile wrapper that loads the Piwik PRO snippet must be found and replaced with the Matomo tracking code for the new site ID. Inventory each site, subdomain and environment separately, because a missed staging or checkout domain produces gaps that show up only in later reports. Confirm which pages carry the snippet through your own deployment pipeline, not only through the tag manager.

Tag manager container

Piwik PRO's tag manager container holds triggers, variables and tags that must be recreated in Matomo's own tag manager or in your chosen container. Export the container configuration from Piwik PRO if your plan allows it, then map each tag to its Matomo equivalent. Remove tags that were never used, since rebuilding them adds maintenance without reporting value.

Consent banner and consent signals

The consent banner and its stored choices belong to Piwik PRO's consent management, so they do not transfer. Matomo needs its own consent configuration that fires tracking only after the visitor's choice, and it must honor opt-outs recorded before cutover. Settle the consent design with your legal team before rebuilding, since the CNIL's exemption conditions for analytics limit which features you may keep without consent.

Data layer events, goals and custom dimensions

Data layer pushes, goals, custom dimensions and ecommerce events are defined in Piwik PRO's own configuration and must be re-declared in Matomo with the same names and scopes. Write the mapping as a table with the source event, the Matomo goal or dimension ID and the owning team, so that BI analysts can compare old and new reports. Expect that custom dimension scopes and historical definitions will not match exactly, and document each difference.

User roles and downstream BI feeds

User accounts, site-level permissions and any API tokens used by dashboards or BI tools are configured per platform and need to be recreated in Matomo with least-privilege roles. Downstream feeds, such as scheduled exports or warehouse loads that read Piwik PRO data, must be repointed or rebuilt against Matomo's API, and any consumer that expects Piwik PRO field names must be updated. Ask your Piwik PRO administrator to list every integration, owner and schedule before you turn off the old feed.

Migration sequence from inventory to decommission

This sequence moves Piwik PRO measurement to self-hosted Matomo in controlled stages, so each site is proven against its old numbers and consent behavior before the old tracker is switched off. Each step ends with a written artifact that a privacy, security or procurement reviewer can check.

  1. Inventory sites, tags and data flows

    List every Piwik PRO site, its tag manager container, each tag and trigger, custom dimensions, goals, ecommerce or event tracking, and any other system that receives the same data, such as a CRM, ad platform or data warehouse. Record who owns each site and which teams rely on its reports. Confirm with your Piwik PRO administrator which features your plan includes, since export and feature availability depend on the contract. The output is a tag inventory with one row per tag, trigger and dimension, marked as keep, rebuild or retire. The step is done when the business owners have signed off the list.

  2. Record the consent configuration

    Document how visitors currently give or refuse consent, which tags fire before and after consent, and which cookies and storage keys are set. Map the current setup against the CNIL conditions for analytics exemption in sheet 16, including the purposes, the single publisher scope, IP truncation and cookie lifetime. Decide whether the self-hosted Matomo configuration will rely on the exemption or on a consent banner, and confirm the choice with your legal or privacy team. The output is a consent configuration record that names each tracker, its purpose, its retention and the legal basis you relied on. This record is what the Matomo consent setup must reproduce.

  3. Build a pilot site on self-hosted Matomo

    Install Matomo On-Premise in your own infrastructure, following the requirements for your target version, and create one low-risk pilot site. Rebuild its goals, custom dimensions and ecommerce or event tracking from the inventory, and place the tracking code through a Matomo tag setup or your existing tag manager. Enable the consent mode and IP anonymization settings from the consent record. Confirm that SSO, admin roles and audit logging meet your internal standards before any production traffic arrives. The output is a working pilot site with a documented configuration and a list of anything that could not be reproduced.

  4. Compare pilot results against Piwik PRO

    Run the pilot site and the Piwik PRO site side by side over the same period. Compare pageviews, unique visitors, goal conversions, ecommerce totals and event counts for each day, and document the expected differences, such as consent-declined visitors or bot filtering. Check that each goal fires once per action and that custom dimensions carry the same values. Agree with the report owners on acceptable variance before moving on. The output is a pilot report comparison that lists each metric, the Piwik PRO value, the Matomo value, the variance and the explanation. The step is done when the report owners have accepted the variance in writing.

  5. Run both trackers in parallel

    Deploy the Matomo tracking code alongside the Piwik PRO container on the remaining sites, and keep both active for the period you agree with the report owners. Use separate triggers or a consent flag so that each tracker can be disabled independently. Monitor tag errors, page weight, consent rates and script load failures in both systems. Review the parallel data with the owners for each site before you consider it ready. The output is a parallel run log with issues found, fixes applied and a sign-off per site for cutover.

  6. Write and execute the cutover runbook

    For each site, write a runbook that lists the exact change to the tag manager container, the order of publishing, the consent banner update, the rollback step and the person who approves each action. Publish the change in a low-traffic window, verify the Matomo tag fires on every key template, and confirm that the Piwik PRO tag no longer fires. Keep a rollback copy of the previous container. The output is a signed cutover runbook per site and a verification checklist showing the post-change checks that passed. Teams should record any site where a check failed and reopen it before continuing.

  7. Export and archive Piwik PRO history

    Before you cancel the Piwik PRO subscription, export the reports and raw data your retention rules require, using the export options your contract allows. Store the archive in an encrypted location under your own control, with a retention period set by your legal and records team. Remember that Matomo's Google Analytics importer and similar tools bring over aggregated reports only, and that Visitor Log and segmentation do not work on imported history. The output is an archived export with a manifest of sites, date ranges, formats and checksums, plus a record of who approved the deletion of the vendor copy.

  8. Decommission Piwik PRO and retain evidence

    Remove the Piwik PRO tags from the tag manager, disable the Piwik PRO consent tool, revoke API keys and user accounts, and confirm in writing with Piwik PRO how and when your data is deleted under your contract. Update your privacy notice, records of processing and vendor inventory to show Matomo as the system in use. Keep the consent record, pilot report, runbooks and archive manifest with your audit evidence. The step is done when the vendor deletion confirmation is on file and the Piwik PRO account is closed.

Two trackers can run side by side, but only one should hold the consent-gated data

The diagram starts at the website, where the tag container and consent layer decide what each visitor's browser sends. During the parallel run, the same approved events fan out to Piwik PRO, hosted in the EU by its vendor, and to Matomo on servers the organization controls. The trust boundary marks where data leaves the organization's control. Before cutover, check that both trackers receive identical consent decisions, that Matomo's configuration matches the CNIL exemption conditions if you rely on it, and that event counts agree within an agreed tolerance for a full business cycle.

Approved events reach both trackers, and a reconciliation check gates the cutover.

What drives cost and duration of the move

Most of the effort sits in the first project, before any traffic reaches Matomo. The work is largely people time, either your own staff or a partner's, and it scales with how many sites, containers and reports you run in Piwik PRO. A clean inventory shortens every later step because the tag rebuild and consent setup depend on knowing exactly what is tracked today.

  • Inventory: list every site, goal, custom dimension, event, ecommerce setup and tag container, plus the reports your teams actually open.
  • Tag rebuild: recreate the tracking in Matomo's tag or JavaScript setup and retest each conversion path.
  • Consent setup: configure a consent layer that matches your legal basis, since Piwik PRO's built-in consent management does not carry over automatically.
  • Pilot and cutover: run a parallel pilot on one site, then switch the production containers once numbers reconcile.
  • History decision: choose between keeping an export archive from Piwik PRO and importing aggregated history, which Matomo's importers handle differently from raw data.

Ask any quote to break these items out separately so you can see which ones you already staff in-house.

What usually goes wrong in a Piwik PRO to Matomo move

Most failed analytics migrations fail at the edges: historical expectations, consent during cutover, tag and goal drift, and infrastructure that was never sized for the traffic. Each card below names one risk and the check that prevents it, so the team can run the old and new trackers side by side with agreed criteria.

History expectations after import

Matomo's Google Analytics Importer and similar tools bring over aggregated report data, not raw hits. Visitor Log, segmentation and some funnel reports do not work on imported history, so anyone who expects to drill into individual Piwik PRO visits will be disappointed after cutover. Before the move, list the reports and raw-level questions the business actually uses, then decide which history to export from Piwik PRO and which to keep in an archive. Confirm with Piwik PRO which export formats your plan includes.

Consent gaps during cutover

The Matomo tracker and any new consent manager may go live before the banner, the consent categories and the tag firing rules match. A visitor who refused consent in Piwik PRO may then be tracked by Matomo, or the reverse. Under the CNIL exemption conditions, features such as User ID, heatmaps or session recordings remove the exemption, so these must stay disabled unless a separate consent basis exists. Test refusal, acceptance and withdrawal in every region you serve before switching the production container.

Duplicate or missing goals

Goals and custom dimensions rarely carry over automatically. Teams often recreate a goal twice, once from memory and once from a Piwik PRO export, or miss a goal that only fired from a single template. Build a table that maps each Piwik PRO goal and custom dimension to its Matomo equivalent, including the trigger, scope and owner, and check that every mapped item fires in a staging site. Run both trackers in parallel for a defined period and compare conversion counts before retiring the old goals.

Tag container drift

Piwik PRO's tag manager container often contains tags added over several years by different teams. When those tags are rebuilt by hand in Matomo's tag manager or in a generic container, some are dropped, some fire twice and some keep pointing at the old site ID. Export the current container, inventory every tag, trigger and variable, and freeze changes to the source container during the migration window. Ask whoever owns the site to confirm which tags are still needed.

PHP and database version mismatch

Matomo 6.0.0 requires PHP 8.1 or newer and MySQL 8.0 or newer or MariaDB 10.6 or newer, while Matomo 4.16 and 5 run on PHP 8 with MySQL 5.5 or later or MariaDB. A server image built for an older Matomo release or an outdated distribution can block the install or upgrade late in the project. Check the target Matomo release in the changelog and the requirements FAQ, then confirm the PHP, database and web server versions in a staging environment that matches production before the cutover date.

Matomo requirements

Server sizing underestimated

Matomo's requirements FAQ sizes a single server with at least 4 CPUs, 8 GB of RAM and 250 GB of SSD for up to 1 million pageviews a month, and recommends separate app and database servers with 8 CPUs and 16 GB of RAM each for up to 10 million pageviews a month. Teams that size only from the current Piwik PRO plan usually forget archiving jobs, disk growth from raw logs and backup storage. Measure your monthly pageviews, include seasonal peaks and plan storage for retention before you choose the infrastructure.

Sizing guidance

How the move differs by size and starting point

A single site usually has one tracker, one set of goals and a short list of custom dimensions, which keeps the inventory small. The work centers on rebuilding that one configuration in Matomo and deciding how much Piwik PRO history to keep. Because there is only one publisher scope, the consent exemption question is also simpler to settle.

  • Tag inventory: List every place the Piwik PRO snippet or tag container loads, including templates, error pages and any staging copies.
  • Goals and dimensions: Recreate each goal and custom dimension in Matomo with the same names, so reports stay comparable during the overlap.
  • Pilot: Run Matomo beside Piwik PRO on one section of the site and compare pageview and goal counts before switching the rest.
  • Cutover: Remove the old snippet in one release and confirm that Matomo receives hits from production pages.
  • History: Decide whether exported Piwik PRO reports are enough for your reporting needs, since raw data will not carry over into Matomo.

Confirm with your own team which reports leadership relies on, because those define the minimum history to keep.

Questions buyers ask before moving from Piwik PRO to Matomo

What does it cost to move from Piwik PRO to Matomo?

Matomo's On-Premise Community edition is free forever with unlimited users and hits, according to Matomo's pricing page, so the cost sits in infrastructure, labor and any paid add-ons. Infrastructure scales with pageviews. Matomo's requirements FAQ sizes one server with 4 CPUs, 8 GB of RAM and 250 GB of SSD for up to 1 million pageviews a month, and separate app and database servers with 8 CPUs and 16 GB of RAM each for up to 10 million. Recurring costs include hosting, backups, patching and staff time. One-time costs include rebuilding sites, goals, custom dimensions, the tag container and the consent setup, plus any work to keep Piwik PRO history. Paid add-ons such as the Heatmap and Session Recording plugin are sold per number of users, so ask for that figure in writing. Request quotes from implementers against a written scope that lists sites, containers, consent configuration and retention.

How long does a Piwik PRO to Matomo migration take?

No researched figure fixes the duration, so the pace depends on the scope you agree. The main drivers are the number of sites and subdomains, how many goals, custom dimensions and tag container rules must be rebuilt, whether you run the old and new trackers in parallel, and how much Piwik PRO history you keep. Server provisioning, the consent decision and privacy or legal review often take longer than the technical rebuild because they need sign-off from people outside the analytics team. Hosting environment matters too: a change-controlled data center or air-gapped network usually adds approval steps. Ask any implementer for a timeline broken into phases, with the dependencies and approvals each phase needs, and confirm that the plan covers parallel running and cutover.

What internal staff time does a Matomo migration need?

Four roles usually carry the work. An analytics owner rebuilds goals, custom dimensions, segments and reports and checks that the new numbers match business expectations. A web developer replaces the Piwik PRO tracking code and tag container logic in site templates and single-page apps. Someone from platform or infrastructure runs the server, the database and the PHP and web server stack. Matomo 5 runs on PHP 8 with MySQL 5.5 or later or MariaDB, while Matomo 6.0.0 needs PHP 8.1 or newer and MySQL 8.0 or MariaDB 10.6 or newer, according to Matomo's requirements FAQ. A privacy or legal reviewer signs off on the consent configuration. Confirm how many hours each role needs in the implementer's written scope, and agree who owns the system after handover.

Can our team migrate from Piwik PRO to Matomo without a partner?

Yes, if your team already runs Linux servers, a PHP web stack, a MySQL or MariaDB database and a tag management process. The work is standard system administration plus careful rebuilding of tracking. A partner adds the most value where the scope is large, the environment is restricted or the team lacks spare capacity during cutover. DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside the client's own cloud accounts, data centers or air-gapped networks. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and ongoing support and upgrades are available as retainers. Decide early which parts your team will keep, such as the content of goals and reports, and which parts you will hand over.

Can Piwik PRO history move into Matomo, and what is lost?

Raw Piwik PRO events cannot be replayed into Matomo as if they had always been collected by it. Matomo's own importer shows the limit: the Google Analytics Importer brings in aggregated report data, not raw visit and action data, so the Visitor Log, Ecommerce Log, Custom Reports and Segmentation do not work on imported reports, and some reports such as Funnels are not imported, according to Matomo's FAQ on import limitations. Expect the same kind of limit with any aggregated export from Piwik PRO. Confirm with Piwik PRO which export formats your contract includes and whether raw data is available. Then choose between three paths: keep Piwik PRO read-only for a defined period, import aggregated history into a separate site, or start the Matomo series at cutover. Write the decision down with the retention period your compliance team requires.

Does Matomo's GPL license carry any cost for us?

The Matomo code is licensed under GPLv3, according to the LICENSE file on its 5.x-dev branch, and the On-Premise Community edition has no license fee. Costs come from three places: hosting and operations, your own labor, and optional paid components. The Heatmap and Session Recording plugin is a premium plugin sold per number of users under the InnoCraft EULA rather than the GPL, and its listing on the Matomo plugin marketplace offers a 30-day free trial. Some free plugins, such as the Google Analytics Importer, are distributed under GPL v3 or later. Ask counsel to confirm your obligations if you modify Matomo or distribute it to third parties, since the GPL's terms apply in those cases. Also check whether each plugin you need carries a separate license before you commit to a design.

Which Matomo version should we target for the migration?

Target the latest stable release unless you have a specific reason to use a beta. Matomo's changelog lists Matomo 5.14.1 as the latest stable version, with Matomo 6.0.0 in beta, so a production cutover should normally start on the stable line. Choose Matomo 6.0.0 only if you can meet its requirements, which Matomo's FAQ lists as PHP 8.1 or newer and MySQL 8.0 or newer or MariaDB 10.6 or newer. Matomo 5 works with PHP 8 and MySQL 5.5 or later or MariaDB, behind Apache, Nginx, IIS or LiteSpeed. Check the changelog on the day you plan the build, because the stable and beta status can change. Plan the upgrade path to later releases as part of the operations scope, and test each upgrade on a copy of the data before you apply it to production.

How do we keep consent compliant after moving from Piwik PRO?

Piwik PRO's built-in consent management has to be replaced, so plan the consent setup as part of the migration rather than as an afterthought. France's CNIL lists conditions for analytics trackers to be exempt from consent, including limiting purposes to audience measurement and A/B testing, a single publisher scope, no cross-checking with other processing, truncating the last byte of the IP address and a tracker lifetime of at most 13 months. Matomo's ePrivacy FAQ says that features such as User ID, heatmaps or session recordings remove the exemption. Check that the Matomo configuration, the tag container and any session tools match the criteria in your jurisdictions, and have counsel confirm the result. Ask the implementer to document the configuration and the evidence for each setting so your compliance team can review it.

How DeployOpen scopes and runs a Piwik PRO to Matomo migration

DeployOpen is a Chainscore Labs company that plans, implements, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside the client's own cloud accounts, data centers or air-gapped networks. For a Piwik PRO to Matomo move, that means the Matomo instance, its database and web tier, the tag container replacement, the consent layer and the parallel-tracking period are all built and run in infrastructure the client controls. Most engagements are fixed-scope: the sites in scope, the goals and custom dimensions to rebuild, the tracker changes, the consent configuration and the cutover conditions are written down before work starts, together with the deliverables and timelines. A quote follows from that written scope, so the first useful step is an inventory of what the organization actually uses in Piwik PRO today.

The scope document should settle the decisions that drive most of the effort. Confirm which sites, subdomains and apps feed Piwik PRO, which goals and custom dimensions are still reported on, and which exports must be kept as history, since aggregated history is what a Matomo import can carry forward. Decide whether any feature that goes beyond audience measurement, such as User ID tracking, heatmaps or session recordings, is required, because the Matomo ePrivacy guidance notes that these features remove the CNIL exemption and that heatmaps and session recording are sold as a paid premium plugin. Ask for the written scope to name who signs off the consent configuration and the retention period. DeployOpen prepares the evidence a compliance assessment asks for, including configuration records and test results, but it does not issue audit reports or certifications. Those come from independent auditors and certification bodies, so ask your assessor which artifacts they will request before the work starts.

Ongoing support, upgrades and continuous testing after cutover are available as retainers, which suits Matomo because major versions move quickly and the PHP and database requirements change between releases. Ask any provider to show how the retainer covers patching, backup restore tests and version checks against the requirements page, and to state in writing what is excluded. Use the written scope to confirm acceptance criteria for each phase, so both sides agree on when the migration is complete and when Piwik PRO can be turned off.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.