IntegrationsCustom
Alias and identity
Stitch anonymous activity into known users and keep your event stream analyzable across signup and login boundaries.
Source of truth
server/engine/cmd/sankofa/main.gosdk/sankofa_flutter/lib/sankofa_flutter.dartIdentity stitching in Sankofa is explicit. The alias transport connects one identifier to another.
Recommended pattern
- track anonymous activity with an anonymous
distinct_id - create the account or authenticate the user
- send an alias item from the old ID to the new ID
- send future events with the new
distinct_id
Example
{
"alias_id": "anon_6b87f2",
"distinct_id": "user_123"
}
Flutter behavior
The official Flutter SDK does this automatically when identify(userId) changes
the active identity from the anonymous ID to the new user ID.
People profiles and aliases are different
aliasconnects identitiespeopleupdates profile factstrackrecords timeline events