Add to Google Add to Bloglines Add to Newsgator Add to Yahoo! Contact ROI Revolution Sign Up for the ROI Newsletter Unofficial Google Analytics Blog Feed Unofficial Google Analytics Blog
Unofficial Google Analytics Blog by ROI Revolution

Categories Search This Blog Blogroll Archive

| |

February 22, 2006

Exclude Internal Visits from Google Analytics

By Michael Harrison, Google Analytics Support Tech

Back in November, Amit Agarwal wrote about preventing Google Analytics from tracking visits via an edit to the Windows Host file. This is an effective work-around for excluding traffic from internal PCs with dynamic IP addresses, but tweaking the Hosts file is a bit tricky for the average user. Plus, if you've got dozens or hundreds of employees, it's really not practical.

Using Google Analytics' Visitor Segmentation, you can achieve the same result, much more efficiently and with a lot less work on your internal users' end.

Create a hidden page on your website, using the following tag:

<body onLoad="javascript:__utmSetVar('internal');">

In the best case scenario, this page is hosted behind a password-protected Employees Only area. You can also use a link, calling the __utmSetVar function via an onClick event, if you so choose.

Now broadcast the URL for this page only to the employees you wish to exclude from Google Analytics' data.

Lastly, create an Exclude Filter with the following criteria:

  • Filter Type: Exclude
  • Filter Field: User Defined
  • Filter Pattern: internal
  • Case Sensitive: Off

Don't forget to apply the filter to your profile.

Once your employees visit the page, their browsers will be tagged "internal" and their transactions, page views, and clickpaths will be excluded from your data.

Posted by Michael Harrison at 5:29 PM









Filed under:

TrackBack

TrackBack URL for this entry:
/mt/mt-tb.cgi/54.

Comments

what if I am tapped as internal and I visit someone else's page that has the same code, would I not show up on their results either

Posted by: fred at May 1, 2006 3:56 PM

Fred,

Your "internal" cookie will not, by default, transfer from domain to domain, as Google Analytics uses only first-party cookies. You will only be excluded from the reports of the profile with the filter on it... not by any others.

Hope that answers your question.

Posted by: Michael Harrison at May 1, 2006 4:54 PM

What happens if our internal users use an alternative browser? Do they need to connect to the broadcast URL again in that browser? What happens if the same internal users are off-site in a conference facility? Or if they reset their cookies?

Posted by: Jonathan at September 29, 2006 1:38 PM

Jonathan,

If your internal users are on an alternative browser or if they reset their cookies, they will need to re-connect to the broadcast URL again before they will be filtered out.

Posted by: Michael Harrison at September 29, 2006 3:10 PM

Post Your Comments

Post a comment

Contacting ROI Revolution

Telephone Number:
(919) 954.5955 ext. 306
ask for Meredith Smith

Office Fax:
(919) 954.4767

Address:
3109 Poplarwood Ct.
Suite 219
Raleigh, NC 27604


Authorized Google Analytics Consultant

Google Analytics Certified Service and Support Consultant


Free Webinar!

Join a Live FREE Google Analytics Training Webinar
Register now to learn how to
turn Google Analytics into
pure profit! You'll learn how to use many of the key reports, a ten-step system for properly configuring Google Analytics on your website, and how to apply what you learn to the attainment of your online goals. Register for our free Google Analytics training webinar today.


Subscribe to the
ROI Revolution Google
Analytics Newsletter today

Free monthly email publication that contains valuable, practical tips, secrets, and much more! Subscribe to our free Google Analytics newsletter today.


Looking to Purchase
Urchin 5 Software or Fee
Based Support?

We are a Urchin software certified service and support partner! Buy Urchin 5 software, profile packs, load balancing modules, campaign tracking, or fee-based support today.