Fixing Matomo Tag Manager Events Tracking

Standard

Matomo Tag Manager is a powerful tool that helps you track various events and activities on your website. This can include clicks, form submissions, video plays, and other user interactions. However, sometimes the tracking may not work as intended, which can lead to inaccurate data or missing insights.

In this article, we will discuss how to fix Matomo Tag Manager event tracking issues in detail. We will cover the most common issues and provide step-by-step solutions to help you troubleshoot your tracking problems.

Verify the Tag Setup

The first step to fixing Matomo Tag Manager event tracking is to verify that the tag setup is correct. This means that the Matomo Tag Manager container code is installed on your website, and the event tracking tag is properly configured.

To check the tag setup, go to your website and open the developer console in your browser. You can usually do this by pressing F12 or right-clicking on the page and selecting “Inspect” or “Inspect element”.

In the console, switch to the “Network” tab and filter the requests by “matomo.php”. This will show you all the requests that are sent to Matomo Tag Manager. If you see requests with a status of 200, this means that the container code is installed correctly.

Next, look for requests with a parameter of “e_c” (event category), “e_a” (event action), and “e_n” (event name). These parameters indicate that an event tracking tag is firing correctly. If you don’t see any of these parameters, this means that the tag is not firing correctly.

To fix this issue, make sure that the event tracking tag is properly configured. Check the tag setup in Matomo Tag Manager and make sure that the correct event category, action, and name are set. Also, make sure that the trigger for the tag is set up correctly to fire on the event you want to track.

Check for Conflicts

Another common issue with Matomo Tag Manager event tracking is conflicts with other tracking tools or plugins on your website. If you have multiple tracking tools or plugins installed on your website, they may conflict with each other and cause issues with event tracking.

To check for conflicts, disable all other tracking tools or plugins on your website and test the event tracking again. If the tracking works correctly when other tools are disabled, this means that there is a conflict.

To fix this issue, you can try to identify the conflicting tool or plugin and disable it permanently or find a way to resolve the conflict. You can also try to prioritize which tracking tool or plugin is more important to you and disable the others.

Use Custom JavaScript

Sometimes, the default tracking tags in Matomo Tag Manager may not work for certain types of events or interactions on your website. In this case, you can use custom JavaScript to track the events.

To use custom JavaScript for event tracking, create a new custom HTML tag in Matomo Tag Manager and add the JavaScript code to the tag. You can use JavaScript code to track events such as form submissions, button clicks, video plays, and more.

For example, to track a form submission, you can add the following JavaScript code to the custom HTML tag:

document.querySelector('form').addEventListener('submit', function() {
  _paq.push(['trackEvent', 'Form', 'Submit', 'Contact Form']);
});

This code will track the form submission as an event with the category “Form”, action “Submit”, and name “Contact Form”.

Check for Ad Blockers

Another issue that can cause problems with Matomo Tag Manager event tracking is ad blockers. Ad blockers are software programs that block advertisements and sometimes also block tracking scripts and cookies. If a user has an ad blocker installed on their browser, it may block

Warning: If you don’t know about javascript or don’t have developing knowledge then don’t try to Fixing Matomo Tag Manager Events Tracking that can break your site, Cart and other functionality 

Disclaimer: Google tag manager belongs to Google property 

For Contact: mappchero@gmail.com

I am available for Hire on Freelancer: Freelancer.com

I am available for Hire on Upwork: Upwork.com

I am available for Hire on Peopleperhour: Peopleperhour.com

I am available for Hire on Guru: Guru.com

Leave a Reply

Your email address will not be published. Required fields are marked *