Ask Your Question
2

Disable Google Analytics for administrators.

asked 2012-05-14 10:51:03 -0500

todofixthis gravatar image todofixthis flag of Chile
1082 14 17 36
http://www.fiveyearsabroa...

updated 2013-01-22 09:14:47 -0500

I've been trying to think of a way to disable administrators from being tracked by Google Analytics. I don't want my analytics data tainted with my daily visits to check up on things, especially since traffic to my site is so low right now.

There are a number of solutions out there for excluding oneself on the Google Analytics side, but they all require some rather fragile workarounds (excluding a specific IP address, setting a cookie, etc.).

But then I realized that this problem could be solved much more reliably on the Askbot side: Simply do not display the Google Analytics Javascript for the administrator.

delete close flag offensive retag edit

Comments

1

Ok, will do the the next version. It's quite simple actually.

Evgeny ( 2013-01-22 09:22:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-05-14 11:07:48 -0500

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

You can right now delete the google site verification key to disable the tracking.

We also can add the "enable/disable" switch too.

link publish delete flag offensive edit

Comments

This would work globally, but I prefer to disable it only for specific users (in this case, just me). In other words, Google Analytics should not be keeping track of my activities on the site, but it should be tracking everyone else.

todofixthis ( 2012-05-14 15:18:57 -0500 )edit
1

Ah, I see what you mean now, it is a very good idea. I am thinking of just automatically disable tracking for the admin accounts, what do you think? Would you ever want to track the administrators visits? Still, your anonymous visits will be counted - can't preclude that.

Evgeny ( 2012-05-15 10:38:45 -0500 )edit

That sounds plenty sufficient to me (I can't think of a case where you'd want to disable GA for a non-admin user anyway). It might be good if there were an option to enable/disable tracking of admin activity; once the site reaches critical mass, admins will likely (hopefully) spend just as much time participating in the community as they do moderating; at that point it might actually be more useful to include admin activity in GA.

todofixthis ( 2012-05-15 16:20:05 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-05-14 10:51:03 -0500

Seen: 116 times

Last updated: Jan 22