Send identities and events to Segment
Overview
Send the people, companies and events from your Khony processes to Segment. The connection uses an HTTP API source: you choose what to send through the Identify, Group and Track actions.
A stable identity ties each event to the right person. The attributes and properties you provide travel with the request; Segment handles their processing and delivery to your destinations.
Three actions for three different kinds of information
Identify the people involved
Send an identity and its attributes with Identify so events can be associated with the right person.
Add company context
Use Group to associate a person with a company and send the group attributes you choose.
Send the events you need
Track sends named events and their properties to your Segment HTTP source. You choose which data to send.
In practice
You want to send an action to Segment with the identity of the person involved. Use their stable identifier, give the event a clear name and keep the same message identifier if that event needs sending again.
Connect a Segment source
Prepare an HTTP API source, its Write Key and its region: United States or European Union.
Prepare an HTTP API source
Create or choose an HTTP API source in Segment and obtain its Write Key. Use a source whose destinations and collection rules match your purpose.
Choose the correct region
Open Segment in Khony and enter the Write Key and the source region: United States or European Union. A key and region that do not match do not make a valid connection.
Check a deliberate event
Send an action that belongs in your process, with a stable person identifier and message identifier. Then check in Segment that the source received and processed the expected event.
What each delivery contains
Call | Data sent |
|---|---|
Identify | A user or anonymous identifier, with the supplied attributes. |
Group | The relevant identity, company identifier and group attributes. |
Track | The relevant identity, event name and its properties. |
An accepted delivery still needs checking
Segment can accept an HTTP request and reject the event during processing. A positive response alone does not prove that the event is available in every destination.
The connection check does not send a fake measurement event. The Write Key is stored encrypted. This server connection does not replace the consent choices that apply to collection on your website.
If the event does not appear
Check the source, its region and the event’s processing status in Segment. Also check the supplied identity and any rules that may filter properties or destinations.
When retrying the same delivery, reuse its message identifier. An event that is actually new needs a new identifier.