Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Segment exclude page refresh or URL no-changes

Avatar

Level 8
Level 8

Good day everyone,

Is there anyway to create segment to: all traffic include (or exclude) visit same page URL when user enter site? To me it means exclude page refresh.

For example, user enter website on page A: URL http://www.website.com/a.html

Then I would like to create a segment include traffic to all other pages except page A (http://www.website.com/a.html) on next hit/pageview.

Visit 1: Enter/Landing on Page A > refresh page=======>Not include in segment

Visit 2: Enter/Landing on Page A > Click anchor (URL changes to: http://www.website.com/a.html#click)=======>Include in segment

Visit 3: Enter/Landing on Page A > Click on a JS button called another APP=======>include in segment

Visit 4: Enter/Landing on Page A > Page B (URL is changed)=======>Include in segment

Please help advise.

Thank you.

H

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

With your current requirements, this segment definition you posted actually fits perfectly:

1428519_pastedImage_4.png

Excluding Single Page Visits in the segment definition aren't needed since you're already excluding them with 'hit depth is greater than 1'.

View solution in original post

14 Replies

Avatar

Community Advisor

Dear H_L,

Just include a condition where 'reloads does not exist' like below.

1415643_pastedImage_0.png

Thank You

Arun

Avatar

Level 8
Level 8

Good day Arun,

Thanks for your reply.

But the situation is, the entry page will not only be Page A, I just take it as example, it could be Page B or any other 10,000 pages...

So, what actual mean is: When user landed/entered from a Page, then he/she does not leave, not refresh the page, but did the real action, e.g. visits another page, click any button, etc....

And, if he/she visited next page B, but he refreshes Page B, then it's OK.

So the aim is only to exclude refresh on the first landing/enter pages.

Please help advise further.

Thanks.

H

Avatar

Community Advisor

Dear H_L,

If you capture Previous Page in a Prop, it will be simpler, else it is tougher and even if you find some way i don't think it will give you perfect results.

Let's wait for the expertise from others.

Thank You

Arun

Avatar

Level 8
Level 8

Hello Arun,

I think "Previous Page" is captured as a Prop, then what I can do under this situation?

Or is it possible to define as following?

Show: Visits

Original Key Page URL exists

Then within 1 Pageviews

Reloads does not exist

1415666_pastedImage_0.png

Thanks.

H

Avatar

Community Advisor

Dear H_L,

Include an "AND" condition with Entry Page equals A and Previous Page not equals A. If you have Previous Page, Reloads are not needed.

For Page Refresh, the Previous Page will be same and thus it will be excluded by the above segment.

Thank You

Arun

Avatar

Employee Advisor

This should work, right?

The red container means exclude.

Avatar

Community Advisor

Gigazelle​ your segment would exclude only some hits, not the whole visit

@H_L did you try a segment like this:

“visit“: { „hit depth equals 1“ THEN (within 1 page view) „reload does not exists“ }

this should show you all visits where the user had no reload after the first hit.

Avatar

Level 8
Level 8

Hello Gigazelle,

This would very helpful, I forgot the "hit" level, however, I need to exclude all the bounce traffic as well.

So in fact, we want to exclude all "invalid" traffic after enter, for example:

Bounce, reload

Once user take any action after enter website, e.g.: click any icon/button/link, this will be the "valid" traffic.

Thanks for your reply.

H

Avatar

Level 8
Level 8

Heelo urs.boller,

May I know why "hit depth equals 1" ?

Please kindly clarify.

Thanks.

H

Avatar

Community Advisor

Hi H_L

Hit Depth = 1 means first hit of a visit. so the segments checks if the user had a hit and the no bounce on the second page view (assuming your first hit is always a page view)

Avatar

Level 8
Level 8

Hello urs.boller,

Thanks for your reply. But it seems to me your suggested definition means: the visit hit depth = 1 only.

As I checked this document, the 1st page view is hit depth=1

Hit Depth :

Hit Depth

The depth of the page in a Visit to which customers to your site browse. Let's say a customer views Page A, B and then C in a single visit. Pages A, B, and C have a hit depth of 1, 2, and 3, respectively.

Following one segment will exclude all visits without click, without reload. So I think this will be better?

1425806_pastedImage_4.png

Thanks.

H

Avatar

Employee Advisor

This should do the trick nicely:

If you want to exclude entire visits where a reload happened, you can swap the container from 'hit' to 'visit'.

Avatar

Level 8
Level 8

Hello Gigazelle,

Thanks for your reply.

What I want to exclude is the reload/bounce on the entry page/landing page only.

Which means, in a visit, if user refresh page or exit once enter website, then will be excluded, but if user visited another page or clicked any other link, then refresh page, this is fine.

E.g.:

Exclude: Enter Page A > Exit

Exclude: Enter Page A > refresh > Exit

Not Exclude: Enter Page A > refresh > Page B > Exit

Not Exclude: Enter Page A > Page B > Refresh > Exit

Not Exclude: Enter Page A > Click a button > Exit

So your suggestion works well in most situation, but since there are some buttons and links are not to "page" on our enter page, I'll add one more based on your and urs.boller's suggestion:

1426615_pastedImage_0.png

Do you consider this makes sense?

Thanks.

H

Avatar

Correct answer by
Employee Advisor

With your current requirements, this segment definition you posted actually fits perfectly:

1428519_pastedImage_4.png

Excluding Single Page Visits in the segment definition aren't needed since you're already excluding them with 'hit depth is greater than 1'.