How to exclude internal traffic in GA4
In GA4 you exclude internal traffic by defining your office IP addresses as internal traffic in the web data stream, then turning on the Internal Traffic data filter. The filter only affects data collected after you activate it, and it does not catch staff who work from home or on mobile data.
If you run a website, you and your team probably visit it more than anyone else. You check the homepage after an edit, test the checkout, and click through forms. If Google Analytics 4 counts those visits, your numbers are wrong, and they are wrong in a way that is hard to spot. This page explains how to exclude internal traffic in GA4, how to check it works, and why the setup often leaks.
What the problem looks like
Most owners notice it indirectly. Common signs:
- Visits from your own city or region are suspiciously high.
- Your most viewed pages are the ones you edit or test most often.
- A small site shows a steady stream of sessions even in quiet weeks, and many come from your own team.
- Conversion rates look low because your test visits never buy anything, or look high because you submitted the contact form ten times.
- Engagement time and bounce figures change whenever someone redesigns a page and tests it.
On a site with a few hundred visitors a month, a handful of people reloading pages all day can distort the whole picture.
Why it matters
Analytics is how you decide what to fix, what to advertise and what to drop. Inflated traffic makes a weak page look popular. Test purchases and form submissions can show up as real conversions, which affects any ad campaign that optimises on them. Agencies and freelancers who report on your site may also be reporting numbers that include their own work.
There is also a trust angle. If you show figures to a partner, an investor or a client, you want them to be real visitors.
How to check if your site has the problem
You can check for free in a few minutes:
- In GA4, go to
Admin, thenData collection and modification, thenData filters. Look for a filter namedInternal Traffic. If it is missing, or its state isInactive, nothing is being excluded. If the state isTesting, the data is only being flagged, not removed. - Open your site in a normal browser window on your office network, then open the
Realtimereport in GA4. If you see yourself, you are being counted. - Look at the
Adminarea for the web data stream, openConfigure tag settings, thenShow all, thenDefine internal traffic. If the list is empty, no rules exist. - In a report, look at your own city or your internet provider's region and see how large it is compared to your real audience.
A recurring analytics check, such as week 38 of SiteMonday, looks at your analytics setup and reports whether your own traffic is being filtered out.
How to fix it in GA4
The standard method has two parts: define what counts as internal, then filter it out. Menu names can shift slightly over time, but the path below is where these settings usually live.
Part 1: Define internal traffic
- Find your public IP address. Search for "what is my IP" from the office network.
- In GA4, go to
Admin, thenData collection and modification, thenData streams, and open your web stream. - Choose
Configure tag settings, thenShow all, thenDefine internal traffic. - Click
Create. Give the rule a name, keep thetraffic_typevalue asinternal(or choose your own, but it must match the filter), and pick a match type such asIP address equals. - Enter the IP address and save. Add one rule per location, or use a range (CIDR) if your provider gave you one.
If your office has both an IPv4 and an IPv6 address, add both. Many people only enter the first.
Part 2: Activate the filter
- Go to
Admin, thenData collection and modification, thenData filters. - Open the
Internal Trafficfilter. GA4 usually creates it for you. - Check that its value matches the
traffic_typevalue from your rule. - Set the state to
Testingfirst, confirm it works (see below), then change it toActive.
Once a filter is Active, excluded events are dropped permanently. Nothing is retroactive: past visits stay in your reports.
Platform notes
The filter itself always lives in GA4. What differs is how the tag is installed.
- Google tag installed directly: the rule above is enough. See the GA4 guide.
- Google Tag Manager: the Google tag sends
traffic_typeautomatically once the rule exists in GA4. If you use a custom setup, you may need to add atraffic_typeparameter yourself. See the Tag Manager guide. - WordPress: many analytics plugins have an option to skip logged in administrators or certain roles. That is a handy extra, but it only works if the plugin supports it. See the WordPress guide.
- Shopify, Wix, Squarespace, Webflow: these use their own integration screens to connect GA4. The IP rule and filter are still set in GA4, and the platform guides in this section explain where the connection settings usually sit.
When IP filtering is not enough
IP rules work well for a fixed office address. They fail in other cases:
| Situation | What happens |
|---|---|
| Home or remote workers | Their IP changes or is not on your list, so they are counted |
| Mobile data | The IP is shared and changes, so it cannot be listed |
| Visitors from your agency | Their IP is not in your rules |
For these cases you have options. Google offers an official browser add-on, the Google Analytics Opt-out Browser Add-on, that stops a browser from sending data. For developers, GA4 has a separate Developer traffic filter for debug mode visits. A more advanced approach is setting traffic_type in Tag Manager based on a cookie that you set only on team browsers.
How to confirm the fix worked
- Keep the filter in
Testingstate. Visit your site from the listed IP. - Check your reports. In GA4 you can use a comparison or the
Test data filter namedimension to see which events were flagged as internal. - If your own visits are flagged, set the filter to
Active. - After activation, visit again and watch
Realtime. You should no longer appear. - Check standard reports the next day. Some data can take 24 to 48 hours to settle.
If you still show up, the usual causes are a wrong IP, a missing IPv6 address, a mismatch between the rule's traffic_type value and the filter value, or a second tag on the site sending data to a different GA4 property.
How to stop it coming back
- Review your internal IP list whenever you change internet provider, move office or add a location. A provider change quietly breaks the rule.
- Write down who is responsible for the filter, so it does not vanish when a freelancer leaves.
- Whenever you add a new tag or move to a new GA4 property, repeat the setup. Filters do not carry over between properties.
- Keep a second view of the data, such as a test property, if you need to analyse your own behaviour.
- Recheck every few months with the steps above. A short analytics review, whether done by hand or by a recurring check, catches this early.
Fixing the filter is quick, but the clean data only starts from the day it is active, so it is worth doing sooner rather than later.
Step by step for your platform
- Own traffic not excluded from GA4 on Google Analytics 4
- Own traffic not excluded from GA4 on Google Tag Manager
- Own traffic not excluded from GA4 on WordPress
- Own traffic not excluded from GA4 on Shopify
- Own traffic not excluded from GA4 on Wix
- Own traffic not excluded from GA4 on Squarespace
- Own traffic not excluded from GA4 on Webflow
Questions
Does excluding internal traffic in GA4 remove past data?
No. The filter only applies to data collected after it is set to Active. Past visits from your own team stay in your reports.
Why am I still seeing my own visits after setting up the filter?
Check that the filter is Active and not Testing, that the `traffic_type` values match, and that you listed both IPv4 and IPv6 addresses. Also confirm your IP has not changed.
How do I exclude people who work from home?
IP rules do not work well for changing home IPs. Use the Google Analytics Opt-out Browser Add-on, or set up a Tag Manager rule based on a cookie placed on team browsers.
Should I start with Testing or Active?
Start with Testing so you can confirm that your own visits are flagged correctly. Switch to Active once it works, because active filtering permanently drops the matching data.
Is my office IP address a privacy problem if I enter it in GA4?
The rule only holds your own office address to recognise your team. It is not data about your visitors, but keep your privacy policy accurate about what analytics you use.
Do I need to repeat this for every GA4 property?
Yes. Internal traffic rules and data filters belong to each property, so a new property starts without them.