Blocks
PostHog
Open-source product analytics, session recording, feature flags, and A/B testing.
Integrate with PostHog for comprehensive product analytics including user behavior tracking, session recordings, feature flags, A/B experiments, and surveys. PostHog is an all-in-one, open-source platform that helps you build better products by providing deep insights into user behavior, with self-hosted or cloud options.
Block Preview
PostHog
Open-source product analytics, session recording, feature flags, and A/B testing.
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the posthog block with monitoring enabled in production.
Inputs (UI)
PostHog API Key
short-inputPlaceholder: Enter your PostHog personal API key
Layout: full
Project API Key
short-inputPlaceholder: Enter your PostHog project API key
Layout: full
PostHog Host URL
short-inputPlaceholder: https://app.posthog.com (or your self-hosted URL)
Layout: full
Operation
dropdownLayout: full
Options: Capture Event, Identify User, Get Feature Flag, List Feature Flags
Distinct ID
short-inputPlaceholder: user123
Layout: full
Condition: operation = ["capture_event","identify_user","get_feature_flag"]
Event Name
short-inputPlaceholder: button_clicked
Layout: full
Condition: operation = "capture_event"
Properties (JSON)
codePlaceholder: {"button": "submit", "$set": {"email": "user@example.com"}}
Layout: full
Condition: operation = ["capture_event","identify_user"]
Feature Flag Key
short-inputPlaceholder: new-feature-enabled
Layout: full
Condition: operation = ["get_feature_flag","create_feature_flag"]
Flag Name
short-inputPlaceholder: New Feature
Layout: full
Condition: operation = "create_feature_flag"
Rollout Percentage
short-inputPlaceholder: 100
Layout: half
Condition: operation = "create_feature_flag"
Inputs (API)
credential
stringRequired
projectApiKey
stringOptional
host
stringOptional
operation
stringRequired
distinctId
stringOptional
event
stringOptional
properties
jsonOptional
featureFlagKey
stringOptional
flagName
stringOptional
rolloutPercentage
numberOptional
Outputs
Primary response type:
{
"data": "json"
}