Title: Potential bug with Exclude Users From Tracking
Last modified: August 22, 2016

---

# Potential bug with Exclude Users From Tracking

 *  Resolved [skirunman](https://wordpress.org/support/users/skirunman/)
 * (@skirunman)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/potential-bug-with-exclude-users-from-tracking/)
 * When using Universal Google Analytics and then selecting to exclude any of the
   user types using the Exclude Users From Tracking option then the javascript code
   tracking is not being generated in the header tag. I tested and verified on both
   my dev machine and live site, which have slightly different configuration of 
   plugings, etc.
 * Can you please check that exclude users works with Universal GA as implemented
   in aioseop_class.php
 * I’m running v2.2.3.1 on WP 3.9.2.
 * [https://wordpress.org/plugins/all-in-one-seo-pack/](https://wordpress.org/plugins/all-in-one-seo-pack/)

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

 *  Thread Starter [skirunman](https://wordpress.org/support/users/skirunman/)
 * (@skirunman)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/potential-bug-with-exclude-users-from-tracking/#post-5262110)
 * Also, just tested on my dev machine and does not seem to work with older version
   of GA either (_gag.push).
 *  [Peter Baylies](https://wordpress.org/support/users/pbaylies/)
 * (@pbaylies)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/potential-bug-with-exclude-users-from-tracking/#post-5262125)
 * Hi skirunman,
 * I tested this feature against v2.2.3.1 on WP 3.9.2 and it works for me. The expected
   behavior of this feature is that when a user with a matching role is logged in,
   the tracking code will not be output for them on the site; this is independent
   of the type of tracking used. Is this consistent with what you’re seeing here?
 *  Thread Starter [skirunman](https://wordpress.org/support/users/skirunman/)
 * (@skirunman)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/potential-bug-with-exclude-users-from-tracking/#post-5262134)
 * Whoops, my bad. Should have looked at the code a bit closer. Issue with a login
   cookie so javascript code was not showing when I thought I was logged out.
 * Thanks for quick response.

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

The topic ‘Potential bug with Exclude Users From Tracking’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [skirunman](https://wordpress.org/support/users/skirunman/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/potential-bug-with-exclude-users-from-tracking/#post-5262134)
 * Status: resolved