iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Do you want to block or exclude internal traffic in Google Analytics 4 (GA4)? This is a smart move, and this guide will teach you how to do that.
Step 1: Get your Public IP Address
The first step to excluding internal traffic in Google Analytics 4 is to determine your public IP address. Follow the steps below to find your IP address.
- Click this link to open a Google search that displays your IP address – what is my ip – Google Search
- Then, note your public IP address. Google is likely to display your IPv4 address. However, you may also have a public IPv6 address.

- Finally, to get both your IPv6 and IPv4 address, open What Is My IP Address – See Your Public Address – IPv4 & IPv6. The website should display your IPv4 and IPv6.
As you can see from the screenshot below, the site displays my IPv6 address but could not detect my IPv4 address. Fortunatly, I already have my IPv4 from the Google search result.
Copy both IP addresses as you would need them in the next section.

Step 2: Define your Internal IP Address in Google Analytics 4 (GA4) Data Stream Setting
After you determine your public IP address, the next step to excluding internal traffic in Google Analytics 4 is to define internal traffic in the GA4 Data stream settings.
Follow the steps below to complete this step…
- Sign in to your Google Analytics. Then, on the bottom left of Analytics, click Admin.

- When your Google Analytics Admin settings open, select the account that contains this GA4 property in the Account drop-down (1).
- Then, in the Property drop-down, select the GA4 property (2). Finally, on Google Analytics 4, click Data Streams.

- On the Data Streams page, click on the data stream for the GA4 property you want to edit.

- Then, scroll down to the Google tag section and click “Configure tag settings”.

- By default, the Configure tag settings page will open on the “Configuration” (1) tab. Scroll down and on the Settings section, click “Show all”.

- Then, scroll down and click Define internal traffic. When the “Internal traffic rules” page opens, click the Create button – see the second screenshot below.


- On the Create internal traffic rule page, give the rule a recognizable “Rule name” (1). Then, on the “traffic_type value” rule, enter a name and note it; you’ll require it for the filter you will create in the next section to work.
- Proceed to the IP addresses section. Then, on the “Match type” drop-down, select IP address equals (3) – then, enter your public IPv4 in the Value (5) field.
- When you finish, to create the rule that defines your internal IP address in Google Analytics 4, click Create (6). Google Analytics will return to the Define internal traffic page.

- Finally, click the close button on the top left of the Define internal traffic page.

Step 3: Create Filters to Exclude Internal Traffic in Google Analytics 4 (GA4) with the Internal IP Rule
Now that you have identified your internal traffic by creating an internal traffic rule in GA4, it is time to exclude the internal traffic in Google Analytics 4.
Popular on Amazon
- 【Five Gigabit Ports】1 Gigabit WAN Port plus 2 Gigabit WAN/LAN Ports plus 2 Gigabit LAN Port. Up to 3 WAN ports optimize bandwidth usage through one device.
- 【One USB WAN Port】Mobile broadband via 4G/3G modem is supported for WAN backup by connecting to the USB port. For complete list of compatible 4G/3G modems, please visit TP-Link website.
- 【Abundant Security Features】Advanced firewall policies, DoS defense, IP/MAC/URL filtering, speed test and more security functions protect your network and data.
- 【Highly Secure VPN】Supports up to 20× LAN-to-LAN IPsec, 16× OpenVPN, 16× L2TP, and 16× PPTP VPN connections.
- Security - SPI Firewall, VPN Pass through, FTP/H.323/PPTP/SIP/IPsec ALG, DoS Defence, Ping of Death and Local Management. Standards and Protocols IEEE 802.3, 802.3u, 802.3ab, IEEE 802.3x, IEEE 802.1q
To complete this step, you need to create a filter in your GA4 Data Settings. Follow the steps below to complete this task.
- While still signed in to your Google Analytics, click Admin on the bottom left (1). Then, ensure that you have selected the right Property (2).
- On the property setting, click Data Settings (3). When you click Data Settings, Google Analytics will display three more options beneath Data Settings.

