What Are the Options for Filtering Data in Google Analytics?

When you’re analyzing your website traffic in Google Analytics, one thing becomes very clear: not all data is useful.
Sometimes, you just want to remove noise like bot traffic, internal visits, or test data. Other times, you want to narrow down your reports to focus only on a certain country, device, campaign, or user segment.
That’s where filters come into play.
In this article, I’ll explain what filtering means in Google Analytics, the different ways you can filter data (in both Universal Analytics and GA4), and how to use them smartly without messing up your reports.
What Does Filtering Mean in Google Analytics?
Filtering simply means modifying the data you see (or collect) in Google Analytics, based on certain conditions.
For example:
Want to exclude internal traffic from your team? Use a filter.
Want to see only mobile traffic? Apply a filter.
Want to analyze data from just one country? Yep a filter again.
Filters help you clean up your data, segment it, or focus only on what really matters to your business.
Why Filtering Is So Important?
Let me quickly share a personal experience.
One of my first SEO clients had a blog where traffic seemed pretty good around 3,000 sessions per month. But when I dug into the data, I found that a big chunk of that was from their own team visiting the site multiple times a day.
Worse, they were testing form submissions and page refreshes inflating key metrics like conversions and bounce rate.
Once we applied proper filters to exclude internal IPs and test environments, their real traffic was closer to 1,800/month, not 3,000. This changed how we approached our entire strategy.
So yes filters can make or break your analytics accuracy.
Types of Filtering in Google Analytics
Now, let’s get into the actual options. Depending on whether you’re using Universal Analytics (UA) or Google Analytics 4 (GA4), the options are slightly different.
Let’s go over both.
1. Filtering Options in Universal Analytics (UA)
Even though Google is pushing GA4 now, some people still use Universal Analytics for reference. So let’s quickly look at the filtering options in UA.
a. View Filters
These are permanent filters you can apply to a specific view in Universal Analytics.
You can:
Exclude or include traffic from a specific IP address
Include only traffic from a specific hostname (e.g., your live website)
Lowercase/uppercase transformation (for standardizing campaign tags)
Search and replace certain values (e.g., cleaning up messy URLs)
Examples:
Exclude your company’s IP:
Exclude > traffic from the IP addresses > that are equal to > 192.168.1.1
Include only traffic from India:
Include > traffic from country > India
Tip: Always keep one raw (unfiltered) view before applying filters, in case you mess something up.
2. Filtering Options in Google Analytics 4 (GA4)
In GA4, things work a bit differently. Instead of “views,” GA4 uses a single property structure, but there are still several ways to filter data both during data collection and while viewing reports.
Let’s break down the main filtering options in GA4.
a. Data Filters (Admin Level)
GA4 allows you to filter data at the property level especially useful for excluding internal traffic and developer/test traffic.
You’ll find this in:
Admin > Data Settings > Data Filters
There are two common types of data filters:
Internal Traffic Filter
This helps you exclude hits coming from your office network or employees.
How to set it up:
Go to Admin > Data Streams.
Choose your web stream.
Under “More Tagging Settings,” select “Define Internal Traffic.”
Add IP address ranges.
Then go to Admin > Data Settings > Data Filters and set the filter to Active.
Developer Traffic Filter
This excludes data coming from debug mode useful when testing your tags using Google Tag Manager or GA Debugger extension.
Just set it to Active, and GA4 will automatically exclude traffic from browsers where debug mode is enabled.
b. Comparisons in Reports
GA4 doesn’t have “views” like UA, but you can still filter data using Comparisons (previously called Segments).
You can find this in the top of most standard reports:
Example use cases:
Compare desktop vs mobile users
Filter traffic from a specific city or country
Compare organic vs paid traffic
View data from returning users only
Why this is useful: It’s a great way to quickly break down your data without affecting the full report.
c. Explorations (Advanced Segmentation)
GA4’s Explorations tool is where the real power lies. You can build custom reports with advanced filtering.
When you create a new Exploration (like a funnel, path, or free-form report), you can apply filters like:
Device category
Session source/medium
Landing page
Country or city
User engagement time
Conversion status
Example:
Let’s say you want to analyze users from Mumbai who visited via Instagram and viewed your pricing page you can do that with filters in Explorations.
You can get really specific and apply multiple conditions for deep analysis.
d. Audience Definitions
GA4 also lets you create custom audiences based on user behavior, and these can be used for filtering and remarketing.
You’ll find this under:
Admin > Audiences > Create a New Audience
Example filters:
Users who visited the checkout page but didn’t purchase
Users who came from Facebook Ads and spent more than 60 seconds
Users from Canada who have more than 2 sessions
Once defined, you can use these audiences for:
Ad targeting (in Google Ads)
Analysis inside GA4
Triggering events or conversions
Things to Keep in Mind
Filters in GA4 Are Different from UA
GA4 is more flexible but also a bit more complex. You no longer have views, so be extra careful when applying permanent data filters.
Data Filters Are Not Retroactive
If you exclude internal traffic today, it won’t remove past data filters only apply moving forward.
Explorations Can Be frustrating
Start small. Don’t try to apply 10 conditions at once. Focus on 1–2 meaningful filters to keep things manageable.
My Thoughts
Google Analytics offers powerful filtering options to help you clean, refine, and deeply understand your data.
Whether you want to:
Exclude noise (internal traffic)
Analyze specific segments (mobile users, campaigns)
Or dive deep with advanced reports (GA4 Explorations)
There’s a filter for that.
Just remember: the more accurate your data, the better your decisions will be.
So take the time to explore your filtering options and set them up right from the start.
Subscribe to my newsletter
Read articles from Pratham Mahajan directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
