Skip to main content
When a user authenticates in your application, anonymous sessions and Actions allow you to transfer anonymous session data, such as shopping cart contents, preferences, and browsing history, to their authenticated user profile. You can reference the event.anonymous_session object in Actions:

Anonymous sessions and Actions use cases

Save anonymous session metadata to a new user

You can use a pre-user-registration Action trigger to copy anonymous metadata into the new user profile when they sign up:

Save anonymous session metadata to an existing user

You can use a post-login Action trigger to save anonymous metadata to existing users when they log in:

Merge user metadata with anonymous metadata

You can use a post-login Action trigger to merge anonymous metadata to an existing user metadata, such as a cart information, when they log in:

Handle multiple anonymous sessions

You can use a post-login Action trigger to manage anonymous session metadata from different devices, when the user logs in:

Learn more