Integrate PostHog

PostHog provides multiple integrations to send events from your apps and use the API of your PostHog instance.

We have put a significant effort into providing as many of these integrations as possible, in order to make your experience better.

Our goal is for users to be able to integrate PostHog with their language, framework or platform of choosing, without having to adapt their stack.

Libraries

Refer to the table below for an overview of the functionality in each of our libraries.

Client Libraries

Some features such as session recording are only available with our JavaScript library.

We're working to add support for feature flags and autocapture to as many libraries as possible. Please check out the individual library repositories for status on this and let us know if you think we should prioritize support for any specific library.

LibraryMaintainerEvent CaptureUser IdentificationAutocaptureSession RecordingFeature Flags
JavaScriptPostHog Team
AndroidPostHog Team
iOSPostHog Team
FlutterPostHog Team
React NativePostHog Team

Server Libraries

Note: Session recording is not possible on server-side libraries.

LibraryMaintainerEvent CaptureUser IdentificationFeature Flags
NodeJSPostHog Team
PythonPostHog Team
PHPPostHog Team
RubyPostHog Team
GolangPostHog Team
ElixirCommunity
NimCommunity

Library Activity Stats

LibraryStarsOpen IssuesOpen PRsLast Commit Date

Integrations

IntegrationDescriptionMaintainerSends data to PostHog?Pulls data from PostHog?
SentryA two-way integration to get PostHog user data into Sentry and Sentry exceptions into PostHog.PostHog Team
SegmentIntegration to use PostHog as a destination in Segment.PostHog Team
RudderStackIntegration to use PostHog as a destination in RudderStack.RudderStack Team
SlackPostHog webhooks to receive messages in Slack when an action happens.PostHog Team
Microsoft TeamsPostHog webhooks to receive messages in Microsoft Teams when an action happens.PostHog Team
GatsbyA wrapper over posthog-js provided as a Gatsby plugin.Community
DocusaurusA wrapper over posthog-js provided as a Docusaurus plugin.Community
ZapierUse PostHog triggers in Zapier workflows.PostHog Team
n8nUse PostHog triggers in n8n workflows.n8n Team

Plugins

Visit our plugins section for more information.



Was this page helpful?