Identify specific visitors
When a visitor comes to your site, Sendinblue Tracker will automatically cookie them.
Matching this cookie with an email address can be done in 2 ways:
- By passing the email address to any method. To do so you've to identify your visitors through the tracking snippet
- By calling the sendinblue.identify() function
The email address of a visitor is passed back automatically to Sendinblue only if this vistor have been identified as someone who has โopt-inโ. This can be either:
They have the ability to log in and have accepted to receive emails in some way
They have previously received a transactional email and are sent back to your website via a link in that email
We will go over the 2 methods outlined above.
Identify a visitor through the tracking snippet
You can easily identify specific visitors by uncommenting this line // window.sib.email_id = '[email protected]โ;
in the tracking snippet and replace '[email protected]โ
by the variable by which you can identify the contact.

Identify a visitor through the sendinblue.identify() function
The sendinblue.identify() method is used to identify the users who visited your website.
A common use case is to add all contacts identified on your website to a list on Sendinblue using an Automation workflow.
sendinblue.identify(
email_address,/*mandatory*/
properties /*optional*/
);
email_address
is a variable string that should have the visitor's email as a value.properties
is a JSON object that describes the state of the visitor such as their email, age, gender, and location.
Properties and Contacts attributes
There is some similarity between Contacts attributes and the information you can pass onto the
properties
object. Indeed:
The Contacts attributes that correspond to Properties will be updated each time the sendinblue.identify() method is called.
properties
that don't correspond to existing Contacts attributes can be used only in the Automation app unless you add them as attributes from your Contacts section or via Sendinblue API.
Example
The following call will:
- Update (or create) the contact with the
email
"[email protected]",first name
"Thomas" and thelast name
"Bianchi" - Create three properties (
id
,plan
,location
) that can be used only in Automation workflows unless you add them as contact attributes from your Contacts section or via Sendinblue API.
var email = '[email protected]'
var properties = {
'FIRSTNAME': 'Thomas',
'LASTNAME' : 'Bianchi',
'id': '10001',
'plan' : 'diamond',
'location' : 'San Francisco'
}
sendinblue.identify(email, properties)
Updated 7 months ago