Set up Google Tag Manager / GA4

[ad_1]

Hi

I use Google Tag Manager and Google Analytics 4 on my page. I configured the complianz plugin accordingly.

I set up my GA4 tag in the Tag Manager with the trigger statistics (cmplz_event_statistics). That works well but I have an issue with my events. I want my events to be visible in GA4 so I believe I need to set my tag to “GA4-Event” and set up my trigger as usual. That leads to my tags being fired before the user gives consent (to statistics).

What do I have to change so all of my tags are only fired after giving consent and the events are imported into GA4?

Thank you in advance.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer