PostHog
Receive PostHog analytics events — survey responses and error tracking issues — in Dispatch and route them to Discord, Slack, Telegram, or any webhook destination.
Setup
- Go to Sources in your Dispatch project and click Add Source.
- Select PostHog from the integrations grid.
- Click Connect — you'll be redirected to PostHog to authorize Dispatch.
- After authorizing, you'll return to Dispatch and see a list of your PostHog projects.
- Select the project you want to receive events from.
- Choose the event types you want:
- Survey Response — triggered when a user submits a survey
- Issue Created — triggered when a new error tracking issue is created
- Issue Re-opened — triggered when a resolved issue is seen again
- Issue Spiking — triggered when error volume spikes on an existing issue
- Click Connect. Dispatch creates the necessary webhook destinations in your PostHog project automatically.
What Dispatch Creates in PostHog
For each selected event type, Dispatch creates a Hog Function (Data Pipelines → Destinations) in your PostHog project. All Hog Functions for the same project point to the same Dispatch endpoint, so events are unified in one event stream.
You can view and manage these under Data Pipelines → Destinations in your PostHog project.
Signature Verification
Each Hog Function Dispatch creates sends the source's signing secret in its Authorization header, and Dispatch checks it on every delivery.
To rotate the secret, click Regenerate Secret in Edit Source: Dispatch updates each Hog Function for you, and the old secret keeps working for a while so deliveries keep verifying while PostHog switches (see Signing secrets on integration sources).
Disconnecting
To disconnect a PostHog project, go to Sources, click the unplug icon on the PostHog source, then click Disconnect to confirm. Dispatch tries to remove the Hog Functions it created in your PostHog project, then deletes the source (a source that still has stored events is archived instead, keeping them). If they can't be removed (for example, because the PostHog connection was revoked), the source is still removed, and you delete the leftover Hog Functions in PostHog yourself.
To remove the PostHog connection from the project, click Disconnect in the Add Source dialog after selecting PostHog, then confirm. This only removes the connection: your PostHog sources aren't deleted, their Hog Functions stay in PostHog, and Dispatch's access in PostHog isn't revoked (do that in PostHog if you need to). Disconnect the projects you no longer want first, since Dispatch needs your PostHog connection to remove their Hog Functions.
Event Types
| Event | PostHog event name | Description |
|---|---|---|
| Survey Response | survey sent | A user submitted a survey response |
| Issue Created | $error_tracking_issue_created | A new error group was first encountered |
| Issue Re-opened | $error_tracking_issue_reopened | A previously resolved error occurred again |
| Issue Spiking | $error_tracking_issue_spiking | Error volume spiking on an existing issue |