Skip to content

PostHogAnalyticsProviderOptions

Configuration for createPostHogAnalyticsProvider.

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.


optional name?: string

Human-readable consumer name shown in diagnostics.

'posthog'

posthog: PostHogLike

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


optional transform?: AnalyticsEventTransformer

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