- Then, beneath Data Settings, click Data Filters.

- When the Data filters page opens, click “Create Filter.” Then, click Internal traffic – see the second screenshot below.


- Finally, complete the Create data filter page as shown below to create a GA4 filter that excludes your internal traffic.
The only setting you can change is the Data Filter Name. You MUST also make sure that you set the traffic_type to the same value you set traffic_type to in the last section.
In this example, my traffic_type is internal_traffic_1.
When you finish, click Create on the top right of the page.
Google warns that filtering is a destructive operation. So, Google strongly recommends that you test your filters before activating them.
Make sure you select Testing in the Filter state section below. Then, proceed to the next section to learn how to test that your filter is working before activating it.

Google Analytics will create the data filter and display additional steps. In the last section, you selected “Testing” in the Filter state section of the configuration.
Google recommends that you test before you activate the filter. You test first before activating it to be sure that your filter works before you activate it.
In the final section of this guide, you will find the steps to test your rule and then activate it.
Also popular on Amazon


Step 4: Test and Activate your Internal Traffic GA4 Filter Rule
The last step to exclude internal traffic uin Google Analytics 4 (GA4) is to test that the traffic rule(s) are working as expected. Then, if you’re happy that the rules are working, you activate each data filter rule you created in the last section.
To test the internal traffic rules, follow the steps below:
- Visit your website with the device that has the public IP you want to exclude in GA4.
- Then, return to Google Analytics. On the left pane, click Reports.

- When the Reports dashboard page opens, click Real-time. Then, click Add comparison – see the second screenshot below.


- Next, on the far right, click the Select dimension drop-down. Then, scroll down to the General section and click Test data filter name – see the second screenshot below.


- Finally, click the Select dimension values drop-down, then, click the name of the data filter rule you created in the last section. Finally, click OK and click Apply.

Once you create the comparison filter, Google Analytics will display the test data filter (usually in orange). Then, Google Analytics will display the traffic from your device in that orange section.
Free tools Windows power users keep installed
One-click scans. No signup required.
After confirming that your Google Analytics 4 (GA4) internal traffic exclusion works, proceed to step 6 to activate the filtering rule.
Also popular on Amazon
- Secure Remote Work for Two : Includes two travel routers, so a colleague or family member can also connect remotely.
- Work from Anywhere Securely : Connect to your home network with a VPN travel router designed for remote professionals.
- An active KeepYourHomeIP : subscription is required for the VPN setup to work. One month of free subscription is included with the VPN package.
- Seamless Remote Work : Connect multiple devices simultaneously, including laptops, tablets, and phones.
- Bypass Geo-Restrictions : Both users can access home services, streaming, and work apps securely from anywhere.

- On the bottom left of Google Analytics, click the Admin settings icon.

- Then, in the Property column, click Data Settings. Next, from the options Analytics displays, click Data Filters.

- Next, click on the Data filter you want to activate.

- When the Data filter opens, select Active and click Save (top right). Finally, on the confirmation pop-up window, click Activate filter.


Google Analytics will return to the list of Data filters. The current state of the data filter you just activated will display “Active.”
Repeat steps 8 and 9 for all data filters you want to activate. From now on, Google Analytics 4 (GA4) will exclude any internal traffic that meets your defined criteria.

