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

Segment for Visits with 2+ Distinct Page Views

djc286
Level 2
Level 2

I'm trying to design a segment that tracks the number of visits to a section of a webpage that views two distinct pages within that section. I've tried using the Appox Count Distinct and Greater Than/GTOET and Less Than/LTOET functions and all either result in a 0, 1, or capture all visits to that section of the page.


Any ideas on segments/calculated metrics that can be used together to achieve this?

1 Accepted Solution
Gigazelle
Correct answer by
Employee
Employee

You could exclude all single access visits, since a 'single access' is a visit containing a single unique page name value. If they have two page names that are the same, they would be considered a single access, and would be excluded from the segment.

View solution in original post

0 Replies
PratheepArunRaj
Moderator
Moderator

Dear DJ,

Use 'Visit' container to satisfy the condition like below.

1376637_pastedImage_0.png

Thank You!

Arun

djc286
Level 2
Level 2

Thanks Arun. I actually need to ensure it's not two views of the same page. Is there some kind of distinct/unique function that would allow us to know that within one visit, there's two views of unique pages within their blog within one visit?

Gigazelle
Correct answer by
Employee
Employee

You could exclude all single access visits, since a 'single access' is a visit containing a single unique page name value. If they have two page names that are the same, they would be considered a single access, and would be excluded from the segment.

djc286
Level 2
Level 2

A good thought and would get us closer, but since the blog lives within a larger site environment, there is a way to view one blog page and one non-blog page (and it happens a non-negligible amount) so those folks would still be included, correct?

Gigazelle
Employee
Employee

You would want to classify your site into "blog" and "non-blog" categories, then segment out whichever ones you don't want to be part of the data set.

mubarakd5726232
Level 5
Level 5

I'd suggest another possible solution ..

Use getPreviousValue  .. and then trigger an event 'distinct x count' if value is different to the current page 

so .. assuming your pagenames are distinct (or you have article id or similar)

1st PV : getPreviousValue cookie would be empty so you'd set it to current page (distinct value) .. and would trigger distinct count

2nd PV : assuming they refresh the page it you wou;dn't trigger the event as previousValue would be same as current

3.rd PV : view another page .. you'd trigger event.

You could then create a Visit segment where 'distinct x count is y or greater than y

..sure not perfect as if they view the first page again after viewing a different page in between it would increment the count.  There is a solution for this too but it start getting a little more complex