Creating a segment with an entry page and one other variable | Community
Skip to main content
New Participant
December 7, 2023
Solved

Creating a segment with an entry page and one other variable

  • December 7, 2023
  • 1 reply
  • 1404 views

Hi,

 

I need some advice with something that looks easy, but I got stuck. I need to create a segment that will include visits that have an Entry page containing /p/ (product page) AND VarX = "marketplace". I want to see only those visits, where the entry page was a product page of a specific type. I built a Visit segment with a Hit container inside that includes those 2 conditions. However I kept seeing product pages of the other type as well, when applying the segment.

I think that this is because Entry Page persists through the visit, and when the user goes to the next pages that might not be "marketplace" product, it still records it. 

Could you please recommend how to build this segment properly?

 

Thanks,

Kate

Best answer by abhinavbalooni

Hi @katerynaos 

Along with the above two variables, VarX and Entry Page add another dimention in the hit level segment. Add a dimension called hit depth and check if it is equal to 1. This would give you the first pageview (assuming that the pageview is the first hit when a user lands on the site). Something like below. This should work. Here's a link to hit depth documentation: https://experienceleague.adobe.com/docs/analytics/components/dimensions/hit-depth.html?lang=en

 

 

1 reply

abhinavbalooni
New Participant
December 7, 2023

Hey @katerynaos 

 

The segment seems to be working as expected. Since it is the visits you are looking for, when you apply the hit container with the conditions, within a visit level segment, you do get all the pages within the visit that contained that particular hit. Plus you are correct in saying that entry page persist throughout the visit and if you are also looking at VarX and that is a visit level eVar it would persist too, I guess that is why you are getting the above results.

 

If there is any specific output you are looking for that is not in line with above, then do detail it out with an example and we can try out suggestions.

 

Cheers,

Abhinav

abhinavbalooni
abhinavbalooniAccepted solution
New Participant
December 7, 2023

Hi @katerynaos 

Along with the above two variables, VarX and Entry Page add another dimention in the hit level segment. Add a dimension called hit depth and check if it is equal to 1. This would give you the first pageview (assuming that the pageview is the first hit when a user lands on the site). Something like below. This should work. Here's a link to hit depth documentation: https://experienceleague.adobe.com/docs/analytics/components/dimensions/hit-depth.html?lang=en

 

 

New Participant
December 7, 2023

Hi @abhinavbalooni ,

 

It works! I think it is exactly what I was looking for. I was not aware of this dimension. 

Thanks a lot for the tip!

 

Kateryna