GTM: an exception for statistics cookies (category)

Hi @wpadmi,

While I can’t see the current set-up of your Firing Trigger “Event – Ecommerce Events GA4” in the attached screenshots;

Instead of an exception, what you could try is the following:

– Edit your Firing Trigger “Event – Ecommerce Events GA4”
– Click the + icon next to the “Fire this trigger when an event occurs” section, to add another condition for the trigger to fire.
– Use your Statistics Cookie variable, and check if it’s value contains allow

Here’s a screenshot to illustrate what I mean. You can ignore the Click ID and testEvent, as this is just an example. But I’m mainly referring to the “Cookie – Statistics” contains allow part, which you can add to your Firing Trigger to require the presence of a cookie ‘cmplz_statistics’ with value ‘allow’.

Kind regards, Jarno

Thread Starter
wpadmi

(@wpadmi)

Great, it works!

Jarno, you made my day, as always 🙂

Best,
Jiri.

Hi @wpadmi,

No problem at all, thank you for the quick response and your kind words!

Kind regards, Jarno

 

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