Segment is the easiest way to install Koala. If you’ve already got Segment running on your website, we recommend this approach. With Segment, you can instrument Koala easily without code.
Track
and Identify
calls that are tracked server side via one of Segment’s server side libraries.
Track
and Identify
calls containing an email
property in the properties
or traits
field of the call.
This is because Koala uses the email
property to match an existing Koala Visitor to a visitor in your App as well as your CRM.
You can configure your existing Segment server side libraries to send the email
property in the properties
or traits
field of the call.
The following code snippet illustrates how to do that with the Segment Node library.
Track
call with the existing profile_id
provenient from the Koala pixel in the properties
field of the call.
The Koala profile_id
is a unique identifier that is generated for each visitor that visits your website with the Koala pixel installed. You can access it by reading
the ko_id
cookie from the browser.
The following code snippet illustrates how to do that with the Segment Node library when handling an HTTP request.