Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Build a segment to filter by hit *then* visitor

vcaba
Level 1
Level 1

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?

1 Accepted Solution
hjoshi
Correct answer by
Level 2
Level 2

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-...

 

Thnaks,

View solution in original post

1 Reply
AlexisCazes
Community Advisor
Community Advisor

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.

 

 

vcaba
Level 1
Level 1
I considered that, but it's not practical since the required exclude list would be thousands of values.
yuhuisg
Community Advisor
Community Advisor

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.

vcaba
Level 1
Level 1
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_belliston-Adobe
Level 10
Level 10
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?
hjoshi
Correct answer by
Level 2
Level 2

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-...

 

Thnaks,

View solution in original post

vcaba
Level 1
Level 1
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.