convex-posthog: PostHog Analytics Component for Convex
I just published convex-posthog - a Convex component that makes it super easy to track user events with PostHog analytics directly from your mutations!
npm:
@samhoque/convex-posthogGitHub: https://github.com/samhoque/convex-posthog
What it does
Track user events server-side from your Convex mutations without blocking your app logic. Events are scheduled as background jobs, so analytics failures won't affect your core functionality.
Quick Example
Features
-
ctx.scheduler.runAfter)-
-
-
Installation
Then install the component in your Convex app:
Would love to hear feedback or ideas for improvements! This is my first Convex component, so let me know if you find it useful or have suggestions.
