I have integrated Google Sites website with Google Analytics and I access the website frequently to add more content. I want Google Analytics to track visits from real visitors only. How can I configure it to exclude or filter out my visits?
You can use the Google Analytics opt out browser add-on.
You can also block your own IP address. Source
- Click Filter Manager from the Analytics Settings page
- Enter a Filter Name for this filter
- From the Filter Type drop-down list, select Exclude all traffic from an IP address
The IP address field will auto-populate with an example IP address. Enter the correct value. Remember to use regular expressions when entering any IP address. For example, if the IP address to filter is:
then the IP address value will be:
You may also enter a range of IP addresses. For example: Range: 184.108.40.206-25 and 10.0.0.1-14 IP address value : ^176.168.1.([1-9]|1[0-9]|2[0-5])$|^10.0.0.([1-9]|1[0-4])$
For help finding the correct expression for your range of IP addresses, use our tool: http://www.google.com/support/googleanalytics/bin/answer.py?answer=55572
Select the profiles to which this filter should be applied in the Available Website Profiles box
- Click Add to move the selected profiles into the Selected Website Profiles list
- Click Finish to save this filter, or Cancel to return to the previous page
You can also block yourself with a cookie
To exclude traffic by Cookie Content
Note: This is an advanced alternative to the previous method.
How to exclude traffic by cookie:
Create a new page on your domain, containing the following code:
(Please note that this code is in addition to the Google Analytics tracking code that you have on every page of your website.)
In order to set the cookie, visit your newly created page from all computers that you would like to exclude from your reports.
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