[FE&R] Sending AB Tasty events to Segment
3
Last updated
Was this helpful?
Flagship Visitor ID & Segment.io User ID
For the user matching to be achieved (and allow Flagship to target your Segment traits) the User ID sent in the Segment .identify calls must be the same value than the Flagship Visitor ID sent to the decision API.
Refer to the Segment documentation on User ID here.
This guide explains how to configure AB Tasty server-side events to be forwarded to Segment (SegmentIO).
For AB Tasty to send events to Segment, the visitor ID must be known by Segment.
This means the visitor must first be identified or tracked by Segment before AB Tasty sends events.
Example:
analytics.identify('YOUR_VISITOR_ID', {
email: "user@example.com",
name: "John Doe"
});This ensures Segment associates events with the correct user.
If Segment is already running on the website, you can retrieve the visitor identifier.
window.analytics.user().anonymousId();window.analytics.user().userId();The same visitor ID used in Segment must be used when calling the AB Tasty Decision API.
Example:
visitorId = window.analytics.user().anonymousId()Then pass it to the Decision API request.
If the visitor ID used by AB Tasty does not match the one known by Segment, the event will not be forwarded to Segment.
Last updated
Was this helpful?
Was this helpful?

