User

Visitors are anonymously tracked using session ids throughout your site. But when visitors identify themselves at login, signup or checkout, you may pair a session id with a user to identify the entire chain of events one user has carried out over time.

/* Identify a user */
zlt.track('user', {
    'user_id':'[email protected]',
    'email':'[email protected]',
    'first_name':'John',
    'last_name':'Doe'
});

The user_id should be a unique identifier. It can be an email address or any other identifier of choice.

Last updated