Skip to main content

PostHog

Server Source code Package

Server-side event delivery to PostHog for product analytics, identity resolution, group analytics, and feature flags via the official posthog-node SDK.

Where This Fits

PostHog is a server destination in the walkerOS flow:

Sends events server-side to PostHog's ingestion API, translating walkerOS events into capture, identify, and groupIdentify calls with full control over identity and group resolution.

Installation

Loading...

Setup

Loading...

Configuration reference

PropertyTypeDescriptionMore
apiKey*stringPostHog project API key (starts with "phc_"). Find it in PostHog project settings.
hoststringPostHog API host. Defaults to https://us.i.posthog.com. Use https://eu.i.posthog.com for EU or your self-hosted URL.
flushAtnumberNumber of events queued before auto-flush. Default: 20.
flushIntervalnumberMilliseconds between periodic flushes. Default: 10000.
personalApiKeystringPersonal API key (phx_...) for local feature flag evaluation.
featureFlagsPollingIntervalnumberMilliseconds between feature flag definition polls. Default: 30000.
disableGeoipbooleanDisable GeoIP lookups globally. Useful for GDPR compliance.
debugbooleanEnable PostHog SDK debug logging. Default: false.
identifyanywalkerOS mapping value resolving to an identity object. Keys: distinctId, $set, $set_once. Resolved on every push (server is stateless).
groupanywalkerOS mapping value resolving to a group object. Keys: type, key, properties. Resolved on every push.
includeArray<string>Event sections to flatten into capture() properties (e.g. ["data", "globals"]).
* Required fields

Docker Deployment

Step 1: Create Flow Configuration

Use the $env.NAME syntax in your flow configuration to reference environment variables at runtime:

Loading...

Step 2: Bundle the Flow

Bundle your flow configuration before running in Docker:

Loading...

Step 3: Run with Docker

Loading...

Docker Compose Example

Loading...
Security Best Practice

Never commit API keys to version control. Use environment variables or a secrets manager to inject credentials at runtime.

💡 Need implementation support?
elbwalker offers hands-on support: setup review, measurement planning, destination mapping, and live troubleshooting. Book a 2-hour session (€399)