Analytics

Matomo Tag Manager

Matomo Tag Manager (MTM) is the open source tag management system bundled with Matomo Analytics. It loads from your own Matomo server or from Matomo Cloud (hosted in Germany) and lets you manage analytics, advertising and custom tags from a visual interface without touching the code base. Because the container itself does not transmit data to Google or any non European cloud, MTM is one of the few tag managers that can be deployed in Europe without third country transfers.

Overview

What does Matomo Tag Manager do?

What Matomo Tag Manager actually does

Matomo Tag Manager (MTM) is the tag management module bundled with the open source Matomo platform. It serves a single container script (container_xxxxxxxx.js) on the publisher pages and uses configurable triggers and variables to load downstream tags: Matomo analytics, Google Ads conversion, Meta Pixel, LinkedIn Insight, TikTok Pixel, custom HTML tags, etc. MTM positions itself as the privacy first alternative to Google Tag Manager because the container itself can be hosted in the EU on Matomo Cloud (France) or fully self hosted on the publisher infrastructure.

Cookies and storage set by MTM

The MTM container itself does not write any persistent identifier. The only cookies that may appear on the publisher domain are mtm_consent (long lived, stores the visitor consent decision), mtm_consent_removed (counterpart for refusal), and mtm_cookie_consent (alternative naming used in older builds). These cookies fall under the strictly necessary category because their sole purpose is to remember the consent choice; the EDPB guidelines on cookie walls and the CNIL exemption confirm this. Every other cookie observed on the page comes from a vendor tag triggered by MTM.

Consent gating and the requireConsent API

MTM ships with a native consent management API (mtm.consent.set, mtm.consent.remove, mtm.consent.requireConsent) that lets the publisher gate individual tags by category. Tags marked Requires Consent will not fire until the visitor accepts the relevant purpose; tags marked Exempt fire immediately. Connect this API to your CMP (Klaro, Cookiebot, OneTrust, Didomi, CookieFirst, etc.) so that opt in, opt out and partial consent are honoured automatically. Document the mapping between CMP purposes and MTM categories in your privacy notice to meet GDPR art. 13 information duties.

International data transfers triggered by loaded tags

MTM itself does not cause any third country transfer when it is hosted on Matomo Cloud (France) or on the publisher EU server. However, almost every commercial vendor tag that the publisher chooses to load (Google, Meta, TikTok, LinkedIn, Microsoft, etc.) transfers personal data to the United States or other third countries. The publisher remains controller and must justify each transfer through the EU US Data Privacy Framework certification of the relevant vendor and through Standard Contractual Clauses for any onward transfer. Maintain an up to date inventory of tags and their data flows.

Practical compliance checklist

Host the MTM container on Matomo Cloud (France) or on your own EU server. Set requireConsent on every non exempt tag. Disable the Preview mode for end users in production. Document each loaded tag, its category and its retention in your records of processing (GDPR art. 30) and in the cookie banner. Run a DPIA when MTM loads behavioural advertising tags or cross site identifiers (GDPR art. 35). Refresh the consent every 6 months or when you add a new tag, in line with CNIL deliberation 2020 091.

Alternatives to MTM

The main alternatives are Google Tag Manager (free but US hosted with Schrems II implications), Tealium iQ (paid enterprise with EU hosting), Piano Tag Manager (formerly AT Internet, France) and Commanders Act (France). Server side Google Tag Manager and Stape.io are options when the publisher wants to minimise the data shared with US vendors, but they shift the legal responsibility to the publisher under GDPR art. 28.

Compliance

Matomo Tag Manager and the GDPR

Matomo Tag Manager is classified as “Analytics”. On a site that targets European visitors, it must only load after the visitor consents, and it must be listed in your cookie policy.

Legal basis
For Matomo Tag Manager itself: legitimate interest under GDPR art. 6(1)(f) for the container loader, or consent when the container fires non exempt cookies. For every tag that MTM triggers: the legal basis of that vendor (consent for advertising and behavioural pixels under ePrivacy art. 5(3) and GDPR art. 6(1)(a)).
Risk level
medium
Applicable regulations
GDPR, ePrivacy Directive 2002/58/EC, CNIL deliberation 2020 091, EDPB guidelines 2/2023 on art. 5(3) ePrivacy, TTDSG (Germany), LOPDGDD (Spain), LIL (France)

