How to exclude specific users in Google Analytics?

0

How can we exclude traffic that is being generated by our own development team from being counted in Google Analytics traffic reports? We need to exclude a list of specific users. Please advice!

2 answers

There are a number of ways to filter specific users out of Google Analytics:

  • you could filter them out by their IP addresses
  • if they are using dynamic IPs, you could ask them to install the following GA opt-out plugin https://tools.google.com/dlpage/gaoptout . It is compatible with Chrome, Internet Explorer 8-11, Safari, Firefox and Opera. The disadvantage is that this plugin would also affect all other websites from counting your devs as visitors. It blocks Google Analytics for all websites, not just for your website. I do not think it is a real problem, but it does provide some undesired side effects. So below is another solution
  • create a webpage on your site that would set a "disable-analytics" cookie in users browser. Make all your developers visit that page. Server side, render GA javascript only of there is NO blocking "disable-analytics" cookie in request. The cookie name is irrelevant, it could be "block-google-analytics" etc
SEND BITCOIN TIPS
0

You can create an advanced filter (Analytics Settings > Filter Manager > Add New Filter)

Here's a screenshot of the filter you'd have for your first example.

enter image description here

In the second example, you'd replace the form fields with

/task=(.*);taskupdates and /task=;taskupdates

SEND BITCOIN TIPS
0

Too many commands? Learning new syntax?

FavScripts.com is a free tool to save your favorite scripts and commands, then quickly find and copy-paste your commands with just few clicks.

Boost your productivity with FavScripts.com!

Post Answer