• Yehoshua Coren

    AHHHHHHHH!!!! Suggesting that people use a Google Analytics Opt-Out. I think I’m going to faint….

  • Yehoshua Coren

    Two additional comments.

    1). The most effective (and cross browser compatible) method for excluding data sent to GA is to add for (or if using dc.js) to your computer’s HOSTS file.

    This, like the browser plugin, will mean that GA will not collect data about you at all on ANY site. Not nice…

    2). Universal Analytics supports filters for custom dimensions. Yay!


    Hi Yehoshua, thanks for the comments! I personally have not excluded traffic using a computer’s Hosts file before, thanks for pointing that out. But, I am also excited about the additional functionality within Universal.

  • Ed Baxter

    I always favour blocking analytics using your computers host file using the following lines:

    As well as filtering by IP for ourselves and clients. It’s a shame how many people corrupt their own data with such a simple, yet overlooked thing.

  • nutrizionista firenze

    this is too difficult to me

  • Kristofer

    Thx – we are using the javascript-cookie-method for our old analyitcs. I am wondering: how would that look like for the new analytics.js from the new universal analytics?

  • Roberts

    How to modify this method to work with UA analytics.js ?

    Yehoshua Coren suggests custom dimensions, but for a beginner like me it is a bit too difficult to figure out. Any pointers towards analytics.js solution, please?

  • cwhlin

    Just used the CustomVar method but when I applied the Advanced Segment, it reduced ALL of my data (including from days before) to 0…

  • Zelda

    Is there any way to filter out by _setCustomVar? Maybe some workaround like first creating a custom field somehow?

  • replacementtablelegsadmin

    I have created and uploaded my “See ya later Google Analytics” html page and used the Advanced Segment to set up an exclusion filter for the variable “employee”. When I went to my site with a mobile device before doing this, I could see my visit tracked in the Realtime > Active visits counter. Now, after visiting my “See ya later Google Analytics” page first, I cannot and so assume that your _setCustomVar approach is working for me with MOBILE visits.

    Problem: Any DESKTOP browser that I use to visit my exclusion page and then my site STILL records my desktop visits realtime and appears to be not working for me.

    I suspect I just don’t understand something fundamental in this tutorial. I do not have my browsers set to block cookies. Should I be looking for the variable “employee” to be shown somewhere in my Dashboard visits overview? How can I test the _setCustomVar approach?

    Any help with this would be GREATLY appreciated!

  • Michell

    How can I automatically exclude a service provider from my data? Filters?

  • Clint Chapman

    Google Analytics looks like it supports filters for custom dimensions but it doesn’t actually work. :(!topic/analytics/w-zEbfH0qA8

  • TBryan Mulligan

    This is probably a dead string, but good info here. A quick ‘ARE YOU KIDDING ME??’ question. I am setting up a predefined filter to exclude my ISP Domain, which is (yes filtering my IP address sounds ideal but it changes frequently). Will this also exclude anyone else with verizon as their ISP?

  • Jorge Cerda

    My thoughts exactly.

  • Dalibor

    Awesome article. However I can’t figure out how to convert my ip addresses into the format that google analytics wants. I know you put a link above but it only takes me to a google page and I dont see a link that seems as if it would convert it. Thanks again and I look forward to hearing from you.

  • Portman

    Thank you for some other excellent post. Where else could anybody get that type of information in such a perfect approach of writing? I
    have a presentation next week, and I am at the look for such information like this.go here