Matomo Tag Manager vs Google Tag Manager
Rebuild a sample Google Tag Manager web container in Matomo and check event timing, consent changes, vendor requests and publishing controls.
Google teams using parallel workspaces need to coordinate successive edits in one Matomo container. Inventory each tag’s destination and consent dependency.
Last updated
In short
- Google teams using parallel workspaces need to coordinate successive edits in one Matomo container. Inventory each tag’s destination and consent dependency.
- A successful preview must include a withdrawal after an earlier grant.
- Give a second publisher a version they can restore.
Product comparisons · See also How to migrate from Google Analytics to Matomo
Treat a container move as a change to executable website behaviour. An inventory of tag names will miss the most expensive failures, such as loading an advertising script before the visitor has chosen, or sending two purchase events when the checkout updates without a page reload. The following design assumes a web container and a policy that suppresses all optional measurement requests until permission is granted.
Rebuild one checkout
The shop emits a purchase event after its backend confirms the order. Its consent manager supplies the current categories at page load and announces changes during the visit. The analytics team may draft changes while a release owner publishes. Keep the source container export and published version as evidence. Record custom templates, JavaScript dependencies and the site’s content security policy before trying to map components.
| Existing Google design | Matomo implementation to evaluate | Acceptance observation |
|---|---|---|
| Purchase data-layer event | Map the application event into the Matomo container data layer with synthetic order reference and numeric value | One accepted order yields one permitted request even after a route transition |
| Advertising conversion tag | Identify the vendor template or review a supported integration separately | Destination receives the expected action and currency only with the required consent |
| Initial consent state | Read the consent manager before enabling optional triggers | A new profile that makes no choice sends no optional request |
| Withdrawal event | Re-evaluate triggers and invoke the destination’s documented withdrawal behaviour | Subsequent navigation and checkout send no further disallowed requests |
| Publish a container version | Assign draft and release responsibilities and rehearse reverting a version | Reviewer can identify which script version a fresh visit loads |
Google documents built-in and additional consent checks. Matomo documents its own tags, triggers, variables and publishing model. Review each destination’s actual implementation. A template name shared by two products does not establish matching consent behaviour. Google Tag Manager consent settings · Matomo Tag Manager guide
Matomo describes a manual migration. Recreate the variables, triggers and tags in dependency order and match their outputs to the published Google container. Google Tag Manager teams using parallel workspaces must also revise their editing process. Coordinate changes in a single Matomo container with a named editor, separate preview and documented version before the next editor begins. Matomo migration guidance
Witness the browser exchange
Use separate synthetic orders for denied, granted and withdrawn sessions. In each session capture the sequence of consent state, application event and network destination. Inspect the parameters with an authorised reviewer and keep a redacted record. Include a slow-loading consent manager and a direct link to the checkout. A preview that starts after consent has already loaded misses the race that matters most.
Choose one container to own the live conversion at cutover. To compare during rehearsal, use separate test destinations so a purchase cannot inflate production bidding data. Ask the release owner to restore the previous version on a test page and verify that cached scripts and single-page navigation eventually pick up the change. If the old destination requires a consent signal the replacement cannot reproduce, retain that integration under explicit ownership or change the measurement design before publishing.
