Title: Filtering Logged in Users
Last modified: August 21, 2016

---

# Filtering Logged in Users

 *  Resolved [paul.baumgartner](https://wordpress.org/support/users/paulbaumgartner/)
 * (@paulbaumgartner)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/filtering-logged-in-users/)
 * I want to exclude administrators from my google analytics. I tried to follow 
   the instructions but I think they are different because I’m using universal analytics
   rather than the old version. Could you explain how to filter out certain users
   from the analytics?
    many thanks Paul
 * [https://wordpress.org/plugins/duracelltomi-google-tag-manager/](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/filtering-logged-in-users/#post-5052569)
 * Hi Paul,
 * When you are using my plugin and GTM, it is irrelevant what tracking code you
   are using: simply create a dataLayer macro and read the dataLayer variable “visitorType”.
 * Create a new rule where you check this new macro value. Set to “equals” and “
   administrator”.
 * Add this new rule to your GA tags to prevent firing them.
 * Hope this helps,
    Thomas Geiger
 *  Thread Starter [paul.baumgartner](https://wordpress.org/support/users/paulbaumgartner/)
 * (@paulbaumgartner)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/filtering-logged-in-users/#post-5052652)
 * Hi Thomas
 * Your explanation was just what I needed, I set the rule as a blocking rule on
   the analytics and remarketing tags. I then tested with the Google Tag assistant
   and now they don’t fire when logged in as administrator.
 * Thanks very much for the response
 * cheers
    Paul

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Filtering Logged in Users’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [paul.baumgartner](https://wordpress.org/support/users/paulbaumgartner/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/filtering-logged-in-users/#post-5052652)
 * Status: resolved