• 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

  • Follow DrDiv on Twitter

    • Google's Superbowl ad really shows how much our online searches really shape our lives.
      http://www.youtube.com/watch?v=nnsSUqgkDwU
    • 28 Excellent Examples Of Typography Portraits
      http://mee.bo/bGb8vv
    • Apple finally introduces a web interface for app/music links. No more "Please wait, iTunes is loading..." splash page.
    • Is blogging a slog? Some young people think so
      http://m.apnews.com/ap/db_16036/contentdetail.htm?contentguid=EFf2RRXx

    • http://twitpic.com/116i4a - iPad vs. Netbook [via eatliver.com]
  • RSS Latest Gadget News by Engadget

    • HTC Dragon and friends turn up on Dopod roadmap
    • Nokia Nuron spotted again, connection to 5230 cemented?
    • Current MacBook Pro SKU given mark of death in Best Buy database?
    • JXD V3 handheld is confused, confusing and altogether interesting
    • NVIDIA pursuing external graphics accelerators for laptops?
  • Tag Cloud

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