Segment Integration
Forward your Segment events to Klime as a destination.
Overview
The Segment integration lets you forward events from your existing Segment workspace to Klime. If you already use Segment for analytics, this is the fastest way to get started with Klime since there are no code changes needed.
Segment supports track, identify, and group calls natively, which map directly to Klime's event model.
Setup
- Open the Klime destination in your Segment workspace
- Click Add destination and select your data source
- Name the destination (e.g. "Klime")
- Paste your Write Key from Settings > Integrations
- Enable the Enable Destination toggle and click Save Changes
That's it. Once saved, events from your selected source will automatically flow to Klime.
What gets forwarded
All events from the connected source are forwarded, including:
- Track events — Custom events like
Feature Used,Subscription Started, etc. - Identify events — User traits like name, email, and plan
- Group events — Company traits like name, industry, and employee count
Group identification
If you use Klime in group mode (B2B), your events need to be associated with a company. Segment handles this through group calls.
Make sure your app calls analytics.group() with the company ID. Segment is stateful: once you call group(), Segment automatically attaches the group context to all subsequent events forwarded to Klime.
analytics.group("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.