Does anyone know a way to filter out Admin user activity from being counted in Google Analytics (through Google Tag Manager)? Thanks for your help.
1 Like
Here’s how you can achieve this:
- Create a Theme Component
- Add a custom theme component to push an
isAdminflag to the dataLayer
- Configure Google Tag Manager
- In GTM, create a new Data Layer Variable:
- Name:
isAdmin - Data Layer Variable Name:
isAdmin
- Name:
- In your pageview or analytics tags, add a trigger condition so the tag fires only when
isAdminis not true.
- Result:
- Admin user page views will not show up in GA reports as long as the trigger condition excludes them.
Guides
Thank you so much! Much gratitude!
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.