Posthog
3 min
getting started with the posthog webhook integration the posthog webhook integration lets you send events , people , and company (group) data from posthog directly into custify this guide covers the essentials to help you get started quickly what the integration does once connected to posthog, custify will import events receives your custom posthog events maps distinct id to the customer in custify attaches all event properties automatically ignores posthog’s high volume autocapture and system events (such as $pageview, $autocapture, $rageclick) sync people creates or updates customers from posthog person data maps email, name, and other default fields links people to companies when group data exists sync companies (groups) converts selected posthog group types (such as company , organization ) into custify companies syncs all group properties links events and people to the correct company how to activate the integration step 1 set up the webhook in posthog add a webhook in posthog that points to https //your custify domain com/webhook?posthogaccount=\<account id> if you use a secret key for authentication, include the header x custify secret \<secret key> step 2 configure your integration in custify in custify, define what should be imported people enable or disable group types choose which posthog groups should become custify companies custom event exclusions optional list of event names to ignore example configuration { "grouptypes" \["company", "organization"], "eventfilters" { "excludedevents" \["your custom event"] } } custify mapping events imported as event records linked to the customer linked to the first matching company group people identified by distinct id enriched with posthog person properties linked to companies (if groups are present) companies created from any enabled group types populated with posthog group properties step 3 test the integration trigger a test event in your product (for example posthog capture('signed up')) in custify, verify that the person appears under customers a company was created (if group data was sent) the event appears in the timeline
