I’m just a beginner with Matomo and after having installed it with the Wordpress plugin, I began to customize the tracking code to follow the french GDPR recommandations (among other things I disabled heatmap and session recording).
Then I inderstood that I needed the Tag Manager instead of standard Tracking code if I wanted to include other tags to follow.
The code generated for the Tag Manager is different from the Tracking with the _mtm object instead of the _paq in the standard Tracking code.
My question is : can I set the same setting using the push function as it was made with the standard Tracking code ?
_paq.push([‘HeatmapSessionRecording::disable’]);
If not, is it possible to acheive the same configuration using the Tag Manager ?
You can use the default tracking way with the tag manager if you check “bundle tracker” and “register as default tracker” in your Matomo configuration variable in your tag plan. (this is the default behavior).
I mean that I wanted to include special tags like Facebook Pixel or LinkedIn Insight tag along with standard tracker for basic statistics. But the problem was that I created only one Tag Manager container containing Statistics tag as well as the social ads ones.
I’ve understanden since then that I could do what I wanted by separating my tags into different containers. That helps me with the consent management cause I’m now able to activate separately the different Javascript codes to stay compliant with the GDPR.
So what I’ve done so far : I inserted the basic tracking code (without tag manager) for matomo manually inside the header section of my wordpress theme. That part is correctly configured for french GDPR recommandations.
I then created two different tag containers for Facebook and LinkedIn that I programmatically activate via my cookie management plugin.
Hope it makes sense and again thank you for your answer.