Scratching your head figuring out how to use filters in GA4 and filter using Regex, look no further.
Let’s say you want to create a report on that tells you how many sessions are coming in for a category that has multiple different types of products or more categories. If you only had URLs to work with, the best way to do this would be using a filter in GA4 or Google Search Console.
For this example, let’s use a living room furniture category:
Step 1: In Google Analytics, create a landing page report and then edit the report to add filters. For this example, I want to know the total sessions, conversion rate, revenue, etc. so in the Dimension dropdown I select “Landing page + query string”.
Step 2: Next, select “Match Type” and select “matches partial regex” then in the field, start typing in all the URL variants you want data on, separate each with a pipe, “|”.
Example #1: Living Room Furniture
furniture-living|sectional|sofa|loveseat|recliner|arm-chair|fabric-chair|leather-chair|accent-chair|theatre-seat|ottoman|futon|sofa-bed|
Example #2: Beds & Bedroom Furniture
bedroom|king-bed|queen-bed|full-bed|twin-bed|-bed-|nightstand
Example #3: Appliances
appliance|freezer|refrigerator|frige|range|oven|dishwasher|microwave|air-fry|mixer|dryer|washer|laundry|pedestal|storage|vacuum|fryer|air-conditioner|fan|humidifier
Leave a Reply