Find it on GitHub: /edgee-cloud/posthog-component

PostHog is the only all-in-one platform for product analytics, feature flags, session replays, experiments, and surveys that’s built for developers. This components lets you collect and forward analytics events to your PostHog instance.

Event Mapping

Here’s how Edgee events map to PostHog events:

Edgee EventPostHog EventDescription
Page$pageviewpageview event with url as property
TrackYour event nameA event with your custom event name
User$identifySets all the data for the user

Getting Started

To integrate PostHog into your Edgee project:

  1. Open the Edgee console and navigate to your project’s Data Collection service.
  2. Select “Add Component” and choose “PostHog” from the list of available components.
  3. Enter your PostHog Region, API Key and click Save.
  4. Once the component has been configured, you are ready to send analysis events to PostHog.

Component Name

When configuring the component in your Edgee Data Layer or within SDK calls, use edgee/posthog as the component name:

{
  "components": {
    "edgee/posthog": true
  }
}