Web Analytics

How to Setup Your Google Analytics Views the Right Way

To get the most out of your Google Analytics data it is vital to make sure you have setup your Google Analytics views correctly. Getting the setup right means that you are seeing the most accurate data possible and that you do not lose data if something goes wrong.

In this post we will show you how to setup the two most important views. These are the raw view and a filtered view that excludes your internal traffic and any spam.

The Raw View

The raw view is simply a Google Analytics view without any filters or spam removal. This is the starting view that is provided when setting up your Google Analytics account. This view should be renamed to “Raw” and it should never have any filters or spam removal applied to it. Having a view that never has filtering added ensures that you never lose data because of a mistake in a filter.

The Filtered View

The filtered view ensures that you are seeing the most accurate data possible. In order to do this, you need to filter out two kinds of traffic. Firstly, you need to remove the sessions from your company’s own employees otherwise known as internal traffic. Secondly, you need to remove any spam traffic. Both of these traffic types will skew your data.

Creating the View

  1. Navigate to the admin section of your Google Analytics account.
  2. In the right hand column. Click the dropdown menu and Create new view.
  3. Name your view and select your location.
  4. Click Create View.
Create New View

Removing Internal Traffic

The simplest way to remove your internal traffic is to setup a filter to remove traffic from your office’s IP address.

  1. Navigate to the Admin section of your Google Analytics account.
  2. In the view column – the right hand column – make sure your filtered view is selected from the dropdown menu.
  3. Click on the Filters menu option.
  4. Click on the +Add Filter button.
  5. Name your filter: Exclude Internal IP Address.
  6. Change the Filter Type to Custom.
  7. Ensure the radio button is set to Exclude.
  8. From the dropdown menu select IP Address.
  9. Input your office’s IP address.
  10. Click Save.
Internal Traffic Filter

If your office has multiple IP addresses or IP address ranges, then these can be added into the filter using regular expressions.

You may have to anonymize IP addresses, because of legislation like the EU’s new General Data Protection Regulations. If so then, unfortunately, this will not work for you and you will need to find a different solution to exclude internal traffic. We will soon be publishing a blog post that will show you how to implement internal traffic filters with anonymized IP addresses.

Excluding Spam Traffic

The first step in excluding spam traffic is to setup a hostname filter. This filters out any traffic caused by your Google Analytics ID being used on another site. To set this up you will need to add another filter in the same way as you did for the IP address filter.

  1. Navigate to the admin section and add a new filter to your filtered view.
  2. Name the filter: Hostname Filter.
  3. Change the Filter Type to Custom.
  4. Switch the radio button to Include.
  5. From the dropdown select Hostname.
  6. Input your hostname or domain. Ours, for example, is advance-metrics.com.
  7. Save the filter.
Hostname Filter

The second step is to ensure that you have Google’s built in bot and spider filtering turned on.

  1. Navigate to the admin section.
  2. Make sure your filtered view is selected in the right hand column dropdown.
  3. Click on View Settings.
  4. Check the Exclude all hits from known bots and spiders checkbox.
Bot Filtering

You now have your two most important views setup. If you have any questions about setting up these views then please send me an email.

Don't Miss Our Web Analytics Articles

Check Out Our Web Analytics Services