User login event
The user login event (user:login) must be sent when a user logs in to the system. This event is used in linking a real user ID to a uuid to help in more advanced user personalization use cases, such as cross-device personalization.
The following table lists the properties of the user login event:
|
Name |
Type |
Description |
Value |
|---|---|---|---|
|
|
string |
Required. Type of the event. |
|
|
|
string |
Required. Name of the event. |
|
|
|
object |
Required. User object that contains permanent user information. Used to build a user profile and map a temporary ID ( |
n/a |
|
|
object |
Required if the site is set up with locale configuration. Adds page-specific information (including locale information) under page object. |
n/a |
|
|
object |
Optional. User object. |
n/a |
|
|
object |
Optional. Additional user attributes, such as gender, preference, store code, and so on, that helps in personalization. This could include membership type, loyalty program ID, user profession, and so on. |
n/a |
|
|
object |
Optional. Physical address of the user. Used to derive location affinity. |
n/a |
Sample event specification
The following is an example of a user login event object. This example is in the new format, which means it contains a context object.