Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.3 KB
Raw Blame

List the persons behind one bar of a stickiness insight — the users who were active in a given number of intervals.

Pair this with query-stickiness: first run the stickiness query to read the distribution (the X-axis is the number of active intervals, the Y-axis is the number of users), then call this tool with the same stickiness query as source and day set to the bar you want to drill into.

Selectors:

  • day (required): the number of active intervals to drill into — the X-axis value of the bar. Despite the name, this is an interval count, not a date. For a daily insight, day: 13 lists the users who were active on exactly 13 days within the source's date range; for a weekly insight it is a count of weeks, and so on.
  • series: 0-based index of the series to drill into when the stickiness query has multiple series. Defaults to 0.
  • compare: current (default) or previous when the source has compareFilter enabled.
  • limit: how many persons to return in one page. Defaults to 100, and anything above 1000 is clamped to 1000.
  • offset: how many persons to skip before the returned page. Defaults to 0.

Response:

Each returned row contains distinct_id, email, and name. There is no event_count, and there is no includeRecordings selector — stickiness drilldown is membership-based (active on exactly N intervals) and does not surface a matched-recordings column.

The response also reports limit, offset, and hasMore. When hasMore is true there are more people in the bar — call again with offset raised by limit to read the next page, and repeat until hasMore is false.

Guidance:

  • Keep the source stickiness query identical to the one whose bar the user is asking about — the series, interval granularity, date range, and filters all determine who falls in each bar.
  • day selects a single bar (a specific active-interval count), not a date. To list the users at a different bar, change day.
  • To read every person in a bar, page with offset rather than raising limit past 1000, and keep source, day, series, compare, and limit identical across pages so rows don't repeat or go missing.
  • When you only need a sample, one page is enough — tighten the source (date range, filters) instead of paging through everyone.