create your own

The Easiest Way to Exclude Traffic from Your Internal Computers in Google Analytics, No IP Address Lookup!

82
rate or flag this page

By fritteritter


Don't spend time trying to analyze your Google Analytics traffic until you've followed this simple guide to excluding your own traffic from the analytics results. When your web site has relatively few visitors, your influence as the author of the web site on the traffic statistics may make them nearly meaningless.

In about one minute you can follow these easy instructions to ensure that the traffic you see in Google Analytics is an accurate representation of the visitors that you care about. You will not need to download any software or browser plugins and you can follow the instructions in the web browser of your choice.

Google Analytics traffic filtering is applied for any new traffic coming in, so your existing statistics will not be changed. If you decide to start another web site, remember this advice as a first step to keep your traffic graphs clean from the start.


Part 1: Give your computer a name

The first step to excluding internal traffic from your web site traffic stats is to give Google Analytics something unique by which to identify you.

  1. Go to any page on your web site that uses Google Analytics tracking. If you use HubPages, you can follow these instructions without leaving this page!
  2. Copy the entire one-line code below and paste it into your web browser address bar, entirely replacing the current web address.
  3. Change the UniqueWord in quotes to something unique, such as your name or username.
  4. Once you have changed the code, press the Enter key - if your unique word appears in a popup box, it worked!
  5. Repeat these steps on all of your sites that use Google Analytics, once per domain (i.e. only once for all of your content at hubpages.com, and once again for yourwebsite.com)

javascript:void(function(w){try{__utmSetVar(w)}catch(e){pageTracker._setVar(w)}alert(w)}('UniqueWord'));void(0);

This code tells Google to store a specific word on your computer that will identify you when you are browsing your web site. Don't worry, your unique word can't be seen by sites other than your own.

Just hit Enter or click the button that you would use to go to a web site. The page you are viewing will not change, but you will see an "OK" dialog confirming the word that you chose.
Just hit Enter or click the button that you would use to go to a web site. The page you are viewing will not change, but you will see an "OK" dialog confirming the word that you chose.


Part 2: Tell Google Analytics to filter out your traffic

The Google Analytics Filter Manager is a very powerful tool for filtering your content. The Filter Field dropdown which you will see soon lists all of the different traffic identifiers which you can use to customize your Analytics reports.

  1. Go to the Google Analytics Filter Manager (you can always find a link to this page at the bottom of your Analytics homepage)
  2. Click the + Add Filter link which is located at the right of the gray bar.
  3. Type a filter name, something like My Traffic or Author Filter.
  4. In the Filter Type dropdown, select Custom Filter.
  5. In the Filter Field dropdown, select User Defined (near the top of the list).
  6. In the Filter Pattern text box, type the unique name that you used in Part 1.
  7. Finally, in the Available Website Profiles list, select your web site address (i.e. hubpages.com) and click Add ยป to move your site to the Selected Website Profiles list. Repeat this step for each web site that you track with Google Analytics.
  8. Click Save Changes at the bottom of the page.

This simple setup will allow you to exclude yourself from your Google Analytics statistics whenever you visit your web site from your home computer. If you ever switch computers, just follow the steps in Part 1 using the unique word that you've chosen to filter.

Find the Filter Manager link below your Website Profiles list on the Analytics Settings home page.
Find the Filter Manager link below your Website Profiles list on the Analytics Settings home page.
Click the Add New Profile link.
Click the Add New Profile link.
Type a name for the filter. Choose Custom filter for the Filter Type. Choose User Defined for the Filter Field. Type your unique word as the Filter Pattern. Add any sites from which you wish to exclude yourself. Click Save Changes.
Type a name for the filter. Choose Custom filter for the Filter Type. Choose User Defined for the Filter Field. Type your unique word as the Filter Pattern. Add any sites from which you wish to exclude yourself. Click Save Changes.



If you have not installed a unique Google Analytics exclusion word on the current computer, you will see this when verifying your unique word. Follow the steps in Part 1.
If you have not installed a unique Google Analytics exclusion word on the current computer, you will see this when verifying your unique word. Follow the steps in Part 1.

How to Check If Your Browser is Filtered Out

If you are not sure whether you set a unique word or do not remember what it is, simply paste the following command into the web browser address bar and hit Enter. Your current unique word will appear in a dialog window which you can then close.

javascript:alert(_uGC(_ubd.cookie,"__utmv=",";").replace(/.*[.-]/,'')||'No unique word');void(0);

Of course, if you see a different word than you set up in Part 2, you should follow the directions in Part 1 to apply the correct unique word.


Why is This the Easiest Way to Exclude Myself from Analytics?

Unless you have read other articles already and tried to exclude yourself from Google Analytics, you may not appreciate how much simpler this is.

  • You can use the same unique word on any computer without ever returning to the Google Analytics Filter Manager.
  • You do not need to modify any of the code on your existing page.
  • You do not need to look up the IP address for your home network and all other places where you want to browse your web site.
  • IP addresses, the codes that uniquely identify computers and home networks, change often and without warning; your unique word will not change.
  • It works with both the old and new Google Analytics and Urchin tracking code.


