Expand my Community achievements bar.

Does not exist visit segment

Avatar

Level 1

Hi,

I'm trying to create a segment to identify visits that do not include a specific event.

To do so, I created a visit segment with 'Event does not exist'. Tried this in a visit container and just standalone.

My expectation of this segment was that it would return all visits where there is no event.

Instead, the segment returns almost 100% of visits, because (I assume) almost every visit has at least one hit that does not include the event.

 

A visit segment with event = 0 or event <= 0 performs the expected function.

 

Is this a bug in 'Does Not Exist' in visit segment behavior, or does this in fact function as intended? 

 

TY,

 

Jen

 

 

 

 

 

2 Replies

Avatar

Community Advisor and Adobe Champion

One of the key things with segments is understanding the different between "does not exist" and "excludes".

If you set up a condition in a visit segment with "does not exist", it's going to look in that entire visit for a value that is something other than the one you want to exclude. For example, if I don't want to see the homepage and I do "visit with page does not contain homepage". It's going to return all visits where someone saw a page that was not the homepage, regardless of if one of the other pages was home or not. The only thing that won't be returned is visits where the only page seen was homepage. 

Alternatively, there's the "excludes" option. If you do "visit where page = homepage" and then use the "exclude" option, it's going to look for any visit that saw the homepage and then NOT return those visits, it will only return other visits. 

So, what you're seeing isn't a bug, it is working as intended. To get what you need, try using "exclude" instead.