Skip to content

PostHogIntegrationOptions

Configuration for createPostHogIntegration.

optional filter?: string[]

When provided, only events whose type matches one of these strings are forwarded to PostHog. Use e.g. the control-plane event types to forward only semantic control-plane events. All others are silently dropped.

PostHogAnalyticsProviderOptions.filter


optional mirrorNavigation?: boolean

Mirror page_view events to a native PostHog $pageview. Default false.


optional name?: string

Human-readable consumer name shown in diagnostics.

'posthog'

PostHogAnalyticsProviderOptions.name


posthog: PostHogLike

The PostHog client instance (posthog-js or posthog-node).

PostHogAnalyticsProviderOptions.posthog


optional syncAccountGroup?: boolean

Mirror the account_id trait to a PostHog group (group('account', id)) when it changes. Default false.


optional syncIdentity?: boolean

Mirror RevTurbine identify / logout to posthog.identify / posthog.reset. The distinct id is RevTurbine’s already-redacted (hashed) user id — never a raw email. Default false.


optional transform?: AnalyticsEventTransformer

Optional transform applied before capture (rename / enrich / drop).

PostHogAnalyticsProviderOptions.transform