PostHog Integration
Forward your PostHog analytics to Klime.
Overview
The PostHog integration lets you forward events from PostHog to Klime. If you already use PostHog for product analytics, this is the fastest way to get started with Klime since there are no code changes needed.
PostHog handles the event transformation on their side, so your events arrive in the right format automatically.
Setup
- Open the Klime integration in PostHog
- Paste your Write Key from Settings > Integrations
- Click Create & enable
Once enabled, your PostHog events will automatically flow to Klime.
What gets forwarded
PostHog forwards your analytics events to Klime, including:
- Custom events — Any events you track in PostHog
- User identification — User properties and traits
- Group data — Company and organization information (if you use PostHog groups)
Group identification
If you use Klime in group mode (B2B), your events need to be associated with a company. PostHog handles this through group analytics.
Make sure your app calls posthog.group() with the company type and ID. PostHog is stateful: once you call group(), PostHog automatically attaches the group context to all subsequent events forwarded to Klime.
posthog.group("company", "company_123", {
name: "Your Company",
plan: "enterprise",
})Without group calls, Klime receives your events but can't attribute them to specific companies. Your dashboard will show the events are arriving but company-level metrics will be empty.
Write Key
You can find your write key in Settings > Integrations. Store it securely and avoid sharing it publicly.