Skip to content

PostHogLike

Minimal shape of a PostHog client — satisfied by both posthog-js (browser) and posthog-node (server). capture is always used; the identity lifecycle methods are optional and only called by createPostHogIntegration when the matching sync flag is on. This is a structural interface — no PostHog package is imported or bundled (the client is injected).

optional group(groupType, groupKey, properties?): void

Optional — mirrors an account group when syncAccountGroup is on.

string

string

Record<string, unknown>

void


optional identify(distinctId, properties?): void

Optional — mirrors a RevTurbine identify when syncIdentity is on.

string

Record<string, unknown>

void


optional reset(): void

Optional — called when the identity is cleared (logout) under syncIdentity.

void