Node — Alias
Link an alias (e.g. anonymous ID) to a user withsignal.alias(). Use when merging anonymous and identified users (e.g. after login). Sends $create_alias.
alias(distinctId, alias, sessionId?, windowId?)
Link an alias (e.g. anonymous ID) to a user. Sends$create_alias event.
When to use: After login to merge anonymous events (from before login) with the identified user. This ensures all events are associated with the same user profile.
