How to Exclude IP Address in Google Analytics 4 (Step by Step)
By Toy Wen Da, Co-Founder · Updated · 7 min read · scored 92/100
Google Analytics 4 has no filter list like Universal Analytics did. To exclude an IP address you create an internal traffic rule under Data Streams, then turn on a Data Filter that removes or labels the matching traffic. Start in Admin, find your data stream, and define which IPs count as "internal."

Before you touch anything, it's worth checking how much of your current traffic is your own team. SearchBlueprint's site traffic feature shows where your visits come from in plain language, so you can spot inflated direct traffic or internal-looking sessions before you build filter rules on guesswork.
Why your own team shows up in GA4 reports

Every time someone on your team previews a landing page, tests a form or checks that a blog post looks right, GA4 counts a session. On a low-traffic site, a handful of internal visits can noticeably shift several numbers:
- Session counts make the site look busier than it is to real visitors.
- Engagement rate changes because staff browse differently than customers, often spending longer on a page without converting.
- Conversion totals pick up false conversions whenever someone tests your checkout or contact form.
- Direct traffic grows, since a chunk of what looks like unattributed visits is often your own team typing the URL in or using bookmarks.
Each of these metrics lives in a different standard report, and if you're not sure how to find or read the one that matters for your site, this guide on how to find, read and fix a GA4 report walks through it.
If you want to confirm the problem before you start filtering, this breakdown of direct traffic in Google Analytics explains what typically causes that spike and how to fix it.
How to exclude an IP address in Google Analytics 4, step by step

The process has two parts: you define which IPs are internal, and then you decide what GA4 does with that traffic. Data Streams live inside a GA4 property, so if you're still setting one up for this site, this guide on creating a new GA4 property covers that first step.
Step 1: Define your internal traffic rule
An internal traffic rule tells GA4 which IP addresses belong to your own team.
- Open the Admin panel (the gear icon, usually bottom-left), and under the Property column click Data Streams, then select the web data stream for your site.
- Scroll down to Configure tag settings, click Show more, and choose Define internal traffic.
- Click Create to add a new rule and give it a clear name such as "Office IPs" or "Remote Team."
- Leave the traffic_type parameter set to
internalunless you want to tag a specific group, such as an agency or a dev team, separately from your own staff. - Enter the IP address or range, choosing from equals, begins with, contains, ends with, CIDR notation or regular expression; CIDR is the practical choice when your office has a block of IPs from one provider.
- Click Create again to save the rule.
At this point GA4 knows which traffic is internal, but that traffic still shows up in your standard reports.
Step 2: Turn on the Data Filter
- Back in Admin, under Data collection and modification, click Data Filters and find the Internal Traffic filter you just created.
- Its default state is Testing, so review the matched traffic for a few days.
- Once you're confident the filter catches the right visitors and nobody else, switch its state to Active.
Testing vs. active vs. inactive: which filter state to use

| Filter state | What happens to matching traffic | Best for | Can you undo it? |
|---|---|---|---|
| Testing | Labeled as internal but still included in every report | Verifying a new rule before committing | Yes, no data is lost |
| Active | Permanently excluded from processed reports going forward | Teams confident their IP rules are accurate | No, excluded data can't be recovered |
| Inactive | Filter is switched off entirely; nothing is labeled or excluded | Pausing a rule without deleting it | Yes, just turn it back on |
Most marketers should start in Testing, compare reports with and without the flagged traffic, and move to Active only after the rule has held up for a week or two.
When GA4's own tools are enough and when they are not
The built-in internal traffic filters work well when your team uses a small, stable set of IP addresses, such as a fixed office connection, a static VPN exit IP or a short list of home IPs that rarely change. In that case the exclusion is a one-time job that needs little attention afterward.
They fall short in a few common situations:
- Remote teams on residential internet usually get dynamic IPs from their ISP, so an address you exclude today might belong to a stranger next month.
- For one-off QA on a single URL, such as checking a landing page during launch week, GA4's debug view or a browser extension is often faster than a permanent rule.
- Agencies managing several client properties have to repeat the setup, including the match pattern and filter state, on every GA4 property.
- Bot and crawler noise has nothing to do with your office IP and needs separate handling.
If your real problem is figuring out which referral sources and backlinks drive sessions in the first place, rather than removing internal noise, this guide on checking backlinks in Google Analytics covers what GA4 shows and what it misses.
Common mistakes when excluding IPs in GA4
- Leaving the filter in Testing and assuming it excludes traffic is the most frequent one, because Testing mode labels the traffic and still counts it.
- Excluding a dynamic home IP backfires when your ISP rotates the address, since the rule quietly stops matching and your numbers inflate again.
- Expecting past data to disappear doesn't work, because activating a filter only affects traffic collected after that point.
- A filter built around the office router misses remote or hybrid staff, who connect from home or from a VPN with a different exit IP.
- You need Editor access on the property to create or edit data filters, and a user with Viewer access won't see the option at all.
Many threads in Google's Analytics Help community describe the same complaint: someone sets up an IP filter and reports that it's "still tracking me," almost always because the filter was left in Testing or the IP had changed. Google's Analytics Help documentation (support.google.com/analytics) walks through the same Data Streams and Data Filters settings referenced above.
FAQs
Why am I still seeing my own traffic after excluding my IP in GA4?
The most common reason is that your Data Filter is still set to Testing, which labels internal traffic but keeps it in your reports. Switch it to Active, and double-check that your IP address hasn't changed since you created the rule.
Does excluding an IP address in GA4 remove past data?
No. Filters only affect traffic collected after you activate them, and any sessions already processed stay in your historical reports.
Can I exclude a dynamic home IP address in GA4?
You can, but it's unreliable if your ISP changes your address regularly. A static IP, a company VPN or a fixed office connection makes a far more durable rule.
How many IP addresses or ranges can I exclude in GA4?
A single internal traffic rule can match one IP, a pattern or a CIDR range, and a property supports up to 10 data filters in total. That is enough to separate internal staff from an agency and a dev team if you need to.
Does excluding my IP in GA4 also affect Google Ads or Search Console data?
No. The internal traffic filter only changes what shows up in your GA4 reports, because Google Ads and Search Console pull their own data.
Get this set up properly
Set your internal traffic rule to Testing first, watch it for a week to confirm it catches the right sessions, then switch it to Active once you trust it. After that you can stop guessing and report numbers your team actually trusts. If you want a second set of eyes on what your current traffic data is really telling you, talk to the team.
Sources
About the author
SearchBlueprint researched, wrote and scored this article with the content pipeline our customers run on their own sites. The score in the byline is what our content engine gave this page before it published. Nothing here is reviewed by hand, which is the point: it is the product's output, published where anyone can check it.