Expand my Community achievements bar.

SOLVED

SiteCatalyst - Segment Definition Builder: Include "does not contain" vs. Exclude "does contain"

Avatar

Former Community Member

Hello Analytics Gurus,

I am confused by the use of "Include" vs "Exclude" when creating segments in SiteCatalyst.

For example, I created 2 segments in which the goal is to only include desktop visitors that did not visit 2 particular pages.

I am getting 2 different results.

The difference is that Segment 1 uses the "Include" tab and Segment 2 uses the "Include" and "Exclude" tabs.

Visits Segment 1

Include

  • Mobile Device Type is Null
  • PageName does not equal
  • PageName does not contain

Visits Segment 2

Include

  • Mobile Device Type is Null

Exclude

  • ​PageName equal
  • PageName contains

At the surface, it appears like the two segments should function the same.  

Segment 1 only includes visits that fit the 3 include rules.

Segment 2 includes desktop traffic and then excludes visits to the 2 particular pages from the included desktop traffic.

What is the most accurate approach? 

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

Try considering it in this way: first, what must you exclude from the whole dataset? Then, what must we ensure is included? (Processing actually evaluates Include before Exclude, but this thought process helps me to translate my ideas properly into segment criteria).

You stated this is the requirement: the goal is to only include desktop visitors that did not visit 2 particular pages

So, we would deal with visitor containers, but I'll assume that you mean visit containers (since you used visit in your samples). Also, for now, let's just talk a single page, rather than two, because the approach is extendable to multiple pages and far easier to explain.

First, you need to exclude data where the visit contained page X. I can interpret your statement only include...[visits] that did not visit [page X], but we must be more strict in the criteria definition. If we use the Include canvas to specify visits where page does not equal X, we get visits that had at least one web beacon where page does not equal X. However, this would then include visits that touched other pages, consisting even of those that also touched page X! We need the Exclude canvas to strictly cut out visits where page equals X, so that the entire visit is removed if page X was touched at least once.

After that, the limitation of include desktop [visits] is simply added as you suggested, with a rule based on Mobile Device Type. You do not have to use the same approach as above, because of the nature of this criterion. Mobile Device Type does not change, across the entire visit. So, by including visits based on this criteria, you've inherently excluded all those that were mobile devices.

Andy

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi,

Try considering it in this way: first, what must you exclude from the whole dataset? Then, what must we ensure is included? (Processing actually evaluates Include before Exclude, but this thought process helps me to translate my ideas properly into segment criteria).

You stated this is the requirement: the goal is to only include desktop visitors that did not visit 2 particular pages

So, we would deal with visitor containers, but I'll assume that you mean visit containers (since you used visit in your samples). Also, for now, let's just talk a single page, rather than two, because the approach is extendable to multiple pages and far easier to explain.

First, you need to exclude data where the visit contained page X. I can interpret your statement only include...[visits] that did not visit [page X], but we must be more strict in the criteria definition. If we use the Include canvas to specify visits where page does not equal X, we get visits that had at least one web beacon where page does not equal X. However, this would then include visits that touched other pages, consisting even of those that also touched page X! We need the Exclude canvas to strictly cut out visits where page equals X, so that the entire visit is removed if page X was touched at least once.

After that, the limitation of include desktop [visits] is simply added as you suggested, with a rule based on Mobile Device Type. You do not have to use the same approach as above, because of the nature of this criterion. Mobile Device Type does not change, across the entire visit. So, by including visits based on this criteria, you've inherently excluded all those that were mobile devices.

Andy