Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support session related business metrics #672

Open
codecapitano opened this issue Sep 10, 2024 · 0 comments
Open

Better support session related business metrics #672

codecapitano opened this issue Sep 10, 2024 · 0 comments
Labels
feature Request a new feature

Comments

@codecapitano
Copy link
Collaborator

codecapitano commented Sep 10, 2024

Description

Currently it's not straight forward to get business related session metrics like duration or bounce rates.

Faro's session manager currently doesn't send a session_end event.
This is because Faro can't know when a session conceptually ends.
Is it after a user logs out of a page or after a certain timespan etc.

It may be still useful for customers if Faro provides an easy to use set of functions to clear or end a session.
Furthermore it cab provide a session_end event which can be sent manually to have an option to track business metrics like session length or drop rates.

This is an easy option to get started.
In the long term this should be made easier

Proposed solution

  • Provide convenience function for ending a session and sending a respective event.
  • Additionally we can think about adding the session_start timestamp to the session meta so we always can derive the current session duration.
    Alternatively we can only add the session duration to the respective session lifecylcle event. Whole duration e. g. can be calculated by lastSessionLifecycleEvent.duration + lastEvent.timestamp - lastSessionLifecycleEvent.timestamp. This would save a good chunk of redundant meta data

Context

@codecapitano codecapitano added the feature Request a new feature label Sep 10, 2024
@codecapitano codecapitano changed the title Provide a convenince function to end a session and send a session_end event Provide a convenience function to end a session and send a session_end event Sep 10, 2024
@codecapitano codecapitano changed the title Provide a convenience function to end a session and send a session_end event Better support session related business metrics Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request a new feature
Projects
None yet
Development

No branches or pull requests

1 participant