Disable MediaAnalytics in MTM

Is it possible to disable the MediaAnalytics in the Matomo Tag Manager?

_paq.push(['MediaAnalytics.disableTrackEvents']);

Greetings

Yes, create a custom HTML tag and use the function call as suggested. There’s no native integration of these functions in the tagmanager.

1 Like

Is there another way to call the _paq Object in the Tag Manager?
image

I added this two scripts into the MTM.

var _paq = window._paq || [];
_paq.push(['MediaAnalytics.disableTrackEvents']);

and

Matomo.MediaAnalytics.disableMediaAnalytics();

Both didnt work.

Hi Tom,

Can you try this syntax:

var _paq = window._paq || [];
_paq.push(['MediaAnalytics::disableTrackEvents']);

This might work?