How do I stop GA4 counting my own visits?
Define your office IP address as internal traffic in your web data stream's tag settings, then create an Internal Traffic data filter under Admin, Data filters. Keep the filter in Testing, check it in Explore, then set it to Active. Google warns active filters permanently remove matching data. The office-IP rule works best on a fixed address.
The short version
- Find your office’s public IP address. Search “what is my IP” on Google from the office network.
- Admin, Data streams, your stream, Configure tag settings, then Define internal traffic. Add the IP.
- Admin, Data filters, Create Filter, Internal Traffic. Leave it in Testing.
- Check it in Explore, then switch it to Active. It can take 24 to 36 hours.
- Active filters delete matching data permanently. The simple IP rule only catches visits from addresses you list.
Is it worth doing?
On a busy site, a few staff visits make no difference. On a small business site, they can. Staff open the home page every morning, check the contact form after a change and click around after an update. That inflates visits and, worse, can count test form submissions as leads.
It’s worth doing if your office has a fixed IP address and staff visit the site often. If your internet provider changes your IP address regularly, or most staff work from phones and home, the simple IP rule won’t catch much. Google also lets a developer add the traffic_type parameter to events by hand, which can label staff visits another way, but that takes custom tagging.
Step 1: define internal traffic
These steps follow Google’s internal traffic page. You need the Editor role.
- From the office network, find your public IP address. Searching “what is my IP” shows it.
- In Analytics, go to Admin. Under Data collection and modification, select Data streams, then your web stream.
- Select Configure tag settings. Then select Show more, then Define internal traffic, then Create.
- Name the rule, such as “Office.”
- Leave traffic_type value as
internal. - Under IP address, choose a match type, such as IP address equals, and enter the address. Add more conditions for other locations.
- Select Create.
Google accepts both older (IPv4) and newer (IPv6) addresses, and ranges in CIDR notation if your provider gave you a block of addresses.
Step 2: create the data filter
- In Admin, under Data collection and modification, select Data filters.
- Select Create Filter, then Internal Traffic.
- Name it, such as “Exclude office.”
- Set the operation to Exclude, with the parameter value
internal. - Set the filter state to Testing.
- Select Create.
Google says a filter can take 24 to 36 hours to take effect.
Step 3: test, then switch it on
In Testing, nothing is removed. Matching visits are labeled instead.
- Visit your site from the office.
- The next day, open Explore and start a blank exploration. See using Explorations.
- Add the dimension Test data filter name and the metric Event count.
- You should see your filter’s name next to your office’s events.
- Once it looks right, go back to Data filters, open the filter and change the state to Active.
Google’s page warns: “Once you apply a data filter, the effect on the data is permanent.” Excluded data never comes back, so testing first matters.
Why does this matter?
Your own visits make the site look busier than it is and can hide real trends. Test submissions can make it look as if a page brings leads when it doesn’t. Clean numbers make every other report, especially key events, more trustworthy.
What are the common mistakes?
- Going straight to Active. A wrong IP address or match type can wipe real visitors. Test first.
- Using a home or changing IP address. Many home and small-office connections change addresses from time to time. Check the address every few months, and update the rule if it’s changed.
- Filtering your web company’s office while they test your site, then wondering why their checks don’t show in Realtime. That’s expected.
- Expecting it to catch phones. A phone on mobile data has a different IP address. Visits from it still count.
- Expecting old data to change. The filter affects data from when it’s active onward.
What if the filter isn’t working?
- Nothing labeled in Testing: check the IP address matches what “what is my IP” shows right now, from the office network.
- Too much labeled: a range or a “contains” match may be too broad. Use IP address equals for a single address.
- Your IP changes: ask your internet provider whether a fixed (static) IP address is available. If not, accept some staff visits and compare months instead of days.
- Still nothing labeled after a day: Google allows 24 to 36 hours. Check the filter’s state is Testing, not Inactive, and recheck the IP. Only switch to Active once Testing shows the right visits labeled, because active filtering can’t be undone.
Google allows up to 10 data filters per property, so there’s room for several offices.
How much does it cost, and how long does it take?
Filtering is free. Setup takes 10 to 15 minutes, plus a day of testing before you switch it on.
How does E-3 handle this?
Analytics setup and lead tracking are part of our SEO and AI search service. If you’d like help adding this filter, the safe order is the one above: confirm the office IP, run the filter in Testing, and only then switch it on.
Related questions
Next step
- Next: When should I use Explorations in GA4?The next guide in Google Analytics 4.
- Free website checkPublic checks on your own site, then an action plan of what to fix first.
Still stuck? Ask E-3 for an answer from our help guides.
Rather we handled google analytics 4 for you?
It’s part of what we do every week for small businesses, as part of seo and ai search. Start with a free check of your site and profile, or call and ask.