Exclude your own visits from GA4
Your own visits skew a small site's analytics more than anything. How to define internal traffic by IP in GA4, activate the filter, and handle a changing IP.
On a small site, the founder's own visits can be a large share of the traffic: every deploy check, every product page reload. Left in, they make pages look more popular than they are and make conversion rates meaningless.
Step 1: define internal traffic
- Admin, Data streams, choose the web stream.
- Configure tag settings, then show all, then Define internal traffic.
- Create a rule:
traffic_typevalueinternal, with your IP address or range.
Step 2: activate the filter
- Admin, Data collection and modification, Data filters.
- Open the Internal Traffic filter GA4 created.
- It starts as Testing, where matching data is only labelled. Change it to Active.
While in Testing, you can check the filter matches by comparing with the test data filter name dimension in reports. Active filters permanently exclude data from then on; there is no undo for data collected while active.
When your IP changes
Home broadband and phones change IP, which makes IP rules leak. Two more reliable options:
- Google's official Google Analytics opt-out browser add-on, in the browser you test with.
- An opt-out flag on your own site: a local setting that stops the tag loading. This site honours an opt-out and Global Privacy Control; see Global Privacy Control.
Also filter developer traffic
GA4 also has a Developer traffic filter for events sent in debug mode. Debug mode is covered in GA4 DebugView. And if nothing is showing at all, an over-eager filter is one of the causes in GA4 not collecting data.
GA4 + Search Console Setup creates the property, stream and tag for you; excluding your own visits is a five-minute step to add once it is collecting.
Questions
How do I exclude my IP in GA4?
Define internal traffic by IP address in the web stream's tag settings, then activate the Internal Traffic data filter in Admin. Filters start in Testing, where they do not remove data.
Are GA4 filters retroactive?
No. Filters apply to data collected after they are active. Visits before that stay in your reports.
What if my IP address changes?
IP filters struggle with home connections and mobile networks. Use the official Google Analytics opt-out browser add-on in the browser you test with, or have your site skip loading the tag when an opt-out flag is set.