Identify users
For the legacy tracker doc, check our guide here.
Identify a user through the identify() function
Use the Brevo.identify() method to identify users who visited your website. It works as follows:
- Once installed, the Brevo tracker adds a cookie for each of your visitors.
- When
Brevo.identify()is called, Brevo associates this cookie with a contact using the identifier you provide. - If
Brevo.identify()is called for a contact that already exists, Brevo updates its contact attributes based on the payload of the call.
To identify your visitor, call the Brevo.identify function like this:
Identifiers
The identifiers object tells Brevo which contact the visitor is. At least one identifier must be provided.
You can combine multiple identifiers in a single call.
Attributes
When sending attributes:
- If the contact does not exist yet, Brevo creates it with the attributes you send.
- If the contact already exists, Brevo updates it.
- If an attribute in the call does not exist in your contact database, Brevo ignores it.
Contact attributes and the data you pass in the properties object overlap.
If the contact exists in Brevo, attributes matching Properties are updated each time Brevo.identify() is called.
properties that do not correspond to existing contact attributes can only be used in your automation workflows, unless you add them as attributes from your Contacts section or via the Brevo API.
Examples
Identify by email
Identify by external ID (no email required)
Identify by phone number
Combine multiple identifiers
The legacy string form Brevo.identify('email@example.com') continues to work and is equivalent to passing identifiers: { email_id: 'email@example.com' }.