Analytics
PostHog Webhooks
Product analytics, session replay, feature flags and surveys. The HTTP Webhook destination sends PostHog events (pageviews, identifies, survey responses, custom events) as they are ingested, filtered by your own matching rules.
Connecting PostHog to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into PostHog. Then:
- 1In PostHog, go to Data pipelines → Destinations → New destination and choose "HTTP Webhook"
- 2Paste your Hookbase ingest URL into "Webhook URL" and leave the method on POST
- 3Leave the default JSON body ({ "event": "{event}", "person": "{person}" }) so Hookbase can read the event name, or keep an "event" key in your own body
- 4Copy the signing secret Hookbase generated for this source (whsec_...) into "Signing secret", and leave "Signature format" on "Standard Webhooks"
- 5Set the filters for which events to send, then click "Test function" and save
- 6Hookbase verifies the webhook-id, webhook-timestamp and webhook-signature headers, deduplicates PostHog's retries by webhook-id, and uses the PostHog event name ($pageview, survey sent, or your custom event) as the event type
Signature verification
Set the source's provider to posthog and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- HMAC-SHA256 (Standard Webhooks spec: sign "{webhook-id}.{webhook-timestamp}.{body}", base64-encoded)
- Header
- webhook-signature
- Where to find the secret
- PostHog never generates the secret: you type it into the destination's "Signing secret" field. Hookbase generates a valid whsec_ key for you to paste there, with "Signature format" left on Standard Webhooks. Verified with the webhook-id, webhook-timestamp and webhook-signature headers.
PostHog event types
7 of the events people route most often. Hookbase accepts every event PostHog sends, whether or not it is listed here.
$pageview
A page was viewed (captured by the web SDK).
$pageleave
A user left a page.
$autocapture
A click, form submission or input change was autocaptured.
$identify
An anonymous user was identified (posthog.identify()).
$exception
An exception was captured by error tracking.
$feature_flag_called
A feature flag was evaluated for a user.
survey sent
A survey response was submitted.
What a PostHog webhook looks like
A $pageview payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"event": {
"uuid": "0193d1a2-6b7c-7e8f-9a0b-1c2d3e4f5a6b",
"event": "$pageview",
"distinct_id": "user_8f2c1d",
"properties": {
"$current_url": "https://example.com/pricing",
"$pathname": "/pricing",
"$host": "example.com",
"$browser": "Chrome",
"$os": "Mac OS X",
"$device_type": "Desktop",
"$lib": "web"
},
"timestamp": "2026-12-01T17:04:05.123Z",
"url": "https://us.posthog.com/project/12345/events/0193d1a2-6b7c-7e8f-9a0b-1c2d3e4f5a6b/2026-12-01T17:04:05.123Z"
},
"person": {
"id": "0193d1a0-1111-7a2b-8c3d-4e5f6a7b8c9d",
"name": "jane@example.com",
"url": "https://us.posthog.com/project/12345/person/user_8f2c1d",
"properties": {
"email": "jane@example.com",
"name": "Jane Doe"
}
}
}Start receiving PostHog webhooks
Create a source, paste the URL into PostHog, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free