trackUserLoginEvent

trackUserLoginEvent

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

Name

Type

Description

user

UserModel

Required.

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.

Name

Type

Description

id

string

UUID associated with the visitor. The value can be obtained from the cookie added by the SDK.

email

string

The email address used to log in.

Note

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

Do you have some feedback for us?

If you have suggestions for improving this article,