Google Tag Manager

Forum Discussion

geenawakeley's avatar
geenawakeley
Collaborator
2 months ago

Custom Attribute - Regex Expression Help

Hi!

I am looking to filter on a custom attribute in a canvas audience paths, but I want to do a contains statement.

I am trying to reference multiple attributes with out having to list each specific value as the trigger. The attribute naming convention works were I could use contains.

Thinking I can use a targeting filter where custom attribute matches regex. However, are there any special characters that need to be added to/around "signup" in the attribute value?

Thanks!

1 Reply

  • The vertical pipe symbol | is regex for OR. No special characters are needed for contains.

    For example, color matches regex red|blue would match on red, blue, and light blue.