Frequently Asked Questions
Google Analytics 4 (GA4) is Google’s latest Analytics version with enhanced features. Here are some of the differences between GA4 and the current Universal Analytics:
i) GA4 uses events instead of session-based data
ii) The new GA4 includes privacy controls such as cookieless measurement and behavioral and conversion modeling
iii) GA4 supports predictive capabilities and offer guidance without complex models
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallFollow the steps below to block an IP address on Google Analytics 4
i) Define the IP as an Internal IP address
ii) Create a data filter that excludes the IP
iii) Test the IP traffic filter
iv) If it works, activate the data filter
Also popular on Amazon
- Multi-WAN Business Continuity: Connect up to 5 ISPs with automatic failover and load balancing — if one connection drops, traffic instantly reroutes to keep your business, remote office, or home lab online
- OpenWRT-Ready Enterprise Control: Full OpenWRT support unlocks VLAN segmentation, advanced firewall rules, custom QoS policies, and community-developed packages for professional-grade network management
- Complete VPN Gateway Suite: WireGuard, OpenVPN, IPsec, PPTP, and L2TP server and client built in; create site-to-site tunnels, host remote access, or route specific VLANs through encrypted VPN connections
- Professional Security Stack: SPI firewall, DoS attack prevention, IP/MAC binding, domain filtering, and DMZ hosting protect your network perimeter while keeping critical services accessible
- Flexible Deployment & Monitoring: Web GUI or Cudy App cloud management with TR-069 support; built-in diagnostic tools (Ping, Traceroute, NSLookup, system logs) for rapid troubleshooting anytime
If you use the older Google Analytics (not Ga4), follow the steps below to exclude an internal IP address.
i) On the view column of the Google Analytics property, click Filters
ii) When the Filters page opens, click the ADD FILTER button
iii) Give the filter a name, then select Predefined. Then, on the “Select filter type” drop-down, select Exclude.
On the “Select source or destination” drop-list, select traffic from IP address. Finally, on the “Select expression” drop-down, select that are equal to – then, on the IP address field, enter the IP address you want to exclude and click Save.
If Google Analytics excludes an IP address, it is likely that you defined a filter that excludes that IP address from Google Analytics.
The simple answer is Yes, you should use Google Analytics 4 (GA4). However, before you switch to GA4, check that any app or service that requires Google Analytics supports GA4.
In any case, you can (and should) set up both versions of GA side-by-side. Then, switch to GA4 later.
It is important to mention that Google will decommission Universal Analytics from July 2023. To read more about what happens when Google decommissions UA, visit Universal Analytics will be going away – Analytics Help (google.com)
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Conclusion
If you run a website and use Google Analytics 4 (GA4) to measure your site performance, it is smart to exclude your internal traffic. This is because internal traffic skews your Analytics data.
Also popular on Amazon
- 【Flexible Port Configuration】1 Gigabit SFP WAN Port + 1 Gigabit WAN Port + 2 Gigabit WAN/LAN Ports plus1 Gigabit LAN Port. Up to four WAN ports optimize bandwidth usage through one device.
- 【Increased Network Capacity】Maximum number of associated client devices – 150,000. Maximum number of clients – Up to 700.
- 【Integrated into Omada SDN】Omada’s Software Defined Networking (SDN) platform integrates network devices including gateways, access points & switches with multiple control options offered – Omada Hardware controller, Omada Software Controller or Omada cloud-based controller(Contact TP-Link for Cloud-Based Controller Plan Details). Standalone mode also applies.
- 【Cloud Access】Remote Cloud access and Omada app brings centralized cloud management of the whole network from different sites—all controlled from a single interface anywhere, anytime.
- 【SDN Compatibility】For SDN usage, make sure your devices/controllers are either equipped with or can be upgraded to SDN version. SDN controllers work only with SDN Gateways, Access Points & Switches. Non-SDN controllers work only with non-SDN APs. For devices that are compatible with SDN firmware, please visit TP-Link website.
Furthermore, it is likely that users within your business will spend more time on your website and visit multiple pages. So, for internal traffic, stats like bounce rate and average session duration will be unreasonably larger than usual.
On the other hand, internal users may spend less time on the website. This will also affect the actual site performance data.
All in all, excluding internal traffic or traffic from logged-in users ensures that your analytics data is accurate and reflects real users’ actual behavior.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsI hope you were able to use the steps in this guide to exclude internal traffic in Google Analytics 4 (GA4)! If yes, click on “Yes” beside the “Was this page helpful” question below.
You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.
Finally, visit our WordPress & Websites How-To page for more articles about WordPress and websites.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

