Build a segment to filter by hit *then* visitor | Community
Skip to main content
Level 2
Jun 15, 2021 3:25 PM UTC
Solved

Build a segment to filter by hit *then* visitor

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.
hjoshiAccepted solution
Level 2
Jul 23, 2021 3:32 AM UTC

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,

7 replies

hjoshiAccepted solution
Level 2
Jul 23, 2021 3:32 AM UTC

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,

Translate
aaabaAuthor
Level 2
Jul 23, 2021 6:05 PM UTC
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.
Translate
jantzen_b
Employee
Jul 20, 2021 9:14 PM UTC
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?
Translate
yuhuisg
New Participant
Jun 17, 2021 5:09 AM UTC

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.

Translate
aaabaAuthor
Level 2
Jun 17, 2021 10:26 PM UTC
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.
Translate
Alexis_Cazes_
Level 10
Jun 16, 2021 5:06 AM UTC

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.

 

 

Translate
aaabaAuthor
Level 2
Jul 21, 2021 10:10 PM UTC
I considered that, but it's not practical since the required exclude list would be thousands of values.
Translate