Automatically identifying multiple authors

If you have multiple authors, you can make a simple addition to the HTML code of one of your author-only pages which will automatically add your unique code whenever they sign in. By making this change you can avoid contacting your entire writing staff with the instructions above while still ensuring that they are not tracked.

  1. Add the following snippet to your HTML code, it can appear anywhere on the page.
  2. Edit the UniqueWord to something meaningful, such as "authors"
<script type="text/javascript">
setTimeout(function (){var s=function(v){
try{__utmSetVar(v)}catch(e){try{pageTracker._setVar(v)}
catch(e){setTimeout(function(){s(v)},500)}}
};s('UniqueWord')}, 500);
</script>


Multiple user class segmentation, alternative to exclusion

If you have multiple authors, you may want to track their activity as well, just segmented out from normal users. This is also very simple to do. The instructions below will create a new Website Profile for your staff which you can access from the Google Analytics homepage.

  1. Go to the Google Analytics Create a New Website Profile page (you can always find a link to this page at the bottom of your Analytics homepage)
  2. Select Add a profile for an existing domain.
  3. Choose your web site from the dropdown list and name the profile something distinguishing, such as Blog Co-authors.
  4. Follow the instructions in Part 2, but change the selection below Filter Type from Exclude to Include. This will exclude any traffic that doesn't match your unique word.


Reader Feedback

Are these instructions easy enough?

  • Yes, the easiest I can find
  • Yes, easy enough for me
  • They could be easier
  • No, I know an easier way
See results without voting

Learn more about Google Analytics

  • How To Get A Facebook Tracker

    According to the Google Adwords Keyword Tool, some 18100 people every month search for the term 'facebook tracker' and another 2900 per month search for the term 'facebook profile tracker'; several thousand... - 4 months ago

  • The Easiest Way to Exclude Traffic from Your Internal Computers in Google Analytics, No IP Address Lookup!

    When you don't have many visitors, your own use of your web site greatly affects your statistics. Don't spend time trying to analyze your Google Analytics traffic until you've followed this one-minute guide to excluding your own traffic from the analytics results. - 5 months ago

  • Using Google Adsense Channels

    Well you want to know what is working and what is not right? Using URL trackers through your adsense account helps you see which hubs or articles are making you the most money. Using URL trackers and Google... - 4 months ago

  • Your Work At Home Guide 4 Website Success

    Girls, what are the common components here? You see how this can be done, at home, anywhere on your grounds or properties, anywhere with room mates or... - 2 months ago

Reader Comments

RSS for comments on this Hub

ajasquared  says:
3 months ago

Great tips! Already put into action! Great hub!

A2shley profile image

A2shley  says:
3 months ago

Thank you! So helpful :)

Lily Rose profile image

Lily Rose  says:
2 months ago

Thank you for this - I had excluded my IP in analytics when I first started on HubPages, but never thought to add my other blogs into the filter when I created them.

Your directions were very simple to follow - thanks.

Now I just need to figure out how to USE analytics!

harrisdy profile image

harrisdy  says:
2 months ago

great tips...

fritteritter profile image

fritteritter  says:
2 months ago

Glad to hear it! Thanks for the comments.

Panda  says:
6 weeks ago

Forgive my techie ignorance - do I need to do this only on my home page to stop Analytics counting me when I view every page on my website?

fritteritter profile image

fritteritter  says:
4 weeks ago

Yes, it will stop Analytics from counting your views on any page of your site. You can double-check to make sure it's working on the other pages, just see the "How to Check If Your Browser is Filtered Out" section for instructions.

If you use subdomains on your site (i.e. news.mysite.com) you should follow these instructions at the main branch of your site, mysite.com in this example, and then that identifier will be carried over to any subdomain.

piergiuppo  says:
2 weeks ago

Add ;void(0); at the end of each command to make it work on firefox+ MAC OSX see: http://www.javascriptkata.com/2007/05/01/execute-j

piergiuppo  says:
2 weeks ago

Is there any way to put these commands inside an html page (on the FTP space)? This would help excluding myself from all the computers I use. Thanks in advance

fritteritter profile image

fritteritter  says:
2 weeks ago

@piergiuppo Thank you for the information regarding the page refresh bug, I added ;void(0); to the commands.

To insert these commands in an HTML page, simply add the entire commands shown above as the href for a link.

<a href="javascript:...">Set Analytics Tracker</a>

You may also find the code in the "Automatically identifying multiple authors" section useful as you will only need to visit a certain page from each of your computers to set the cookie and need not click a link.

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

Google is a trademark of Google, Inc.

Google Analytics logo is from gaforflash, distributed under Apache License 2.0

Dream/Reality graphic designed by stock.xchng contributor iamwahid

Screenshots taken in Ubuntu 9.04 using Radial theme.

working