Build a segment to filter by hit *then* visitor | Community
Skip to main content
Level 2
June 15, 2021
Solved

Build a segment to filter by hit *then* visitor

  • June 15, 2021
  • 4 replies
  • 3339 views

Segments filter by the outer container, then the inner container. According to the documentation it's not possible to have a Visitor container within a Hit container, but I wanted to check if maybe there was an alternate method for that. 

 

Basically I want to first filter a data set for only specific hits, then I want to filter only those hits for a visitor level criteria. Possible/not possible?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by hjoshi

The container works as a wrapper for any segment. to filter a data set for only specific hits, you could use hit based segment.

About segments and containers:

https://experienceleague.adobe.com/docs/analytics/components/segmentation/seg-overview.html?lang=en

https://experienceleague.adobe.com/docs/analytics/components/segmentation/segmentation-workflow/seg-build.html?lang=en

 

Thnaks,

4 replies

Alexis_Cazes_
Level 10
June 16, 2021

I think you might want to first create a Visitor container that match you first hit criteria, then another container to exclude Visitors or visits or hits that do not match further criteria.

 

 

aaabaAuthor
Level 2
July 21, 2021
I considered that, but it's not practical since the required exclude list would be thousands of values.
yuhuisg
Community Advisor
Community Advisor
June 17, 2021

Why can't you just use a single Hit-level container?

It stands to reason that since you're ultimately getting a segment of Hits, because that's your outer container, then anything within that container should be filtered/segmented based on Hits too.

Or maybe I'm not understanding your problem correctly.

aaabaAuthor
Level 2
June 17, 2021
Because I want to use this with the Products variable per visitor. For example, I want to segment by visitors who have spent $x on a specific product over a period of time. When I make the inner container a Visitor that appears to take precedence over the outer Hit container since it's the broadest scope.
jantzen_b
Adobe Employee
Adobe Employee
July 20, 2021
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?
hjoshiAccepted solution
Level 2
July 23, 2021

The container works as a wrapper for any segment. to filter a data set for only specific hits, you could use hit based segment.

About segments and containers:

https://experienceleague.adobe.com/docs/analytics/components/segmentation/seg-overview.html?lang=en

https://experienceleague.adobe.com/docs/analytics/components/segmentation/segmentation-workflow/seg-build.html?lang=en

 

Thnaks,

aaabaAuthor
Level 2
July 23, 2021
Thanks, but I don't want to just limit to hits. I want to filter for only specific hits, and then filter those results with a visitor scope. For example, I want to filter hits to only those with a purchase of X product, then filter those hits to visitors who have spent Y amount on that product. I think this goes back to the need for a Product scoped segment that I asked about in another post.