Close this search box.


In this article

Consent Mode

You can now enable Google Consent Mode for Tag Manager. How it works, and what you need to configure can be found here.


You can also directly download the demo container with triggers and variables/ Please make sure you know how to import a container.

In this category


Recent articles

Integrating Matomo Tag Manager

You can now use Matomo Tag Manager with Complianz. This new feature is available from 6.1.1 onward. You will need to configure both Complianz and Matomo to start using Matomo Tag Manager.

Enable Matomo in Complianz

First we will need Complianz add Matomo Tag Manager so it can control the script and fire events when necessary. Select Yes, and Matomo Tag Manager fires this script in the wizard under Consent – Statistics.


Statistics - Configuration

When you hit “Save and Continue” you will get the below page, where you can configure how you will add and enable Matomo Tag Manager. We will explain the 3 points as shown.

1. Statistics - Configuration - Consent for Statistics

This answer will decide if your will be using the “Statistics” category on your cookie banner and related legal texts. (If no other statistic tools are being used). If you answer “No”, statistics will be set prior to consent.

2. Statistics - Configuration - Adding the Snippet

If you choose to let Complianz add your Matomo snippet you should continue to “3“. If you want to insert your snippet yourself, Complianz will only fire the events.

3. Statistics - Configuration - Your Matomo Container

If you choose to let Complianz add your Matomo snippet you will need to enter two variables. Both are available in the ‘original snippet’ available in Matomo. Depending on your configuration of Matomo the URL is different. This example is from the Matomo plugin. For cloud the URL will differ, both can be used in Complianz.

3.1 The Matomo Snippet

You will find your code under “Manage Containers

You will find the below snippet:

					console.log( 'Example Code Snippet' );

<!-- Matomo Tag Manager -->
var _mtm = window._mtm = window._mtm || [];
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=''; s.parentNode.insertBefore(g,s);
<!-- End Matomo Tag Manager -->

The information you need is on line 8: The URL of you dashboard and your container ID: Make sure you copy/paste these to Complianz as the URL of Matomo:

And the Container ID:



Just to double-check if your implementation is correct, please check in your browser console on page load if you don’t have any errors. If the URL is not correct you will get a 404. 

Configuring Matomo

As you’re still in “Manage Containers”, hit the settings button and go to “Create New Trigger”

Under Configure this trigger; you can choose between the following event names:

Event name Category Availability
cmplz_event_functional Functional Default
cmplz_event_preferences Preferences Configuration
cmplz_event_statistics Statistics Configuration
cmplz_event_marketing Marketing Configuration

For example:

Now you can use this event to trigger your tag. It will be available under Tags, in the dropdown and uses the name of the trigger.

Join 800.000 users and install The Privacy Suite for WordPress locally, automated or fully customised, and access our awesome support if you need any help!