How To Filter Internal Traffic In Google Analytics 4?

Google Analytics 4 (GA4) provides powerful tools to ensure the accuracy of your data, and filtering traffic is one of the most essential steps. By filtering out unwanted traffic, such as internal users or spam, you can focus on analyzing data that reflects your real audience's behavior. In this guide, we’ll walk you through the process of creating filters in GA4 to help maintain clean and reliable data for better decision-making.

When working on a project, internal traffic — like your team visiting the company website — can skew your GA4 data and make it harder to analyze real user behavior. To ensure accurate reporting, you’ll need to filter out this internal traffic.

But where do you start, you ask? First things first:

  1. Identify Internal IP Addresses
    Determine the IP addresses of your team or office network that you want to exclude.
  2. Document the IPs
    Make a list of these IP addresses to ensure you include only the relevant ones in the filter.
  3. Apply the Filter in GA4
    Add these IP addresses to your GA4 account under the "Data Settings" section. This will exclude internal traffic from your reports and give you a clearer picture of your audience's activity.

By filtering out internal traffic, you can maintain cleaner, more reliable data for your analytics. Let’s ensure your reports reflect only the behavior of your real audience!

To determine the IP address you want to exclude, you can use the following site: https://ipinfo.io/ where you can check your IP address.
You can also ask an IT person, who will probably have this knowledge and can also give you a list of IP addresses that may be present in your office.

You already have a list of IP addresses to exclude. Saved. Let's move on to action – excluding that IP in GA4.

You go to Google Analytics 4 → Admin → Data Streams.

Select Data Stream:

Click Configure tag settings.

And now Show more.

Then Define internal traffic.

We create a rule.

Rules can be created – for example, if you have more locations, you cancreatea rule for, say, an office in theU.S.,and another rule for an office in Japan.

After creating the rules, we also need to go to Admin → Data filters.

To activate our filter to exclude internal traffic – that is, from IP addresses that we added in the rules.

All we need to do now is change the filter status from Testing to Active.

And save it.

From now on, our internal traffic by IP addresses set in rules will not show up in GA4 reports.

And there you have it, guys! With these steps, you'll be well on your way to cleaning up your GA4 reports and getting a clear view of your real audience.

Remember, GA4 is your best friend when it comes to understanding how people interact with your website. And if you ever find yourself scratching your head over this or any other GA4 shenanigans, rest assured that we at Digi2 are here to help.

Happy data hunting and see you next time! :)

PS Want to learn more about GA4? Join the newsletter below!

Table of contents