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

Concept - Aggregation plugins #4613

Closed
paolodamico opened this issue Jun 7, 2021 · 3 comments
Closed

Concept - Aggregation plugins #4613

paolodamico opened this issue Jun 7, 2021 · 3 comments
Labels
concept Ideas that need some shaping up still enhancement New feature or request stale

Comments

@paolodamico
Copy link
Contributor

paolodamico commented Jun 7, 2021

Is your feature request related to a problem?

Plugins are pretty powerful to manipulate data coming in, yet I may want to extend this functionality to get more robust analytics that I can share on other places (see examples below). The key thing to consider here is that I may want to run analysis on a larger scope than a single event.

Describe the solution you'd like

For instance, I may want to have in my CRM information around how many days has the user been active in the last week. Or information on my customer support platform around the last session duration. Or the number of $exception events in the last 3 days.

Another interesting thing to consider is whether it might be useful to have that information both available as user properties, dynamically-calculated properties for internal analytics.

Describe alternatives you've considered

I could build my own service that processes by continuously hitting PostHog's API or DB and then updating the downstream app.

Additional context

Suggested by a Big 5 (not a request, just a suggestion to consider).
Related to #3357

Thank you for your feature request – we love each and every one!

@paolodamico paolodamico added enhancement New feature or request concept Ideas that need some shaping up still extensibility-team labels Jun 7, 2021
@mariusandra
Copy link
Collaborator

The issue here is that all those "data aggregation" use cases are very specific and each require a slightly different way of aggregating data.

For instance, I may want to have in my CRM information around how many days has the user been active in the last week.

Here I'd make a plugin that takes the user's properties, checks $active_on = ['2021-05-11', '2021-05-18', ...] and either adds today if missing, or trims it to just the last 7 days.

Or information on my customer support platform around the last session duration.

This requires the session tracker plugin and then a custom plugin that emits whatever is needed when getting the "Session end" event.

Or the number of $exception events in the last 3 days.

We can tally them as they come in, or make an API call to get the count. The latter is probably more accurate and fast enough in this case.

....

This is all to say: I'm not sure what common abstraction we can build to help users, other than the one that we have already built (called plugins :D).

Since nobody really asked for anything explicitly tangible here, I propose we punt :).

@Twixes Twixes removed the stale label Aug 26, 2021
@posthog-bot
Copy link
Contributor

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

@posthog-bot
Copy link
Contributor

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.

@posthog-bot posthog-bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2023
@github-project-automation github-project-automation bot moved this to Done This Sprint in Extensibility Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concept Ideas that need some shaping up still enhancement New feature or request stale
Projects
Status: Done This Sprint
Development

No branches or pull requests

4 participants