This a little trick I discovered just a few minutes ago. I have been using WP.com stats plugin in my site for a while but suddenly the plug stopped working.
So I installed GA in my site to keep track of it as I cannot relly on WP stats system as it failed updating. So I wanted to ommit logged in users from appearing in the GA stats and I think I found the way to do so, by using the same function/tag the comments template usera to differenciate from loggedin users of regular visitors:
I'm just gessing it works just fine, does anyone knows if this is true?
does the GS stats depend on the script load?
My tests indicate that the script absolutely does not load when a logged in user views a page in the site, on the other hand the GA script DOES load for regular users.
Check it out! :D
Note: as always, this code must be put before the 'head' section ends.