Feature Request: Make window visibility events queryable within PostHog

Open
#35,600 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
sql
Domain
analytics

Research direction

Start by tracing how window visibility events are stored in session replay data, then inspect the query paths for insights and SQL. The work is done when these events can be selected and aggregated through both insights and SQL, rather than only viewed in recordings.

Written by the indexing model from the issue text.

Description

enhancement feature/insights feature/replay
Feature request

Is your feature request related to a problem?

We store window visibility events in session replay data, but that's not queryable anywhere outside recordings.

Image

The window being hidden can be a leading indicator that there is a high risk for abandonment in the session/journey they are on. So understanding how features impact users feeling the need to hide the window because they are waiting for extended period of times is a valuable metric.

Describe the solution you'd like

Make window visibility events queryable in insights and SQL.

Describe alternatives you've considered

  • Use replays to see them, but that lacks aggregation/analysis.

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/34887 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/36541)

Debug info
null
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PostHog/posthog

All issues in PostHog/posthog

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.