Indexof

Lite v2.0Webmaster › How to Add Two Filters to a Single Dimension in Google Analytics 4 › Last update: About

How to Add Two Filters to a Single Dimension in Google Analytics 4

How to Add Two Filters to a Single Dimension in a Google Analytics Report

In the Google Analytics 4 (GA4) web application, filtering data is essential for accurate analysis. However, webmasters often find it confusing when they need to apply two or more filters to the same dimension—for example, filtering a "Page path" report to include only URLs that contain "blog" but exclude those that contain "archive."

Because GA4 handles filter logic differently depending on whether you are in a Standard Report or an Exploration, here is the step-by-step guide to setting this up correctly for SEO and traffic analysis.

1. Applying Multiple Filters in "Standard Reports"

Standard reports allow you to add "Add Filter" conditions at the top of the interface. When you apply two filters to the same dimension, GA4 typically treats these with AND logic.

  1. Open your report (e.g., "Pages and screens").
  2. Click Add filter + at the top.
  3. Select your dimension (e.g., Page path and screen class).
  4. Select your first Match Type (e.g., contains) and enter your value.
  5. Click Add new condition.
  6. Select the same dimension again.
  7. Select your second Match Type (e.g., does not contain) and enter your second value.
  8. Click Apply.

Note: If you use "exactly matches" for two different values on the same dimension, the report will likely return zero data because a single row cannot be two things at once.

2. Using "OR" Logic via Regular Expressions (Regex)

If your goal is to show data for "Page A" OR "Page B" in a single dimension, adding two separate "exactly matches" filters will fail. Instead, you must use Regular Expressions.

  • In the Filter setup, change the Match Type to "Matches regex".
  • Use the pipe symbol (|) to act as an "OR" operator.
  • Example: To filter for both "shoes" and "hats," enter: shoes|hats.
  • This allows you to filter a single dimension for multiple distinct values simultaneously in the web application.

3. Filtering in the "Explore" Section

The Explorations tool offers more granular control for advanced SEO auditing. Here, filters are found at the bottom of the "Settings" column.

  1. Drag the dimension you want to filter into the Filters box.
  2. Choose your first condition (e.g., begins with /blog/).
  3. Apply the filter.
  4. Drag the same dimension into the Filters box a second time immediately below the first one.
  5. Choose your second condition (e.g., does not end with /amp/).
  6. The web application will now only show rows that satisfy both rules.

4. Common Pitfalls for Webmasters

When setting up multiple filters for a single dimension, keep these SEO-critical factors in mind:

  • Case Sensitivity: By default, GA4 filters are case-sensitive unless specified. Ensure "Blog" and "blog" are accounted for, or use a Regex toggle to ignore case.
  • Dimension Limits: Ensure you are filtering the primary dimension. If you have a "Secondary Dimension" active, the filters apply to the entire row, which can sometimes produce unexpected results.
  • Internal Traffic: If your multi-filter report is showing no data, check if your "Internal Traffic" filters are active and excluding your own IP, which might be the only one visiting those specific URL combinations.

Conclusion

Adding two filters to a single dimension in Google Analytics is a powerful way to segment your SEO data. Whether you use the Standard Report filter builder for "AND" logic or Regular Expressions for "OR" logic, understanding how the GA4 web application processes these requests is key to clean, actionable reporting. By mastering these filtering techniques, you can move beyond surface-level metrics and perform deep-dive analysis on specific subsets of your web traffic.

Profile: Need to apply multiple filters to one dimension in GA4? Learn how to use “AND“ vs “OR“ logic and Regex to filter reports effectively in the Google Analytics web application. - Indexof

About

Need to apply multiple filters to one dimension in GA4? Learn how to use “AND“ vs “OR“ logic and Regex to filter reports effectively in the Google Analytics web application. #webmaster #singledimensioningoogleanalytics


Edited by: Vittoria Gentile, Sindri Logadottir & Mattia Ricci

Close [x]
Loading special offers...

Suggestion