Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

what is the diff between contains and equals in segmentation

Avatar

Level 3

Example indicating difference between "contains" and "equals" in segments

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi Anshika - 

"Contains" will filter out any words in a certain list/page url and "equals" means exact match.
e.g.- If you want to see a stats for page url http://www.adobe.com including sub-pages, then you should use "contains" or "starts with" option

And

   If you want to see a stats for page url http://www.adobe.com ONLY, then you should use "equal" option

Hope this helps.

Regards,

-Suhail

View solution in original post

2 Replies

Avatar

Level 10

Let suppose you are trying to segment a list of product names which include - 

prod1, prod2, prod3, prod4, prod5

in segment builder if you put product name contains 'prod' the result would be - prod1, prod2, prod3, prod4, prod5

and if you put product name equals 'prod4' the result would be - prod4

so in essence 'equals' gives an exact match and 'contains' pulls the whole string which contains the said expression

Hope that helps.

Tanmay 

Avatar

Correct answer by
Level 3

Hi Anshika - 

"Contains" will filter out any words in a certain list/page url and "equals" means exact match.
e.g.- If you want to see a stats for page url http://www.adobe.com including sub-pages, then you should use "contains" or "starts with" option

And

   If you want to see a stats for page url http://www.adobe.com ONLY, then you should use "equal" option

Hope this helps.

Regards,

-Suhail