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.

Back to Catalog
Toolsposthog

Block Preview

PostHog

Open-source product analytics, session recording, feature flags, and A/B testing.

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the posthog block with monitoring enabled in production.

Inputs (UI)

PostHog API Key

short-input

Placeholder: Enter your PostHog personal API key

Layout: full

Project API Key

short-input

Placeholder: Enter your PostHog project API key

Layout: full

PostHog Host URL

short-input

Placeholder: https://app.posthog.com (or your self-hosted URL)

Layout: full

Operation

dropdown

Layout: full

Options: Capture Event, Identify User, Get Feature Flag, List Feature Flags

Distinct ID

short-input

Placeholder: user123

Layout: full

Condition: operation = ["capture_event","identify_user","get_feature_flag"]

Event Name

short-input

Placeholder: button_clicked

Layout: full

Condition: operation = "capture_event"

Properties (JSON)

code

Placeholder: {"button": "submit", "$set": {"email": "user@example.com"}}

Layout: full

Condition: operation = ["capture_event","identify_user"]

Feature Flag Key

short-input

Placeholder: new-feature-enabled

Layout: full

Condition: operation = ["get_feature_flag","create_feature_flag"]

Flag Name

short-input

Placeholder: New Feature

Layout: full

Condition: operation = "create_feature_flag"

Rollout Percentage

short-input

Placeholder: 100

Layout: half

Condition: operation = "create_feature_flag"

Inputs (API)

credential

string

Required

projectApiKey

string

Optional

host

string

Optional

operation

string

Required

distinctId

string

Optional

event

string

Optional

properties

json

Optional

featureFlagKey

string

Optional

flagName

string

Optional

rolloutPercentage

number

Optional

Outputs

Primary response type:

{
  "data": "json"
}

Tool Access

posthog_api
PostHog | NowFlow Blocks