Prerequisites
Before continuing, you should have already completed the following for this connector:Configure the Connector
Connector Profile
Link an Account
Link Account
Setting Up PostHog Webhook Destination
To receive real-time PostHog event notifications (e.g., page views, user sign-ups, feature flag evaluations), you need to configure a webhook destination in PostHog.
Copy the Native Webhook URL from StackOne
The Native Webhook URL is available on the Link Account form or by editing the linked account in the StackOne Hub.
- Copy the full URL and keep it ready for the next step
Create a Webhook Destination in PostHog
In PostHog, navigate to Data > Pipelines > Destinations > + New Destination > search HTTP Webhook > + Create.
Configure the Webhook
Configure the destination with the following settings.
- Paste the Native Webhook URL into the Webhook URL field
- Method:
POST(default) - In Headers, click + Add entry and set key
x-posthog-project-tokenwith your Project Token value (format:phc_xxxxxxxxxxxxxxxxxxxxxxxxxxxx) - Keep the default JSON Body:
{“event”: “{event}”, “person”: “{person}”}— do not modify this
Configure Event Filters
Add filters to control which events are sent. Without filters, PostHog sends all events.
- In Filters, click Add filter or Match event
- Add event names to forward:
pageview,exception, or custom events likeuser_signed_up. Check next step to create custom events in PostHog. - To send all events, leave filters empty
Custom Events
Custom events are created automatically in PostHog when first captured. You can create them using StackOne’s capture_event action or the PostHog SDK.
- Use StackOne’s
capture_eventaction to send a custom event to PostHog — the event will be auto-created on first capture - Add the exact event name to your webhook filter — names are case-sensitive (e.g.,
user_signed_upandUser_Signed_Upare treated as different events)
Save and Test
Click Create & Enable to activate. To test, use the Testing section in the destination page.
- If test shows “Destination was skipped”, this means the sample event didn’t match your filters. You can temporarily remove the applied filters to test connectivity, then re-add them.
- Check the Logs tab for
200 OKresponses
Supported Event Types
System events with dedicated handlers, plus a catch-all for custom events.
System Events
PostHog system events are prefixed with to search available system events by name.
pageleave— Page leave (web)identify— User identifiedfeature_flag_called— Feature flag evaluatedgroup— Group eventexception— Error tracked
Troubleshooting
If events are not appearing after setup, use the steps below to diagnose the issue.
Common Issues
Check the following common problems and their solutions.
- No events: Verify destination is enabled under Status widget in destination configuration page.
- 404: Native Webhook URL is incorrect — re-copy from StackOne Hub
- 401/403: Linked account may not be fully configured
- Events filtered out: Check filter list includes expected events
- Wrong payload: Reset JSON body to default
{“event”: “{event}”, “person”: “{person}“}