About Adam Taylor...

I am a student, blogger, lazy entrepreneur....


I write about: Analytics, blogging, search engine optimisation and social media marketing.


Find out more...

Google Analytics Tutorial - How to filter unwanted data in Google Analytics

If you have a website with Google Analytics tracking implemented there may be reasons to filter out certain data from being reported on. For example, when calculating traffic figures it’s usually not helpful to include your own traffic or the traffic from people who work on the website as they are going to visit your website an unrealistically high amount.

Why should you filter data?

Filtering or excluding certain data from your reports is important to ensure your data reports are accurate. If you have set up conversion goals and you do not set up any filters, all those visits from your web team are going to have a negative effect on the reported conversion rate of your website. Generally it is a good idea to filter as many known people and domains as possible to ensure the reported data is as accurate as possible.

Filtering by IP address

Fortunately it is possible to filter by IP address to exclude traffic. Using this method you can filter your own IP address or your web agencies IP address or anyone else who works on your website.

  1. Log into Google Analytics and select to edit profile settings for the website you wish to add the filter
  2. Scroll down to filters and select ‘add filter’
  3. From the filter type drop down select ‘Exclude all traffic from an IP address’
  4. Then enter the IP address to filter ensuring that you escape (\.) the periods like xx\.xx\.xx\.xx

Filtering by domain

Depending on how you run your site you may have a development version or local test copy of your website. Obviously there is no reason to incorporate the data from these sites into the data for the main site. You could solve this by not having the tracking tags on the development version but this can get tricky when releasing files to the live website. Much in the same way as you filter IP addresses you can filter domains. The procedure is the same as for filtering IP addresses expect you must select ‘Exclude all traffic from a domain’.

Related Posts


Subscribe to the Conversion Matters feed!

9 Responses to “Google Analytics Tutorial - How to filter unwanted data in Google Analytics”

  1. LM Says:

    Filtering by domain seems to be more applicable these days, i have added that feature to mine, and also the above scipt

    dugg!

  2. Adam Says:

    Yeh I agree domain name is generally more useful (if you have a development version and a production version etc). If you know that you or people who work on your website have a static IP addresses then that can also be useful.

  3. BJ Wright Says:

    If I needed to exclude traffic from more than 1 website, would I simply setup 2 or more filters and apply it to one profile? We just launched a linkbait campaign on one of our websites, and I want to exclude the traffic stats from the social media websites (digg, stumbleupon, reddit, ect.)

    Thanks,

    BJ

  4. Adam Says:

    @BJWright: yep you can just keep adding filters (although I have this feeling there is a limit of four, but that may be just for goals? - either way you can set up multiple profiles for the same website if needed.

  5. BJ Wright Says:

    hmm…I added the filter to exclude Digg & Stumbleupon and still received traffic stats from both of them? I guess I’ll just have to continue to play with it and see what I can get?

    Thanks,

    BJ

  6. Adam Says:

    @BJ Wright: I just realised that filtering stumble/digg etc. this way would never work because I *think* filter by domain only filters for domains which have your tag on.

    So for e.g, say you have http://www.mysite.com and http://test.mysite, you could block test.mysite, which would block any stats from that domain but you couldn’t block http://anothersite.com’s referral traffic.

    The only solution I could think of would be to only place the tracking tag on the page after you check the headers to see that the refer is not digg/stumble etc if that’s what you definitely want to do.

  7. Randolf Says:

    “exclude all traffic from a domain” is NOT thought as a way to exclude traffic to a subdomain of your site, but “use this filter to exclude traffic from a specific domain, such as an ISP or company network.”

    http://www.google.com/support/analytics/bin/answer.py?hl=en-au&answer=55593

  8. BJ Wright Says:

    Randolf we tried to simply use this filter to block traffic stats from one site, with no luck. If you have had success in using this filter this way, could you explain how you set it up?

  9. Randolf Says:

    You can only block traffic from all users SURFING with an ISP or from one company (e.g. aol.com, comcast.net, t-dialin.net) with the “exclude all traffic from” filter. If you want to filter users with a certain referrer or traffic to one of your own subdomains you need to use other filters. The details stated here are simply inaccurate…

Leave a Reply

Subscribe to Comments?

Tamar Goes To Town 121 Tamar Goes To Town 120 Tamar Goes To Town 119 Tamar Goes To Town 118 Tamar Goes To Town 117 Tamar Goes To Town 116 Tamar Goes To Town 115 Tamar Goes To Town 114 Tamar Goes To Town 113