Skip to content

Add official PostHog plugin#511

Open
fercgomes wants to merge 1 commit intoDavidWells:masterfrom
fercgomes:feat/support-posthog
Open

Add official PostHog plugin#511
fercgomes wants to merge 1 commit intoDavidWells:masterfrom
fercgomes:feat/support-posthog

Conversation

@fercgomes
Copy link

Adds @analytics/posthog as an official in-repo plugin with browser and Node.js support.

What's included

  • Browser: Loads PostHog via the official JS snippet, maps page, track, identify, and reset to PostHog's
    API. Exposes PostHog-specific features (feature flags, group analytics, privacy controls) as custom methods.
  • Node.js: Uses posthog-node SDK with capture, identify, groupIdentify, and alias support. Includes
    flush and shutdown methods.
  • PostHog's auto-pageview (capture_pageview) is disabled by default so the analytics library owns page tracking via
    analytics.page() without duplicates.
  • Autocapture (clicks, inputs, DOM interactions) is enabled by default and works alongside the analytics library
    without conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant