Block google analytics code for admin user
-
I have put the GA script in the non-necessary block, and it works with permissions on and off as expected. However, I have previously used a plugin for GA code that has a switch to prevent GA code if the session is a logged-in admin user, so we are not logging their activity.
The non-necessary block is JS only, is there a way to add the script if consent and if not an admin rights WordPress user?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Block google analytics code for admin user’ is closed to new replies.