Impact assessment (DPIA)

Matomo Tag Manager itself, as an orchestrator, does not require a DPIA. A DPIA is needed when the downstream tags triggered by the container meet the EDPB WP248 high risk criteria (large scale behavioural monitoring, profile enrichment, third country transfer with US risk, etc.). Document inside your Article 30 record both the container (low risk) and each downstream tag with its own configuration, retention and legal basis. The container changelog and version history available in MTM should be archived to evidence consent gating governance.

Sample text for your banner

We use Matomo Tag Manager (MTM), an open source tag management system, to load measurement and marketing scripts on this site only after we obtain the relevant consent. The MTM container itself runs from our European infrastructure (Matomo Cloud in France or our own server) and does not transfer your data outside the EEA. Each tag loaded through MTM (analytics, advertising, social) has its own purpose and is activated only if you accept the corresponding category in our cookie preferences. You can change or withdraw your consent at any time.
Cookies and trackers

What Matomo Tag Manager sets and contacts

Tracking method
tag_management_javascript_container
Server location
The container script (container_*.js) is served either from the Matomo Cloud CDN (OVHcloud, France) or from the publisher own server when Matomo is self hosted. No tag data is sent to Matomo when MTM is used purely as a loader for third party tags.
Cookieless mode available
Yes

Cookies set (6)

NameTypeDurationPurpose
mtm_consentpersistent30 yearsStores consent state for Matomo Tag Manager when the built in consent variable is enabled.
mtm_consentFirst party (Matomo Tag Manager)30 years (configurable)Stores the visitor's consent decision and the timestamp for tag firing.
mtm_cookie_consentpersistent30 yearsMarks that the user has interacted with the consent prompt for tags managed by MTM.
mtm_consent_removedFirst party (Matomo Tag Manager)30 years (configurable)Recorded when the visitor refuses consent, prevents non essential tags from firing.
mtm_debugsessionSessionSet only when an authenticated administrator activates the MTM preview/debug mode.
mtm_cookie_consentFirst party (Matomo Tag Manager)SessionLegacy session cookie used by older MTM versions for consent tracking.

Third-party domains contacted (6)

  • matomo.cloud
  • matomo.cloud
  • innocraft.cloud
  • innocraft.cloud
  • matomo.org
  • matomo.org
Questions

Frequently asked questions about Matomo Tag Manager

Can't find your question? Write to us, we answer fast.

Does Matomo Tag Manager set cookies on its own?

The MTM container itself does not set tracking cookies. It can store a transient first party cookie when an admin uses preview/debug mode, and the consent variable can persist a small first party preference. Tracking cookies come from the tags fired through MTM (Matomo Analytics, Meta Pixel, etc.), not from the container loader.

Do I need consent to load the MTM container?

Loading the empty MTM container can rely on legitimate interest under Article 6(1)(f) GDPR. However, every tag that MTM fires which sets cookies, reads identifiers or transfers data abroad requires prior consent under Article 5(3) ePrivacy. In practice you must gate those tags with the MTM consent variable connected to your CMP.

What is the legal basis for processing through MTM?

Two layers apply. The container loader: legitimate interest (Art. 6(1)(f) GDPR). Tags that store or read information on the device, profile users or transfer data: explicit, granular consent (Art. 6(1)(a) GDPR) plus Art. 5(3) ePrivacy. Document the distinction in your record of processing.

Does Matomo Tag Manager transfer data to the US?

No. The MTM container is served from the customer Matomo instance (self hosted in the EU) or from Matomo Cloud in Germany. There is no transfer to the United States by default. Tags fired through MTM may still create their own transfers (a Meta Pixel will continue to send data to the US), so the assessment must be done tag by tag.

Do I need a DPIA for MTM?

A DPIA is generally not required for the container itself, particularly when MTM is self hosted in the EU and used only to manage tags. A DPIA may be triggered by the underlying tags: session recording, advertising profiling, large scale tracking or transfers to the United States.

How do I implement MTM compliantly?

Self host MTM in the EU or use Matomo Cloud, enable the consent variable, integrate it with your CMP so that consent dependent tags only fire after opt in, prefer Matomo Analytics in cookieless mode, document MTM and every fired tag in the cookie policy and review the container regularly.

What are the alternatives to Matomo Tag Manager?

The main alternative is Google Tag Manager, but GTM creates third country transfers and does not solve the underlying compliance issues. Other options include Tealium iQ, Commanders Act TagCommander, Piano Manager, server side GTM hosted in the EU and Adobe Launch. None of them ship with Matomo Cloud in Germany out of the box.

How do I update the cookie policy when adopting MTM?

List Matomo Tag Manager itself (publisher: InnoCraft, hosting: self hosted or Matomo Cloud Germany, legal basis: legitimate interest, no third country transfer for the container) and then list every individual tag fired through MTM with its own purpose, retention, cookies and legal basis. Update the policy each time a new tag is added in MTM.

What cookies does Matomo Tag Manager set?

Only one first party cookie, mtm_consent (or mtm_consent_removed when consent is refused), which stores the consent decision and the timestamp. All other cookies are set by the tags fired by the container, not by MTM itself.

Do I need consent to load Matomo Tag Manager?

Loading the empty container before consent is permissible because MTM by itself does not collect personal data. You must, however, ensure that no consent gated tag fires until the visitor accepts. Configure each tag with a consent type and wire the container to your CMP.

What is the legal basis for MTM?

The container itself is based on legitimate interest (technical necessity to fire tags). Each tag inherits its own legal basis: legitimate interest for hardened analytics, consent for marketing or advertising tags.

Does Matomo Tag Manager transfer data to the US?

The container script is served from your Matomo instance, so no US transfer occurs from MTM itself. Tags fired by the container may transfer data to their respective vendors and must be assessed individually.

Do I need a DPIA for Matomo Tag Manager?

Not for the container. Each tag must be assessed on its own merits. A DPIA is recommended when MTM is used to deploy large numbers of marketing tags, sensitive tracking or behavioural advertising.

How do I implement MTM compliantly?

Host Matomo in the EU, classify every tag, assign the matching consent type, connect MTM to your CMP, restrict admin access with the Matomo permission system and use container versioning to keep an audit trail.

What are the alternatives to Matomo Tag Manager?

Google Tag Manager (the market leader, with US transfer concerns), Tealium iQ (US), Adobe Experience Platform Launch (US), Piwik PRO Tag Manager (EU), Commanders Act TagCommander (FR) and the open source Tag Manager Plus.

How do I update the cookie policy for MTM?

List the mtm_consent cookie as strictly necessary (consent technology) and add a dedicated entry for each tag fired by the container. Re generate the policy after every container publish.

Poll Everywhere

Poll Everywhere is a survey and feedback collection platform that helps businesses gather valuable customer insights through customizable questionnaires, polls, and NPS surveys. It offers advanced logic branching, multi-channel distribution, and real-time analytics. Poll Everywhere enables organizations to measure customer satisfaction, collect product feedback, and conduct market research. Its reporting tools transform raw feedback data into actionable insights.

Analytics

Acoustic Experience Analytics

Acoustic Experience Analytics is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. Acoustic Experience Analytics offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, Acoustic Experience Analytics empowers organizations to optimize strategy and maximize.

Analytics

FC2 Analyzer

FC2 Analyzer is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. FC2 Analyzer offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, FC2 Analyzer empowers organizations to optimize strategy and maximize return on investment.

Analytics

Amplitude

Amplitude is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. Amplitude offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, Amplitude empowers organizations to optimize strategy and maximize return on investment.

Analytics

Etracker

Etracker is an analytics and measurement platform providing deep insights into digital ecosystem performance. It tracks user interactions, measures campaign effectiveness, and identifies optimization opportunities across web and mobile. Etracker offers customizable dashboards, automated alerts, and data export capabilities. By transforming raw data into actionable intelligence, Etracker empowers organizations to optimize strategy and maximize return on investment.

Analytics

Raygun

Raygun is a marketing platform that equips businesses with tools to amplify their digital presence and drive customer acquisition. It supports audience segmentation, campaign automation, and cross-channel engagement. Raygun provides real-time analytics and reporting dashboards for performance measurement and strategy optimization. By combining data intelligence with marketing execution, Raygun helps deliver the right message to the right audience at the right time.

Analytics

Make your site compliant today.

Free up to 25,000 sessions a month. No credit card, no commitment.