PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.35k stars 1.13k forks source link

feat: Added clearbit example #23312

Open benjackwhite opened 4 days ago

benjackwhite commented 4 days ago

Problem

Wouldn't it be cool if we could use Hog to do extra stuff and create new events? Like Clearbit - check incoming events and enrich with person info...

Obviously there are all sorts of other concerns here in terms of infinite feedback event loops etc. but given that people could do this via a fetch call, we should probably have native functionality to do this efficiently with railguards as we see fit.

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?