We would like to create a segment that looks at visits where a visitor had page views on a section of content (site section 2) at some point before visiting a specific page "x". They could have looked at the section a) right before page "x" or b) they could have viewed the section and then other pages before finally landing on specific page "x".
We created a segment but want to make sure that it accounts for both scenarios "a" and "b". The segment uses the following rules:
Include: visits
where site section 2 equals "value a"
Then specific page url equals "id for page x"
options=Include everyone
We are also interested in how to best create the opposite segment where visit did NOT include the specific site section 2 before landing on the specific page "x"
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi, building your segment like this, should achieve your first goal... a then b
You should note that I set the segment to Visit level, but I left the containers at Hit Level... I also didn't specify any time frame on the "Then" operator (so that this shouldn't be direct or within any time or number of hits). You could also use Then "Within 1 Visit"
As for the opposite... where the visit gets to page b, but did not hit a... this one is trickier, but still doable:
Here, I set the entire Definition to visit. Then I added two containers. The first is also set to visit, but also set as an "exclude" container. I put the exact definition from the first segment in (including the two sub-containers)... section=value a THEN page=id for page x
(Essentially excluding any visits that have that flow).
Then in the second container, I just look for page=id for page x
These two main containers should use the AND operator.
This should now find ALL visits that have your Page X, but exclude any visits where the user hit section A then page X.
If you aren't sure how to make a container an "exclude" container, you can do so with the gear:
And you can change the scope of a container with the icon (that changes to reflect the chosen option) that is next to the Gear:
Hi, building your segment like this, should achieve your first goal... a then b
You should note that I set the segment to Visit level, but I left the containers at Hit Level... I also didn't specify any time frame on the "Then" operator (so that this shouldn't be direct or within any time or number of hits). You could also use Then "Within 1 Visit"
As for the opposite... where the visit gets to page b, but did not hit a... this one is trickier, but still doable:
Here, I set the entire Definition to visit. Then I added two containers. The first is also set to visit, but also set as an "exclude" container. I put the exact definition from the first segment in (including the two sub-containers)... section=value a THEN page=id for page x
(Essentially excluding any visits that have that flow).
Then in the second container, I just look for page=id for page x
These two main containers should use the AND operator.
This should now find ALL visits that have your Page X, but exclude any visits where the user hit section A then page X.
If you aren't sure how to make a container an "exclude" container, you can do so with the gear:
And you can change the scope of a container with the icon (that changes to reflect the chosen option) that is next to the Gear:
thank you!
Views
Replies
Total Likes
You're welcome
Views
Replies
Total Likes
Hello!
It looks like you set your segment up correctly to capture both scenarios that you mentioned (because you did not specify an 'after' or 'within' parameter).
To do the opposite, just make a copy of that segment, and make the container an 'exclude' container.
Hope this helps!
Views
Likes
Replies