Allow "OR" when building a segment using the "matches" operator

Avatar

Avatar

dreisch-wiley

Avatar

dreisch-wiley

dreisch-wiley

23-02-2015

At least once a week, I'll get a request from a client or colleague asking for metrics on a specific set of product IDs/page IDs/object keys. Or, we'll release a feature on our platform that impacts a subset of products (by ID) and I'll want to make a segment.

 

Currently, my two options are:

  • Drag a container into the segment builder for every.single.object and use "exact" matches (this is a grand waste of time and makes report performance sluggish)
  • Use the "contains any of", list every ID out delimited by a space, and hope that my IDs don't partially match other IDs (like "123" matching "12345")

 

What I would prefer:

Use the "matches" operator and list every criteria out, pipe-delimited: "123|124|150|180"

 

Right now, the "matches" operator allows for wildcards:

https://marketing.adobe.com/resources/help/en_US/analytics/segment/seg_operators.html

Why not show regex a little love and support "or" operators, too? Or go whole hog and allow for regular expressions? This has been a feature of GA since the day they allowed you to filter a report. 

9 Comments (9 New)
9 Comments

Avatar

Avatar

larry_he5

Avatar

larry_he5

larry_he5

19-04-2015

I can't agree witch you more. The regular expressions should be allowd in "match" operator.

Avatar

Avatar

benjamingaines2

Avatar

benjamingaines2

benjamingaines2

20-04-2015

Thanks for the idea and comments. This isn't something we're currently planning to do in the near term, but we'll keep an eye on this for votes and comments, and reevaluate if necessary.

Avatar

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

459

Correct Answer

734

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

459

Correct Answer

734
Gigazelle
Employee

02-06-2016

In the current segment builder, dragging two containers next to each other has three operators: 'AND', 'OR', and 'THEN'. The 'OR' operator allows the exact segment above to be created.

Avatar

Avatar

GaMeur1

Avatar

GaMeur1

GaMeur1

23-10-2017

I wonder what you recommend in case the number of different values is larger... Let's say we want to filter on 100 IDs or 1000 IDs... Would you recommend to make 100 or 1000  "OR" statements? It's not possible to manage it manually each time! So the response to this idea is not properly delivered.

Avatar

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

459

Correct Answer

734

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

459

Correct Answer

734
Gigazelle
Employee

25-10-2017

Create a classification, and create a segment based on the classification. If the ID's have a pattern, you can use the rule builder; if there is no pattern, you can use the classification uploader.

Once you have the classification in place to identify the ID's in question, create a segment where the only criteria is to match the classification value, and you're done.

Avatar

Avatar

hyderziaee

Employee

Avatar

hyderziaee

Employee

hyderziaee
Employee

25-10-2017

You can also use "contains any of" as the condition.

This takes space as a delimiter for the different values. So if used, will act as an OR condition between all 100 or 100 IDs inserted.

Avatar

Avatar

GaMeur1

Avatar

GaMeur1

GaMeur1

25-10-2017

Ok, I see. Classification should do it. BUT allow "OR" inside the matches operator, or have some kind of "equals any of" operator would really be better. That's the point of this submitted idea!

Because classification is not perfect in this case:

- if you have a lot of different segments you want to build (based on different IDs), you'll need a LOT of different classifications...

- if you have new IDs that are created, they won't be in your current classification (in case that you don't have pattern and have to use classification uploader), so it implies that you must update the classification, which is not as easy and quick than copy and paste list of IDs in a segment...

For me, classification is just a workaround here.

Avatar

Avatar

GaMeur1

Avatar

GaMeur1

GaMeur1

25-10-2017

No, you can't if an ID is included in another one... For exemple, if you say " ID contains any of  23 45 67" it will match 23, 45 and 67 but also 12345, 678 1067, etc... so it's not what we want.

Avatar

Avatar

hyderziaee

Employee

Avatar

hyderziaee

Employee

hyderziaee
Employee

25-10-2017

Yes, you are correct about that GaMeur1​. There are limitations to it.