trackUserLoginEvent

trackUserLoginEvent

This function triggers an event that is dispatched when the visitor logs in to your website.

NameTypeDescription
userUserModelRequired.

Describes the visitor.

UserModel

Payload dispatched in the event triggered by the trackUserLoginEvent function. The id and email in the model is assigned to the event's context object value.context.user.cuid and value.context.user.email fields.

NameTypeDescription
idstringUUID associated with the visitor. The value can be obtained from the cookie added by the SDK.
emailstringThe email address used to log in.
Note

Provide the value for at least one of the UserModel properties.

If you have suggestions for improving this article, let us know!