Browser SDK
alias
Migrate events from one known ID to another known ID.
Signature#
newKnownId: canonical known user ID.oldKnownId: previous known user ID.options: optional context, timestamp, integrations, or message ID.callback: optional dispatch callback.
Backend behavior#
Ferno reassigns all previous events associated with the old known ID to the new known ID. Alias is an identity migration or merge operation.
Use it for duplicate customer-record merges, legacy-to-canonical ID migration, account-model consolidation, database imports, or identity repair.
Do not use after authentication#
Do not call alias after routine login. Call identify instead. If users switch accounts on one browser, reset the previous browser identity as appropriate, then identify the newly authenticated account. Alias would incorrectly merge separate accounts.