Sample code
// identify the current visitor by email
Txt.identify('[email protected]')

The identify function identifies a visitor in the Unless system.

Txt.identify(email, data, identifier)

The arguments for the identify function are as follows:

Argument

Type

Description

email

string

Identify a visitor by email address. Use this for example when a visitor logs into your system. The email will be used to integrate Unless enriched data to other systems.

data

object
optional

Store additional traits to the visitor, see the updateProfile function for a description of the data format.

identifier

string

Optionally, use your own unique identifier to associate with our records.