Consent
Set a customer's consent for receiving marketing communication.
We are no longer updating this site. For user documentation, please go to User Docs. For developer documentation, please go to Developer Docs. If you have any questions or feedback, please submit a ticket.
Customers with identifier values that are opted-out will not receive marketing messages from Zaius to that identifier. Only transactional messages will be received by these customers.
Field | Value |
consent (optional) | Boolean; defaults to true |
identifier_field_name (optional) | defaults to 'email' |
identifier_value (optional) | string |
update_reason (optional) | string |
update_ts (optional) | timestamp; defaults to current time |
event_data (optional) | object holding additional event fields |
zaius.consent({
consent: true,
identifier_field_name: 'email',
identifier_value: '[email protected]',
update_reason: '',
update_ts: 123456789,
event_data: {}
});
Zaius generates events automatically for the purposes of analytics and auditing. The events are structured as follows:
Event Type | Event Action |
consent | opt-in |
consent | opt-out |
Last modified 10mo ago