• Home
  • Archives
Subscribe: Posts | Comments | E-mail
  • Tech CornerNews and tips on latest gadgets.
  • Web Analytics / MarketingTips on SEO, Google Analytics, WebTrends
  • Web DevelopmentHTML, CSS, JavaScript, Ajax, jQuery, PHP, Flash.

Dr. Div

Posted on July 6, 2009 - by Dr. Div

How to Exclude Your Computer From Google Analytics

Web Analytics / Marketing

As a developer/designer, you probably wouldn’t like be counted as a “visit” on the website you are working on. To prevent this, you need to:

  1. Create a “No Report” page (say, no_report.html) with the GA tracking code implemented.
  2. Replace your initial body tag with this code below and upload it to your root directory.

    <body onLoad=”javascript:__utmSetVar(’no_report’)”>
    "No Report" Cookie has been set!

    What this code does is that it sets a cookie called __utmSetVar with “no_report” value in your internet browser. So this way, as a developer what you want to do is to visit this page first. From this point on, your interactions on the website will be counted towards the “no_report” cookie.
  3. Now, for Google Analytics to report properly, this “no_report” cookie needs to be excluded from the reports. Create a filter on Google Analytics with these settings:
    ga_exclude_filter

That’s all. Enjoy!

Notes:

  • This method is especially helpful when you’re dealing with a dynamic IP on your computer.
  • If you are one of those web developers who quite often deletes their cookies, I’d recommend using the “exception” feature in your browser under the cookie settings where you can store this specific cookie to never be deleted. If you’re working on multiple clients’ websites and that you make sure to setup the Google Analytics Exclude filter on all of them, you should be set for good. This way, you wouldn’t have to visit the “no_report.html” page ever again.



[resource akamarketing]

3 Comments



  1. Visit My Website

    July 13, 2009

    Permalink

    Luke said:

    Awesome. I thought about this when dealing with a Wordpress site too. The Google Analyticator plugin has so many options, allowing you to set so that if you are logged in as admin it will not report your visits.



  2. Visit My Website

    July 21, 2009

    Permalink

    Dr. Div said:

    That’s really neat, Luke. Good to know!



  3. Visit My Website

    July 22, 2009

    Permalink

    Digital Agency said:

    Thanks for sharing. I’m constantly trying to remove myself from web reports. awesome stuff



Leave a Comment

All Symptoms Welcome

  1. Name (required)

    Mail (required)

    Website

    Message

  • Worth-a-watch Ads

  • RSS Latest Gadget News by Engadget

    • Best Buy to slash prices for old Xbox 360 special edition bundles tomorrow?
    • Hacker intercepts phone calls with homebuilt $1,500 IMSI catcher, claims GSM is beyond repair
    • Switched On: The Galaxy S paradox
    • Dell Studio XPS 9100 arrives with six cores, little fanfare
    • Engadget Podcast 207 - 07.31.2010
  • Tag Cloud

    • Adobe Amazon Android apple App Store AT&T BlackBerry Bluetooth Chrome Engadget Facebook Gadgets Gaming Google Hardware Hewlett-Packard Home Theater HTC Intel iPad iPhone Kindle latest gadgets LG Mac Microsoft Mobile Motorola Nexus One Nokia Online Other PC Samsung Software Sony Sprint Steve Jobs T-Mobile Twitter Verizon wifi Windows 7 Windows Mobile YouTube
© 2009 Dr. Div - Website Prognosis & Therapy