Why a small site needs this
A medical practice website might get a few hundred visits a month. Staff open it to check hours, managers test the contact form, a marketer clicks around after each update. On a site that small, those visits are a visible share of the total, and a test form submission can show up as a lead that never was.
Inflated numbers cause bad decisions. A practice that believes it received eight form leads when five were tests may stop looking for the reason leads are low. Cleaning the data is a one-time task that makes every later report more trustworthy.
Step by step
- 1Find the office's public IP address. Search for what is my IP address from a computer on the office network. Note that the address can change.
- 2In Google Analytics, open Admin, then Data streams, choose the website stream, and select the option to configure tag settings.
- 3Choose Define internal traffic and create a rule with a name such as Office, matching that IP address.
- 4Go to Admin, then Data settings, then Data filters, and find the Internal Traffic filter. It starts in Testing mode.
- 5Check in the reports that the traffic is being labeled internal, then change the filter state to Active.
Google's own help pages describe the menus, which change from time to time, so use Google's instructions for filtering out internal traffic for the current names. The structure stays the same: define the traffic, then filter it.
The limits of an IP filter
An IP filter only catches visits from the office network. Staff working from home, on a phone or on a mobile connection will still count. If your office IP address changes, which is common on residential-grade internet, the rule stops working until you update it.
| Source of noise | Better fix |
|---|---|
| Office computers | IP-based internal traffic rule. |
| Staff at home | Ask staff to visit through a bookmark with a test parameter, or browse in a profile with the Google Analytics opt-out extension. |
| Test form submissions | Use a recognizable test name and email so they can be removed from counts. |
| Agency or developer visits | Add their IP, or ask them to use the opt-out. |
Keep test leads out of the lead count
The most harmful noise is the test submission. Adopt a rule that any test uses a name beginning with TEST, and exclude those from the monthly count. That rule works with the habits in a monthly lead count sheet, where each lead is a real person asking for care.
Check it worked
A week after switching the filter to Active, open the Realtime report from the office and confirm your own visit does not appear in the filtered data. Then compare the month's sessions with the month before. A small drop is normal and means the cleaning worked. Our walkthrough of setting up Google Analytics 4 for a medical practice shows where this fits among the other setup steps. With the filter active, the landing pages report gives a cleaner view of which pages new visitors enter on.
Do not use the data to identify patients, and do not collect any personal details in analytics. The filter is about removing your own staff from the counts, nothing else.
Frequently asked questions
Will the filter delete old data?
No. An active internal traffic filter excludes matching events from the moment it is on. It does not remove data that was already collected, so earlier months will still contain staff visits. Note the date you switched it on.
What if our office IP address changes?
The rule stops matching, and staff visits come back into the data. Ask your internet provider whether the address is fixed, and review the rule when the router or provider changes. A quarterly check is enough.
Should we filter test form submissions too?
Yes, by process. Use a name that starts with TEST and exclude those from the lead count. If the form sends an email to the practice, warn the team before testing so the message is not mistaken for a real request.
Does this affect Google Search Console numbers?
No. Search Console counts clicks from Google search results and is separate from Analytics. Staff visits that arrive from a search result may still appear there, but they are usually a tiny share.
Is this a privacy risk?
Filtering your own office address is not. The risk to avoid is collecting personal or health information in analytics. Keep names, emails and form text out of tags, as covered in our guidance on privacy-safe tracking.
Sources
- Google Analytics Help — Filter out internal traffic
- U.S. Department of Health and Human Services — HIPAA Privacy Rule guidance
- Google Search Central — Creating helpful, reliable, people-first content