How do I block my office traffic from Google Analytics?

Blocking IP addresses

Block your office traffic to learn what your "real" traffic is.

Instructions for creating filters are in Create/manage view filters.

To exclude internal traffic from appearing in a report view, create a custom filter to exclude a specific IP address or a range of IP addresses.

Filter Type: Custom > Exclude

Filter Field: Visitor IP Address

Filter Pattern:

    • For example, if the single IP address is 176.168.1.1, then enter 176\.168\.1\.1.

 

    • For example, if the range of IP addresses is 176.168.1.1-25 and 10.0.0.1-14, then enter
      ^176\.168\.1\.([1-9]|1[0-9]|2[0-5])$|^10\.0\.0\.([1-9]|1[0-4])$

Remember to use regular expressions to enter an IP address.

For help finding the correct expression for your range of IP addresses, use the IP Address Range Tool.

For an overview of view filters, read About view filters.

To find your IP address

Use: