Ashley Bryan Internet Strategist > Read Ashley’s Advice > Insights > Questions > How to Exclude IP Addresses in Google Analytics 4 (GA4)
How to Exclude IP Addresses in Google Analytics 4 (GA4)

Excluding an IP address or a range of IP addresses from Google Analytics 4 (GA4) reports is crucial for obtaining accurate data, especially to prevent internal traffic from skewing your analytics.
Here’s a guide on how to do this:
Steps to Exclude IP Addresses in GA4:
- Access Your GA4 Property:
- Log into your Google Analytics account and select the appropriate GA4 property where you want to exclude IP addresses.
- Navigate to Data Streams:
- In the left sidebar, click on “Admin” (gear icon at the bottom left corner).
- Under the “Property” column, find and click on “Data Streams.”
- Select Your Data Stream:
- Choose the data stream (web) from which you want to exclude IP addresses.
- Go to Additional Settings:
- Inside the data stream details, click on “More tagging settings.”
- IP Address Exclusion:
- Click on “Define internal traffic.”
- Click on “Create.”
- Define Internal Traffic Rule:
- Enter a descriptive name for your rule, e.g., “Office IP exclusion.”
- Set the “Traffic type” to “Internal traffic.”
- Under “Condition,” select “IP address” from the dropdown menu, and choose the appropriate operator (equals, starts with, ends with, contains, or regex match).
- Enter the IP address or the range of IP addresses that you wish to exclude. For a range, you might use regular expressions (regex) if needed.
- Save the Rule:
- After setting up your conditions, click on “Create” to save your rule.
- Verify Your Setup:
- To ensure your settings are correct, monitor your reports over the next few days to see if the traffic from the specified IP addresses is excluded.
Author: Ashley Bryan
Ashley Bryan is an Internet Strategist and a Website Optimisation Consultant located on the Sunshine Coast in Australia with over 19 years' experience. He owns WebsiteStrategies which serves businesses in Australia and New Zealand.
Recent Posts
- Why Duplicate Duplicate Content on Your Website is a Problem (and How to Fix It) February 19, 2025
- Why do my google results have my web address and not business name? February 9, 2025
- Understanding Customer Intent: The Bedrock of Strategic SEO January 20, 2025