Messaging Lists
Subscribe and unsubscribe identifiers from messaging Lists.
Messaging Lists allow you to group customers for the purposes of tracking their communication preferences. For example, allowing customers to subscribe to your company newsletter or for holiday news.
Zaius does not require customers to be subscribed to a List to receive emails.
Single List
Multiple Lists
Including Additional Fields
1
// subscribe [email protected] to newsletter list
2
zaius.subscribe({list_id: 'newsletter', email: '[email protected]'});
Copied!
1
// unsubscribe [email protected] from newsletter list
2
zaius.unsubscribe({list_id: 'newsletter', email: '[email protected]'});
Copied!
1
// subscribe [email protected] to three lists at once
2
zaius.subscribe({
3
list_id: ["newsletter", "promotion", "product_update"],
5
});
Copied!
1
// unsubscribe [email protected] from multiple lists at once
2
zaius.unsubscribe({
3
list_id: ["newsletter", "product_update"],
5
});
Copied!
1
zaius.subscribe({
2
// subscribe Johnny to all lists
3
4
list_id: ["newsletter", "promotion", "product_update"],
5
6
7
// update Johnny's record to include his full name
8
first_name: "Johnny",
9
last_name: "Zaius",
10
11
// store information on the subscribe events
12
event_custom_field: "my custom value",
13
custom_number_field: 123
14
15
});
16
17
// zaius.unsubscribe also fully supports this syntax.
Copied!

Events

Zaius generates events automatically for the purposes of analytics and auditing. The events are structured as follows:
Event Type
Event Action
List ID
Date / Time
list
subscribe
newsletter
123456
list
unsubscribe
newsletter
123456
Last modified 2yr ago
Copy link
Contents
Events