Manage Triggers in Matomo Tag Manager
A trigger defines the condition under which a tag is executed or blocked. Triggers listen for specific events on your website, such as a page view, form submission, or scroll depth and determine when a tag should fire. You can also apply filters to apply conditions, so tags only fire on certain pages or when specific variables are matched.
In Tag Manager, navigate to Triggers to view and manage all triggers within the container.
All triggers are listed with their type and any configured filters. From here, you can create new triggers and edit, delete, and copy existing ones.
Add a new Trigger
Avoid overloading your Matomo Tag Manager container with too many tags and triggers as it may lead to slower performance or issues on your site. If you need to manage a large number of tracking conditions, use the data layer to pass structured information and reduce complexity within the container.
In the Manage Triggers page, click Create New Trigger.
A large choice of different triggers are defined by default within Matomo, and each one can be individually configured:
Let’s take a look at an example. Imagine that you are allowing your visitors to comment on your blog post and you would like to measure the number of comments you are receiving:
Without a Tag Manager, you would most likely need to add a tracking code to the source code of your website.
With a Tag Manager, the only thing you need to do is indicate that you will trigger your tag when this form will be sent:
You can then even perform laser triggering by specifying a form in particular:
As you can see, triggers are an easy way to deploy powerful tracking codes with Matomo Analytics.