This is the code of PostHog's integration with Segment.
While more constrained than our own libraries, it allows you to send events to all your destinations with just one Segment library call.
Available in the Segment Catalog: https://segment.com/integrations/posthog/.
We're here to help you with anything PostHog!
See Segment Spec for the source of the test data. Once changes are reviewed and merged, ping Tim who can contact Segment for the update.