To exclude traffic by Cookie Content

To exclude traffic from dynamic IP addresses, you can use a JavaScript function to set a cookie on your internal computers. You’ll then be able to filter all visitors with this cookies from appearing on your Analytics reports.

How to exclude traffic by cookie:

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

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

(Please 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 http://www.google.com/support/googleanalytics/bin/answer.py?answer=55494

to create a filter with the following settings:

Filter Type: Custom filter > Exclude

Filter Field: User Defined

Filter Pattern: test_value

Case Sensitive: No

Helpful links:

  1. http://www.google.com/support/googleanalytics/bin/answer.py?answer=55494
Advertisements