Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.

Excluding specific pages in a Visit level segment

Avatar

Level 1

Hi,

I'm trying to create a segment that looks only at a specific campaign page, excluding other campaign pages, at the visit level.

I've tried everything: excluding containers; using “does not equal” and “does not start with,” etc. I also tried using THEN instead of AND, and I tried Visitor level instead of Visit level.

Does anyone have a solution to this?

Thanks, Bianca

6 Replies

Avatar

Community Advisor and Adobe Champion

If you have a visit level segment and you want to exclude certain conditions, that also needs to be done at the visit level. Say for example you want all visits that DID NOT visit Page A. If you made a segment like this:

visit
   exclude hit
     page = Page A

 

That would returned a visit where there is at least one hit that is not Page A. So if a visit was:

Visit 1:
Page A
Page B
Page C

 

Visit 2:
Page A

 

Visit 3:
Page C
Page B

 

The segment would return visits 1 and 3 - because in each of those visits there is at least one hit that does not contain Page A. But it sounds like what you want to return would be just visit 3 (because they didn't see Page A at all). 

To do that you need to do the exclusion at a visit level. 

Exclude Visit
   Page = Page A

 

What that will do is exclude the entire visit where Page A was seen. Now, the caveat to that is, if they visit your target page and the page you want to exclude, it will still exclude the entire visit, so you will lose some of the information about people that did visit your page. 

This means you have two options - you can do an 'include' segment with the target campaign you want to analyze and accept that some of them might have visited both that campaign and others. Or the second option is the exclude segment I described above and just accept that it will exclude some people who saw the target campaign because they saw other ones too.

What I would recommend is make both segments, look at how many people saw your target campaign, and then look at how many are left after you exclude those that also saw other campaigns, just to get an ideas of what percent of the sample is being represented. Then you can go from there on deciding which method/group to use for your analysis.

Avatar

Community Advisor and Adobe Champion

Like Mandy said, the scope of a segment is very important to what and how the data is returned.

 

 

For additional information, you should check out:

 

Article: https://experienceleague.adobe.com/en/perspectives/the-magic-behind-the-curtain-complex-segments

 

Skill Exchange: https://experienceleague.adobe.com/en/docs/events/the-skill-exchange-recordings/analytics/aug2024/se...

 

 

The other thing that has to be considered in your example...  if a visit has multiple campaigns, should the whole visit be ignored? Should it only exclude the flows from the alternate campaign?

 

For instance:

 

Visit:

  • (User Interacts with Campaign 1)
  • Page A
  • Page B
  • Conversion 1
  • Page C
  • (User Interacts with Campaign 2)
  • Page D
  • Page E
  • Conversion 2

 

If you exclude the entire visit based on Campaign 2, you won't see your conversions against Campaign 1... I can understand wanting to exclude the pages and conversions of Campaign 2, since you are focused on Campaign 1, but the first conversion was part of your specific campaign....

 

 

Without knowing specifically what you exactly expect to be returned, it can be hard for us to help.

Avatar

Level 1

Thank you both for the reply!

Let me try to explain more in details what I want.

I only want to see visits where the visitor has seen 1 specific campaign page.

So for example if a visitor have visited:
Campaign page A

Campaign page B

Campaign page C

I dont want to see it. I only want to see visits on Campaign Page B + other "normal" pages. For example:
Campaign page B

Page 1

Page 2

Page 3

OR

Page 1

Page 2

Campaign page B

Page 3.

 

One of the segments I have tried is something like this:

Visits

Page equals Campaign B

AND

--- Container - Exclude ----

Page starts with Campaign

AND

Page does not equal Campaign B.

-----

 

I have also tried with other dimensions like site sections so I could use equals and does not equals.

I have also tried to use THEN, so something like this.

 

--- Container - Exclude ---

Site Section 1 equals xx

AND

Site Section 2 equals Campaign

-----------------------------

THEN

---- Container ---

Page name equals Campaign B

------------

THEN

---- Container - Exclude ----

Site Section 1 equals xx

AND

Site Section 2 equals Campaign

------

 

I know that it will exclude some visitors/leads, but the use case is to look at how many leads was generated from solely this specific campaign without any other.

 

Can you help me get to that result?

 

Thank you in advance!!

 

Avatar

Community Advisor and Adobe Champion

In your examples, you only talk about visitors who saw campaign B... but still did not answer what happens if in the same visit the user saw 2 or more campaigns.

 

I only want to see visits where the visitor has seen 1 specific campaign page.

So for example if a visitor have visited:
Campaign page A

Campaign page B

Campaign page C

I dont want to see it. I only want to see visits on Campaign Page B + other "normal" pages.


So just like the first post, we understand that you are looking for Campaign B... but when we start adding exclusions, we need to understand if we are throwing out only portions of the visit that don't match the campaign (this is what I think you need), or the entire visit (I doubt you want this, but I want to be sure)....

 

 

 

Also, your sample segments didn't tell us the scope of the containers (which can 100% be mixed), so I still don't truly understand what you have tried. I am going to assume the "default" container scope, which is "hit" (but assumptions are not to be relied on.)

 

 

 

Given the nature of campaign tracking (Visit level attribution).... you should be able to just look at HITS with Campaign B. That will by default, return all the pages and actions correlated to Campaign B... however, this would be better served with a "Visit" scope on your campaign tracking... if you have "7 Day" or "30 Day" attribution, then obviously you will get visits within a week or a month of the actual visit with the campaign.

 

 

IF I understand your needs (you want all the hits for Campaign B, where the Visit actually interacted with Campaign B - so not including subsequent visits). I think this might be the segment you are looking for:

 

 

HITS [

    Tracking Code equals campaign b

    AND

    VISIT Container EXCLUDE [

        Tracking Code (Instance) does not equal campaign b

    ]

]

 

 

This will pull back ALL hits that are associated to the campaign, and will exclude visits where there was no specific interaction with the campaign (i.e. the next visit within your 1 week / 1 month / whatever attribution)

 

Jennifer_Dungan_0-1767886537346.png

 

 

Note: to get the "instance" of Tracking Code, you need to use the gear to choose the correct Attribution Model for your dimension that has it's own attribution / expiry

Jennifer_Dungan_1-1767886711496.png

 

 

Avatar

Level 1

Thank you again for your answer, and sorry for not being clear.

 

Regarding your first question: if, within the same visit, the visitor viewed anything other than Campaign Page B, I don’t want to include that visit. I know this won’t give an entirely accurate picture of the numbers, but in this case I want to see the number of leads the specific campaign page drive on its own, without any other interaction with other campaign pages, during the visitor’s lifetime. I’m also aware that this is based only on cookies, and it’s possible they actually saw other campaigns under another visitor ID.

This is just to show trends: did Campaign Page B alone drive more leads than Campaign Page A?

So, in answer to your second question: I want to throw out the entire visit if it includes interactions beyond the specific campaign page.

 

Regarding the scope of the containers, I have tried everything 😅, and I get the same result.

Does it make more sense?
Once again I really appreciate you taking your time to answer me. Thank you!

Avatar

Community Advisor and Adobe Champion

No worries, trying to explain scenarios is really hard... it's one of the reasons why when someone asks me for a report at work, I follow up with multiple questions asking for details in multiple ways (and also draw out scenarios) to be sure that we are both completely on the same page.

 

So if you need to exclude the entire visit if any other campaign "contaminates" it, then the segment will look a little different.

 

I only excluded visits that didn't have an instance of "campaign b", but I haven't excluded visits that have other campaigns where campaign b.

 

You should be able to add another exclusion to the above segment. To keep readability intact, you can add as a second container:

 

....

    AND

    VISIT Container EXCLUDE [

        Tracking Code does not equal campaign b

    ]

 

 

So now you are excluding Visits that don't have a direct entry to "campaign b" AND visits that have any campaign other then "campaign b".

 

 

See if that makes a difference?