How to Exclude Internal Traffic from Google Analytics Reports

There are two methods for excluding internal traffic from appearing in your Google Analytics reports: you can filter out a specific IP address or a range of IP addresses, or you can use cookies to filter out visits from particular users.  More info here.  I’m using the cookie method on my sites and have found it to work well.  This is the better method to exclude traffic from dynamic IP addresses.

How to exclude traffic by cookie:

1. Create a new page on your site containing the following code:

<body onLoad="javascript:pageTracker._setVar('test_value');">

Note that this code is in addition to the Google Analytics tracking code that you have on every page of your website

2. In order to set the cookie, visit your newly created page from all computers that you would like to exclude from your reports.

3. Create an Exclude filter to remove data from visitors with this cookie. Follow these instructions to create a filter with the following settings:

  • Filter Type: Custom filter > Exclude
  • Filter Field: User Defined
  • Filter Pattern: test_value
  • Case Sensitive: No

Now any visitors with this cookie will be excluded from showing in your Analytics reports.

Advertisements

2 Responses to “How to Exclude Internal Traffic from Google Analytics Reports”

  1. Nail Says:

    Hi,
    First of all, thanks for the info. I want to ask that where exactly do you paste the code …… on the layout of the blog? Inside the script that I got from analtyics or anywhere between the body tags?

    Thanks a lot.

  2. Vi @ Paid Surveys Says:

    @Nail, read this blog post
    http://www.zachgraeve.com/2009/01/13/filter-yourself-from-google-analytics/

    it will be much clear how to set up everything.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: