Utilize our official Segment integration to manage contacts and send email.
traits
object.
For this example, we’ll be using this test event:
favoriteColor
and favoriteNumber
.
You can pass contact properties as a dictionary in the Custom Contact Attributes field.
true
will re-subscribe contacts who had previously unsubscribed, and setting it to false
will unsubscribe contacts from receiving email. Leaving it deselected will default new users as subscribed to email and not update the email preference for existing contacts.
mailingLists
object to traits
in your test event with list IDs as keys and true
(to subscribe) or false
(to unsubscribe) as values.
traits.mailingLists
from the Event Variables options.
properties
object to send all data from the track call. Or if you click Edit Object you can select individual properties. Make sure to enter the correct contact property name from Loops in the Enter key name field.
identify()
event. Add contact properties (including any custom properties) in the traits object:
mailingLists
object from traits
(read more above) add it like this:
track()
event. Data sent in the properties object will be sent as event properties to Loops. Make sure that you have added these event properties in your Events Settings in Loops before sending the event to Segment.
firstName
) by mapping values in your properties within the Contact Properties object (see above).