Support » Requests and Feedback » [Plugin: Google Analytics for WordPress] Feature request: Exclude “internal” traffic

  • Joost,

    Can you support Google Analytics’ ability to exlude “internal” traffic (i.e. collaborators, authors, and others who use the web site routinely)? This would go beyond not tracking use of the WP dashboard; the admin, authors, etc. would not be tracked anywhere on the site.

    The rational is simple: Any good webmaster is going to visit the website frequently to proofread new posts, test updates, see if anything broke with that last theme tweak, etc. And developers working on new features will be visiting certain pages over and over again during the testing process, possibly creating an artificial traffic spike.

    GA supports two methods (see filtering by IP range, and filtering out visitors with a custom cookie. Though I use cookie filtering, both could easily be supported by your plugin.

    Using cookies (scroll down to “To exclude traffic by Cookie Content”), you could allow the admin to set a custom value for the cookie (e.g. “do_not_track”). Admins and users to the Dashboard would get the cookie automatically by including <body onLoad="javascript:pageTracker._setVar('test_value');"> in the Dashboard somewhere.

    Bonus points: Allow the admin to select users not to track (either by role–admin, moderate, etc.) or, even better, by a combination of role and individual user. (Would you store the info, for example, in a custom field hidden in each user profile?) Then, insert the code in every page of the site when the user is logged in, and the next time they log in (or visit with their session already stored via cookie) they would begin being excluded from GA traffic reports.

Viewing 1 replies (of 1 total)
  • Hey quena, there’s already the option to not track the admin, simply by not showing a script for a logged in admin. I’ll update that functionality to include editors and authors as well 😉

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google Analytics for WordPress] Feature request: Exclude “internal” traffic’ is closed to new replies.