Block administrative users from tag firing problem with ecommerce events
-
Hi everyone,
I am busy setting up tag firing exceptions for GA4 tag as described on https://gtm4wp.com/how-to-articles/how-to-exclude-admin-users-from-being-tracked .
My gtag environment is working fine with enhanced ecommerce tracking as explained here: https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking-google-analytics-4-ga4-version
The problem is the following:
– Data Layer variable ‘ visitorType ‘ is showing up nicely in GTAG manager preview after I turned on the ‘ Logged in user role ‘ in the Google tag manager plugin to be included in the datalayer.
– ‘block administrative users’ Trigger in google gtag manager to trigger when visitorType variable = administrator is workign fine
– Adding the ‘block administrative users’ trigger as a firing exception to my GA4 configuration tag (all pages) is working fine: when i’m logged in as administrator, the tag isn’t fired!The problem is the custom GA4 ecommerce event tag that has been set up like https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking-google-analytics-4-ga4-version still fires when adding the ‘block administrative users’ trigger as an exception.
What happens:
– I can see in GTAG manager preview that on product pages the ‘Block administrative users’ trigger works.
– However – for some reason I don’t understand – there’s also a blocking trigger showing ‘ view_item equals gtm.js ‘ is false.
– the blocking trigger ‘view_item equals gtm.js’ is false and the ‘block administrative users’ trigger is true, resulting in the total blocking trigger being false.
– therefore, the custom ‘ecommerce events GA4’ is fired while it shouldn’t be.You can see the GTAG managerpreview output over here https://i.postimg.cc/1zrdyKXG/Screenshot-104.jpg
Do you have any idea why this is happening? I’m struggling with it for hours and did extensive search, but I just can’t find out what’s happening!
Thanks for all your great work and the really nice plugin!
When I add the
- The topic ‘Block administrative users from tag firing problem with ecommerce events’ is closed to new replies.