PostHog / PostHog/posthog

Count events by "First time for a group" in Trends

Open
#24,079 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/group-analytics feature/trends team/product-analytics
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

Description

Feature request

Is your feature request related to a problem?

It would be useful to count how many events happened for the first time ever for a group.

Describe the solution you'd like

In addition to the "First time for user" math type, trends should have a similar math type but for groups.

Describe alternatives you've considered

Writing an SQL query is challenging for that.

Additional context

Internal request:

so that people can track e.g. how many new orgs have started using their product, particularly in a b2b context

Debug info

No response

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.

Research direction

Start with the Trends implementation and trace the existing "First time for user" math type. Define the group-based counterpart for counting events that are first-ever for a group, then verify that Trends can expose the result for use cases such as new organizations adopting a product.

Written by the indexing model from the issue text.

Assessment

Domain
analytics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.