Skip to main content

Hi! Im filtering my data and would like to know how to you use here:

 

Filter

________________________

IS there a boolean for this?

example: “SOURCE OR SELL OR LIKE”

________________________

 

And if I use this regex “contains” or “doenst contains”: do we have some kind of character limits or prohibited?

 

Thanks,

Hi ​@julianadefreitasdias 
 

Thanks for reaching out and apologies for the delay in response as the team was out on holiday. 🤗
 

Great question, you’re touching on two related but slightly different things: Boolean operators and regex in GA4.

Boolean operators
Supermetrics supports both AND and OR.

  • AND = narrows results (everything must match).

  • OR = widens results (any match counts).

For your case (SOURCE OR SELL OR LIKE):

  • Add three filter rows on Campaign name CONTAINS: one for “Source,” one for “Sell,” one for “Like.”

  • Combine them with OR.

Here’s our guide on filters →

Regex
You can also do this with one filter using regex. The pipe symbol | acts like OR:

SOURCE|SELL|LIKE

Just note GA4 has a 256-character regex limit. Supermetrics can handle more, but using multiple OR filters is safer for long queries.

If you ever need help building more complex filters, our support team’s always here. 😍


Reply