How to Ignore Internal Traffic in Google Analytics for Data Accuracy

Last Updated on

Intro

Just launched your new website and excited about the incoming traffic? Hold on a bit! Chances are, your GA4 stats are being skewed by your own page visits. Besides inflating page view numbers, if you're testing your website in different browsers or incognito windows, it might register these as unique users. To get a more realistic picture, you need to exclude your internal traffic. In this article, I'll explain how to do just that to ensure your data remains accurate for insightful analysis.

Step 1: Locate Your GA Property

Screenshot of finding Data Streams and Data Filters in GA4 property
  1. Open Google Analytics
  2. Click "Admin" (a cog icon in the bottom left corner)
  3. Make sure you're on the "Admin" tab, not the "User" tab
  4. Select your account in the "Account" dropdown
  5. Select your property in the "Property" dropdown

Step 2: Define Internal Traffic

Define the IP address range that includes your home or office.

Screenshot of defining Internal Traffic rule in GA4
  1. Click on the "Data Streams" option in your property

  2. Ensure you're on the "Data streams" page; the URL should resemble: "https://analytics.google.com/analytics/web/#/a123456789p123456789/admin/streams/table/"

  3. Click on the "Web" tab

  4. Select your website stream

  5. On the "Web stream details" page, in the "Google tag" section, select "Configure tag settings"

  6. On the "Google tag" page, "Configuration" tab, the "Settings" section, click "Show more" at the bottom to see all settings

  7. Click "Define internal traffic"

  8. On the "Define internal traffic" page, in the "Internal traffic rules" table, click "Create" and follow the prompts

    Note: Keep the "traffic_type value" as "internal", or write down what you input as we'll need this later.

    Tip: You can find your current IP address on WhatIsMyIPAddress.com

Step 3: (Optional) Test Your Settings

It's important to test your settings to avoid inadvertently ignoring traffic from actual users.

By default, Google creates an "Internal Traffic" filter for you with "Filter state" set to "Testing". This setup collects data into a "Test data filter name" dimension, allowing you to preview what the stats would resemble with the filter activated. If you wish to ensure the filter's existence, refer to Step 4.

Remember, data filters can't be applied retrospectively. So, it's prudent to activate the filter sooner to prevent internal traffic from skewing your stats.

Here's how you can apply the filter to your data:

Screenshot of testing Data Filter in Free-Form
  1. Open Google Analytics
  2. Click "Explore" on the left
  3. On the "Explorations" page select "Free-form"
  4. To apply a filter, in the "Variables" column, "Dimensions" section, click the plus icon to add a new one
  5. In the "General" section, select "Test data filter name" and click "Import" on the top right
  6. Now to apply a filter, in the "Settings" column, "Filters" section, click on "+ Drop or select dimension or metric"
  7. Select "Test data filter name" from the dropdown
  8. In "Conditions", select match type "does not exactly match" and then in "Enter expression" select "Internal Traffic"
  9. Click "Apply"

Step 4: Activate Data Filter

When you're happy with your settings, activate the filter.

Screenshot of activating Data Filter in Google Analytics 4
  1. Go to your property (see Step 1 on how to get there)
  2. Click on the "Data Filters" option in your property
  3. Expand the "Data Settings" option
  4. Select "Data Filters"
  5. You should have "Internal Traffic" created by default, open it. If it isn't there - click "Create filter" → "Internal traffic", set "Data filter name" to "Internal Traffic"
  6. "Filter state" by default is set to "Testing", to activate the filter - change it to "Active"

Summary

In this article, we walked through the steps of excluding internal traffic from your Google Analytics to ensure more accurate data analysis. By following this guide, you'll avoid the common pitfall of misinterpreting your site's performance due to skewed data. For more info, check out the official guide: [GA4] Filter out internal traffic


Please, share (Tweet) this article if you found it helpful or entertaining!