Google Analytics Tracking Myself

AI-generated summary

Google Analytics Tracking Myself: The discussion revolves around excluding admin accounts or specific users from being tracked by Google Analytics.

brianpurkiss initially noticed the issue and sought a solution. sam suggested creating a plugin or exclusion on Google’s site, but brianpurkiss opted for using Google Analytics’ IP filter for now, sharing a link for others.

joel proposed using custom dimensions to tag users/pageviews, allowing for filtering based on trust levels/user types. hrishikesh suggested the Google Analytics Opt-out Browser Add-on, which brianpurkiss found more suitable than IP exclusion. However, cregox pointed out that this add-on opts out of all Google Analytics, not just specific sites.

chapel recommended using an adblocker to specifically block Google Analytics on the desired site, avoiding being tracked.

I just noticed that Google Analytics tracks my admin account.

That is going to really mess with my Analytics data.

Is there any way I can have Google Analytics not show up on admin accounts or certain accounts?

「いいね!」 2

You are going to have to write a plugin for that, or set up an exclusion on googles site (somehow, I don’t know how)

Hmm. I guess I’ll just stick with the IP filter in Google Analytics for now.

Here’s a link how to if anyone else is interested.

Another thought — there’s the option of tagging users/pageviews (called “Custom dimensions” in GA) with custom params.

It requires some setup on the Google Analytics side, but Discourse could in theory allow automatic tagging with trust levels / user types, so GA data can be filtered based on that.

You can use Google Analytics Opt-out Browser Add-on

「いいね!」 4

Ooh. That’s a much better option than IP exclusion, in case my IP changes.

Thanks!

Except it opts-out of all google analytics anywhere, while I’d want to do it just for discourse (or selected sites, or whatever).

Use an adblocker or similar that allows you to specifically block something on a site. Using that, you can specifically block Google Analytics for your site to avoid being tracked.

「いいね!」 1