What is a View Filter in Google Analytics LinkedIn?
Unreliable data can quietly sabotage your marketing decisions, leading you down the wrong path. One of the single most effective ways to ensure your data is clean, accurate, and relevant in Google Analytics is by using a view filter. This guide will walk you through what view filters are, why they are essential, and how to set up the most important ones for your own account.
What Exactly is a Google Analytics View Filter?
Think of a view filter as a bouncer for your data. Before data from your website traffic even makes it into a specific reporting view, the filter checks it against a set of rules you've defined. Based on those rules, the filter will either let the data in, kick it out, or change it slightly before it's stored.
Specifically, a filter can:
- Exclude data: Block traffic from specific sources, like internal IP addresses from your office or spammy bot traffic.
- Include data: Only allow traffic that meets certain criteria, like visitors from a specific country or those who landed on a particular subdomain.
- Modify data: Change how the data appears in your reports, such as forcing all campaign tags to lowercase for cleaner reporting.
The most critical thing to understand is that view filters are destructive and permanent. Once a filter excludes data from a view, that data is gone forever from that specific view. It cannot be recovered. This is why following best practices, which we’ll cover next, is so vital.
Why View Filters are a Non-Negotiable for Clean Data
Setting up filters might seem like a small technical task, but its impact is enormous. Accurate data is the foundation of sound strategy, and filters are your primary tool for building that foundation.
1. Exclude Unwanted Traffic
The most common use for filters is cleaning out data that doesn’t represent your actual customers. Every time you, your team, or your developers visit your website, you're creating sessions, pageviews, and events. This internal traffic can significantly inflate your metrics, skew your conversion rates, and make it difficult to see how real users are behaving. A filter that excludes your office IP address instantly cleans this up.
2. Focus on Specific Data Segments
Your business might need to analyze different traffic segments separately. For example, if you have a blog at blog.yourwebsite.com and your main site at www.yourwebsite.com, you might want a reporting view just for the blog to analyze content performance without main-site metrics getting in the way. Filters allow you to create dedicated views for:
- Specific subdomains (e.g., app, shop, blog).
- Traffic from certain countries or regions.
- Visitors using only mobile devices.
- Traffic from paid ads only.
This creates focused, less cluttered reports that are easier for different teams to use and understand.
3. Keep Data Clean and Consistent
Inconsistent data entry is a common headache. This is especially true with UTM campaign tagging. One person on your team might use utm_campaign=summer-sale, while another uses utm_campaign=Summer-Sale. Google Analytics is case-sensitive, so it will treat those as two separate campaigns, splitting your data and complicating your analysis. A lowercase filter automatically converts all campaign tags (or other text fields) to a single format, consolidating your data and making your reports much more accurate.
The Golden Rule: Always Keep an Unfiltered View
Before you create a single filter, you need to follow this crucial best practice. Because filters permanently alter data, applying a filter incorrectly can corrupt your reporting view for good.
To prevent this, you should always have at least three views in your property:
- Raw Data View: This is your master backup. Never apply any filters to this view. It collects all the raw, unaltered data from your site. If you ever make a mistake in another view, you can always refer back to this one.
- Test View: When you want to try out a new filter, apply it to this view first. Let it run for a day or two and check your reports to confirm it's working as expected. This is your sandbox where you can safely test changes without risking your main reporting data.
- Main Reporting View: This is the primary view you and your team use for analysis. Once a filter has been proven to work correctly in the Test View, you can confidently apply it here.
If you only have one default "All Web Site Data" view, create two new ones right away and label them "Raw Data" and "Test View" before moving forward.
How to Set Up Your First View Filter (Step-by-Step)
You can find the filter settings in the Admin section of Google Analytics. Here’s the basic navigation:
- Navigate to your Google Analytics account.
- Click on Admin in the bottom-left corner (the gear icon).
- In the far right column, under View, make sure you have your desired view selected from the dropdown menu (e.g., your "Test View").
- Click on Filters.
- Click the red + ADD FILTER button.
From here, you’ll see the main filter configuration screen where you can choose between creating a new filter or applying an existing one.
Practical Examples: 4 Essential Filters You Can Set Up Today
Let's walk through creating four of the most useful and common view filters. We'll set these up in our "Test View" first.
Example 1: Exclude Your Internal IP Address
This is the first filter everyone should create. It stops your team's activity from skewing your data.
- Why: To get an accurate picture of real user traffic without counting your own visits.
- How to find your IP: Simply search Google for "what is my IP address."
Steps:
- In the Filter configuration screen, give your filter a name, like "Exclude Office IP."
- For Filter Type, keep Predefined selected.
- In the dropdowns that appear, select: Exclude > traffic from the IP addresses > that are equal to.
- Enter your IP address in the text box.
- Click Save.
Wait a day and check your real-time reports to confirm your own visits aren't showing up anymore.
Example 2: Isolate Traffic to a Specific Subdomain
This filter is perfect if you want a dedicated reporting view just for your blog, help center, or shop.
- Why: To analyze the performance of a specific section of your website in isolation.
- Example Hostname:
blog.mywebsite.com
Steps:
- Create a New View first and name it something clear, like "Blog View."
- Navigate to the Filters section for this new view and click + ADD FILTER.
- Name your filter "Include Blog Subdomain Only."
- Select a Predefined Filter Type.
- In the dropdowns, select: Include only > traffic to the hostname > that are equal to.
- Enter your subdomain in the Hostname box (e.g.,
blog.mywebsite.com). - Click Save.
Now, this view will only contain data for sessions that occurred on that specific hostname.
Example 3: Create a Mobile-Only or Desktop-Only View
Sometimes you need to deeply analyze user behavior on different device types. A dedicated view can make this much easier.
- Why: To compare user engagement, navigation paths, and conversion rates between mobile and desktop users without constantly applying segments.
Steps for a Mobile-Only View:
- In the Filter configuration screen, name your filter "Include Mobile Traffic Only."
- For Filter Type, select Custom.
- Make sure the Include radio button is selected.
- In the Filter Field dropdown, search for and select "Device Category."
- In the Filter Pattern text box, type Mobile. Remember that this field is case-sensitive.
- Click Save.
You can repeat this process to create a desktop-only view by simply changing the filter pattern to Desktop.
Example 4: Force Campaign Parameters to Lowercase
This is a data-hygiene lifesaver. It standardizes your UTM values so that all variations of campaign source, medium, and name are grouped together.
- Why: To fix inconsistent capitalization in UTM tags (e.g., "Facebook" vs. "facebook") and consolidate your campaign data.
Steps:
- Name your filter "Force Lowercase - Campaign Source."
- Choose a Custom Filter Type.
- Select the Lowercase radio button.
- From the Filter Field dropdown, select "Campaign Source."
- Click Save.
You can (and should) repeat this exact process for "Campaign Medium," "Campaign Name," and "Campaign Term" to ensure all your UTM parameters are standardized.
A Quick Note on View Filters and Google Analytics 4
It's important to know that this entire discussion of Views and View Filters applies to the older version of Google Analytics, Universal Analytics (UA). The newer Google Analytics 4 has a different data structure and does not use "Views."
So, how do you accomplish similar goals in GA4?
- To exclude internal traffic: GA4 has a built-in feature for this. Go to Admin > Data Streams > Configure Tag Settings > Define Internal Traffic. Here, you can define your IP addresses. To activate the exclusion, you then go to Admin > Data Settings > Data Filters and activate the "Internal Traffic" filter.
- To analyze specific segments: Instead of creating filtered views, GA4 encourages you to use "Comparisons" within reports for temporary analysis or to build "Audiences" for more permanent user segments you can apply to your reports. This is a more flexible approach but requires a shift in mindset from the rigid structure of UA views.
While GA4 works differently, understanding filters in UA is still a valuable skill for managing historical data and grasping the core principles of data hygiene.
Final Thoughts
Effectively using view filters is a fundamental skill for anyone serious about making data-driven decisions with Universal Analytics. By thoughtfully excluding, including, and modifying the data that flows into your reports, you ensure the insights you gather are based on a clean, accurate, and relevant foundation.
Of course, managing these setups in Google Analytics - then doing similar data cleaning in your ad platforms, CRM, and sales tools - can quickly become a full-time job. With Graphed, we automate the hard parts. We connect directly to your data sources, including Google Analytics, and use AI to build real-time marketing and sales dashboards in seconds. Instead of wrestling with filters and settings, you can simply ask in plain English for what you need - like, "Show me my top-performing campaigns by revenue after excluding traffic from our main office" - and get an instant, accurate answer without all the manual setup.
Related Articles
How to Enable Data Analysis in Excel
Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.