Creating a segment for an event that occurs on the last page of a visit | Community
Skip to main content
Level 5
May 23, 2019
Solved

Creating a segment for an event that occurs on the last page of a visit

  • May 23, 2019
  • 1 reply
  • 2607 views

I am trying to create two segments based on an s.event firing (or not firing) on the last page of a visit, but am running into trouble. The two segments are outlined as follows:

Segment A

  • Page X loads and s.event1 fires on the page load. Both Page and s.event1 are captured in the same call.
  • The visit does not include any additional pages or calls.

Segment B

  • Page X loads and s.event1 does not fire on the page load. Both Page and s.event1 are captured in the same call.
  • The visit does not include any additional pages or calls.

For the sake of this example, Page X is the site's homepage. Thus the segments is designed to answer the question, "did s.event1 fire on the homepage when the homepage was the last page of the visit?"

The trouble likely stems from an exit page having visit-level persistence, while I need the s.event to only count if it fires on the last page. Since it's the last page of the visit that I'm focusing on, using Hit Depth or Visit Depth won't work. I read through How do you create a segment for exit page?  but the post isn't quite what I'm after.

Any help from the Community would be much appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrew_Wathen_

Unfortunately, I don't believe what you are after can be done for the reason that you outlined (exit page is session level, therefore there is no way to isolate the final page view)

But you can vote for this idea that would make it possible...

Make entries & exits metrics available in segments

1 reply

Andrew_Wathen_
Community Advisor
Andrew_Wathen_Community AdvisorAccepted solution
Community Advisor
May 29, 2019

Unfortunately, I don't believe what you are after can be done for the reason that you outlined (exit page is session level, therefore there is no way to isolate the final page view)

But you can vote for this idea that would make it possible...

Make entries & exits metrics available in segments