There’s little doubt that Google Analytics is the most comprehensive software for analyzing your website traffic. Since you likely visit your own website regularly, it’s important to exclude yourself from this data so you don’t wind up with a bunch of skewed data.

Here we are going to cover two common ways to exclude yourself from your own data: Block the Analytics tracking code with a browser extension, or create an IP address filter.

Method 1: Using a Browser Extension

By far the easiest option is to install a browser extension. The extensions work by blocking the Analytics JavaScript code. You have a couple options to choose from, and each serves a slightly different purpose.

Block Yourself from Analytics

If you don’t mind being included in Analytics data, and only want to exclude yourself from your own website data (this is what we use and recommend), Block Yourself from Analytics is likely the best option for you.

Block Yourself from Google Analytics

This extension lets you choose which websites you want to exclude yourself from. For instance, you can set it to block yourself only from your website to avoid false statistics, while allowing other websites to include you in theirs.

Google Analytics Opt-Out Add-On (by Google)

But, if for some reason, you don’t want to be included in anyone’s Analytics data, the official Google Analytics Opt-Out Add-On is probably the best choice. This extension will disable Google Analytics for ALL websites, not just the ones you choose.

Method 2: Using an IP Address Filter

Before we get started with creating our filter we have a little housekeeping to do.

This method is only reliable if you have a static IP address. And unless you’ve contacted your ISP and requested a static IP address, your IP address is almost certainly dynamic. This means it periodically changes.

Any time your IP address changes, the filter no longer works. So if you have a dynamic IP address, we recommend using the browser extension method covered below.

The filter method also won’t work if you access your site from a different internet connection unless you create a filter for that IP address as well.

Now that we’ve got that out of the way, let’s get started.

Creating the IP Address Filter in Google Analytics

Follow these simple steps and you’ll be well on your way to more accurate Analytics data.

  1. Begin by creating a new filter for your view or account.
  2. Enter a name for your filter in the Filter Name field.
  3. Leave Predefined selected as the Filter Type.
  4. Select Exclude from the Select filter type drop-down menu.
  5. Select traffic from the IP addresses from the Select source or destination drop-down menu.
  6. Select that are equal to from the Select expression drop-down menu.
  7. Enter your IP address (68.65.123.234) in the field provided.
  8. Save the filter.

Google Analytics Filter

For more in depth filters, including how to exclude a subnet of IP addresses or how to use regular expressions for more complex filters, refer to the Google Analytics Help article entitled Exclude internal traffic.