Skip to content
Free Open Source Matomo Tag Manager - A simple way to manage and maintain all of your (third-party) tags on your website.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
API Support new ACL/permission management in Matomo (#36) Jul 24, 2018
Access/Capability Support new ACL/permission management in Matomo (#36) Jul 24, 2018
Activity make sure to trigger activity only if that api was called directly (#135 Dec 4, 2018
Context Fix JS Function Variable needs to generate one template per variable (#… Jan 18, 2019
Dao Another mysqli test fix. Dec 12, 2018
Diagnostic add initial files Jun 5, 2018
Input Support new ACL/permission management in Matomo (#36) Jul 24, 2018
Model check container version exists (#167) Jul 17, 2019
Settings/Storage/Backend add initial files Jun 5, 2018
Template Added a config setting for "setDomains" (#177) Aug 26, 2019
Validators add initial files Jun 5, 2018
angularjs check container version exists (#167) Jul 17, 2019
config Ensure plugin has a tracker.php file (#166) Jul 4, 2019
docs add initial files Jun 5, 2018
images better image Dec 17, 2018
javascripts check if element exists (#164) Jun 14, 2019
lang translation updates Aug 25, 2019
libs/jquery-timepicker add initial files Jun 5, 2018
misc add initial files Jun 5, 2018
screenshots add initial files Jun 5, 2018
stylesheets Converts UI tests to headless chrome (#163) Jul 17, 2019
templates Translate getting started template (#168) Jul 17, 2019
tests Added a config setting for "setDomains" (#177) Aug 26, 2019
.gitattributes Move UI test screenshots to Git LFS (#77) Sep 10, 2018
.gitignore fix some tests Jun 18, 2018
.travis.yml Run tests only against latest version (#179) Aug 18, 2019
API.php Use default API request. Aug 1, 2019 Attempt to fix changelog display Nov 13, 2018
Configuration.php Support new ACL/permission management in Matomo (#36) Jul 24, 2018
Controller.php fix piwik dependency was not defined Sep 13, 2018
LEGALNOTICE Support assigning object values in Custom HTML tag (#39) Jul 24, 2018
LICENSE Create LICENSE Mar 8, 2019
Menu.php Link to Manage Tags page in top menu when user has only view access (#73 Sep 4, 2018
MenuTagManager.php add initial files Jun 5, 2018 Tag Manager out of beta (#124) Dec 4, 2018
SystemSettings.php Support new ACL/permission management in Matomo (#36) Jul 24, 2018
TagManager.php Use default API request. Aug 1, 2019
Tasks.php add initial files Jun 5, 2018

Free Open Source Matomo Tag Manager

Build Status


Are you a developer? Please consider contributing more tags to our open source tag manager. Learn more on how to develop custom tags, triggers, and variables.
When you install this version of Matomo Tag Manager, users with admin access will be able to create custom HTML tags, triggers, and variables that may execute JavaScript on your website. These custom templates could be misused to steal for example sensitive information from users (known as XSS). You can disable these custom templates under "Administration => General Settings". We will later have new permissions in Matomo that allow you to configure who will be able to use these kind of templates.

Matomo Tag Manager lets you manage and unify all your tracking and marketing tags. Tags are also known as snippets or pixels. Such tags are typically JavaScript code or HTML and let you integrate various features into your site in just a few clicks, for example:

  • Analytics
  • Conversion Tracking
  • Newsletter signups
  • Exit popups and surveys
  • Remarketing
  • Social widgets
  • Affiliates
  • Ads
  • and more

It makes your life easier when you want to modify any of these snippets on your website as you will no longer need a developer to make the needed changes for you. Instead of waiting for someone to make these changes and to deploy your website, you can now easily make the needed changes yourself. This lets you not only bring changes to the market faster, but also reduces cost.

For example want to track an event into your Matomo whenever a certain button is clicked? It will take you only a few clicks to get the insights you need when you need them which in return lets you make decisions faster.

Matomo Tag Manager also comes in handy if you embed many third-party snippets into your website and want to bring in some order to oversee all the snippets that are embedded and have a convenient way to manage them. It also makes sure all that all snippets are implemented correctly and improves the performance of your website.

If you have different environments for your website or platform or want to test new changes before making them available globally you will be please to hear that we have you covered. With a click of a button you can deploy your tags to an environment of your choice.

Last but not least Matomo Tag Manager keeps track of all changes that you make and lets you restore snapshots at any given time.


  • Create an unlimited number of containers
  • Create versions and releases of containers
  • See what changed in each version
  • Export / import of containers
  • Preview / debug mode
  • Configure multiple environments
  • Blacklist certain tags, triggers, or variables
  • Easily define your own tags, triggers, or variables
  • Schedule tags to run only during a certain time range
  • Limit how often a tag should run
  • Assign block triggers to avoid a tag from being executed as soon as this trigger was fired
  • Optionally delay the execution of a tag
  • Assign conditions to a trigger to restrict when a specific trigger should be fired
  • Define a default value for variables
  • Define a lookup/regexp/match table for variable values with various available comparisons (contains, equals, starts with, ends with, regexp, ...)
  • Data-Layer
  • Supports Activity Log


  • Matomo
  • CustomHtml
  • CustomImage
  • Google Analytics
  • More will follow

Are you a developer? If you use features regulary which are not available yet, or you have a product you want to integrate into the Tag Manager, please check out our developer documentation on how to add your own tags, triggers, and variables. It is really easy. Matomo Tag Manager is open source and we would love it if you contribute tags, triggers and variables to our project.


  • All Elements
  • All Links
  • All Download links
  • Custom Event
  • Dom Ready
  • Element Visibility
  • Form Submit
  • Fullscreen
  • History Change
  • JavaScript Errors
  • Page View
  • Scroll Depth
  • Timer
  • Window Leave
  • Window Loaded
  • Window Unloaded


  • Constant Value
  • Random Number
  • Cookie
  • DataLayer
  • Dom Element
  • JavaScript Variable
  • HTML Meta Content
  • Referrer URL
  • Time Since Load
  • Page URL
  • Page Title
  • Page Hostname
  • Page Path
  • Page Hash
  • Page URL Parameter
  • First directory of page url
  • Environment
  • Container ID
  • Container Version
  • Container Revision
  • Local Hour
  • Local Date
  • Local Time
  • UTC Date
  • ISO Date
  • Weekday
  • Screen size width
  • Screen size height
  • Screen size width (available)
  • Screen size height (available)
  • User Agent
  • Lots of more variables for elements, clicks, scrolls, error, history, and form triggers


Matomo Tag Manager is released under the GPL v3 (or later) license, see misc/gpl-3.0.txt

Installation & Requirements

Matomo Tag Manager requires an installed Matomo Analytics see our installation guide and requirements guide.

Afterwards you can install the Tag Manager plugin in one click by going to "Administration => Marketplace".

Get involved!

We believe in liberating Web Analytics, providing a free platform for simple and advanced analytics and tag manager. Matomo was built by dozens of people like you, and we need your help to make Matomo better. Why not participate in a useful project today? Learn how you can contribute to Matomo.

Developer guides are available at


Security is a top priority at Matomo. As potential issues are discovered, we validate, patch and release fixes as quickly as we can. We have a security bug bounty program in place that rewards researchers for finding security issues and disclosing them to us.

Learn more

Support for Matomo Tag Manager

For Free support, post a message in our community forums:

For Professional paid support, send a message to our network of Matomo professionals:



About us:

Contact us:

You can’t perform that action at this time.