What this is
The Emarsys real-time integration sends data out of Zeotap CDP to Emarsys: as a customer passes through a Journeys workflow, Zeotap CDP triggers an external event in your Emarsys account, and an Emarsys interaction program acts on it immediately. Emarsys is a marketing automation platform for building personalised marketing campaigns. Because the events arrive as they happen rather than on a batch schedule, you can react while the customer is still in the moment. For example, you can target customers who abandon their cart: Zeotap CDP records the abandonment in Emarsys as it occurs, and the interaction program sends an immediate follow-up message with an incentive to complete the purchase.Sending data the other way, or in batches?
- To pull email campaign response data and contacts into Zeotap CDP, see the Emarsys source.
- To push audiences to Emarsys contact lists on a batch schedule rather than per event, see the Emarsys destination.
Supported identifiers and actions
The Key ID identifies your contacts in Emarsys. It is the Field ID of your main identifier in your Emarsys account — for example, the Field ID for email is3. To use a custom identifier instead, create a custom field in Emarsys and use its Field ID as the Key ID. See Find the field ID (key ID) in Emarsys.
Under Choose your Action on the destination form you can pick:
The following Emarsys fields are available in the mapping:
You can also map custom fields: give the destination field any name you like, and the attribute appears in Emarsys under that name.
Prerequisites
Before you configure anything in Zeotap CDP, you need:- An Emarsys account with access to Management > Data Management > External Event, Management > Data Management > Field Editor and Management > Account Management > Security Settings.
- The Interactions Program add-on in Emarsys. The integration triggers an interaction program, so the add-on has to be in place on your Emarsys account.
- Contacts already in Emarsys. The contact information of the customers you target must exist in Emarsys under Contacts. Without it the external event cannot be triggered and the automation program fails. Learn more
- A workflow in Journeys to send the data from. See Create a workflow.
1. Create an external event and copy the event ID
2. Create an interaction program using the event ID
3. Find the field ID (key ID)
4. Create API credentials
Set up Emarsys
Create an external event in Emarsys
External events are triggers that let you respond to custom API events performed by your customers, such as Cart Abandoned, Order Confirmation or Subscription Renewal. When a customer performs an action that matches one of these events, the external event triggers a response from the interaction program you configure around it.1
Log into your Emarsys account and navigate to Management > Data Management > External Event.

2
Click Create External Event.

3
Enter a Name for the external event and click Create. Use the same name for the external event as the Workflow Title you give the Journeys workflow — it makes the two easier to match up later.

4
The event now appears in the External Events list. Copy its External Event ID. You need it when you create the interaction program in the next step, and again when you link the destination to a workflow in Zeotap CDP.

Create an interaction program in Emarsys
Interaction programs in Emarsys are real-time responses to customer events and actions. They drive automated journeys that adapt to customer activity, so you can send timely, relevant and personalised messages — for example, delivery status updates such as “Delivery Successful” or “Your Order Has Been Shipped”, or a free-shipping Web Channel campaign for contacts who have viewed product pages repeatedly without adding anything to their cart.Note:Procure the Interactions Program add-on in Emarsys to use this integration.
1
Log into your Emarsys account and navigate to Automation > Automation Programs.

2
On the Automation Programs screen, click Create Program.

3
Click Event-based journeys, then External Event.

4
Double-click the External Event trigger node. This is the entry point for your journey in Emarsys.

5
In the External Event dialog:
- Under Trigger Event, choose the external event you created. Its External Event ID is shown below the drop-down.
- Trigger event timeout is set to Disable timeout by default. Change it to Set a custom trigger event timeout if you need one. Learn more
- Click Done.

Note:The contact information of your target customers must already exist in Emarsys under Contacts. Without it the external event cannot be triggered and the automation program fails. Learn more
6
Build out the rest of the automation program for your use case. In the example below, the cart-abandonment external event acts as the trigger and passes the details of customers who abandoned their cart to a Send SMS node, which sends the follow-up message. Create the SMS campaign before you use it in the automation program.
You can combine the action nodes and channel nodes available in Emarsys in the same way, and use attribute-level information in your campaigns — tracking the customer’s first name, for instance, lets you personalise the message with it.

Note:You can create and update contact lists as part of your automation program, but doing so adds a delay to your real-time journeys.
Find the field ID (key ID) in Emarsys
The Field ID in Emarsys is the unique identifier of a contact data field, and it is what keeps data mapping and synchronisation between Emarsys and Zeotap CDP accurate. You enter the Field ID of your main identifier as the Key ID when you create the destination — for example, the Field ID for email is3.
Emarsys accounts include roughly 50 standard fields for contact data, known as system fields. You can also create custom fields of your own.
Note:To use a custom ID, create a custom field in Emarsys and use its Field ID when you create the destination in Zeotap CDP. The custom ID must be activated by the Emarsys support team.

1
Log into your Emarsys account and navigate to Management > Data Management > Field Editor.

2
To add an identifier of your own, click Create Field.

3
On the Field Generator screen, enter a Name and a String ID for your identifier, choose its Type, and click Create. Learn more

4
The identifier appears in the Field Editor list. Copy the Field ID of your main identifier and use it as the Key ID when you create the destination.

Create API credentials in Emarsys
The User name (API ID) and Secret authenticate the calls Zeotap CDP makes to Emarsys.1
Log into your Emarsys account and navigate to Management > Account Management > Security Settings > API Credentials.

2
Under API Credentials, click Create API Credentials.

3
Choose your API authentication method. Zeotap CDP currently supports WSSE (Deprecated) only; support for Open ID Connect is planned. Selecting WSSE — Web Services Security Extensions — creates API credentials that use WSSE authentication over SSL, which adds a custom 
X-WSSE header to each request. Learn more
4
Enter the Password for your Emarsys account to complete the credential creation.
5
The ID (the User name in Zeotap CDP) and Client Secret now appear under API Credentials. Copy them both before you go anywhere else — the secret is only available while you stay on this page, and you cannot copy it after navigating away.

6
Scroll down to Permissions and enable the following for the credential:
.png?fit=max&auto=format&n=vzDgpNKaht27Bxzv&q=85&s=7af10a8163c4a7005333d49764811bdc)
_(1).png?fit=max&auto=format&n=vzDgpNKaht27Bxzv&q=85&s=051956b8805f1b540b37163689a96fa6)
- Under contact — contact.update and contact.create. Also enable contact.delete if you want to use the Delete Contacts from Emarsys action.

- Under contactlist — contactlist.contact.add, contactlist.contact.delete and contactlist.create.
.png?fit=max&auto=format&n=vzDgpNKaht27Bxzv&q=85&s=7af10a8163c4a7005333d49764811bdc)
- Under externalevent — externalevent.create and externalevent.trigger.
_(1).png?fit=max&auto=format&n=vzDgpNKaht27Bxzv&q=85&s=051956b8805f1b540b37163689a96fa6)
Create the Emarsys destination
With the Emarsys values in hand, create the destination from inside a Journeys workflow. Build the workflow first, applying whatever filters and conditions select the customers you want — see Create a workflow.1
In the workflow, click + at the node level and choose Send to Destinations.

2
Go to Integrate > Destinations, click + Create Destination, then search for and click Emarsys.
3
On the Enter Destination Details step, fill in:
- Destination Name — a name for the destination.
- User Name — the name of the Emarsys account Zeotap sends data to. See Create API credentials in Emarsys.
- Secret Key — the secret from the same Emarsys API credential.
- Key Id — the Field ID of your main identifier. See Find the field ID (key ID) in Emarsys.

4
On the Mapping step, choose one action under Choose your Action and map the fields beneath it.


- Send triggered event (Journeys) sends the data from the workflow to Emarsys. Under Map the Fields, pair each Catalogue field on the left with the Emarsys destination field on the right.

- Create or Update Contacts creates or updates contacts in Emarsys from the data the workflow sends. The same Map the Fields list of identifiers and attributes appears.

- Delete Contacts from Emarsys deletes contacts matched on the Key ID you map. In the example below, Key ID
3(email in Emarsys) is mapped to an email field from the Catalogue, so contacts are deleted by the email address that moved through the journey. You can map a different Key ID instead — see the Emarsys contact system fields.

5
Click Create Destination. The destination is created and becomes available for activation in Journeys.
Link the destination to a workflow
Once the destination exists, attach it to the Send to Destinations node in your workflow.1
In the workflow, click + at the node level and choose Send to Destinations.

2
Find your destination with the search box.

3
On the Destination Details tab, the User Name, Secret Key and Key Id fields are already filled in from the destination you created. Enter the Event Id — the External Event ID from Emarsys, which is the trigger point on the Emarsys side.

4
On the Destination Settings tab, choose the action and mapping you want this node to use.

5
Click Save Destination. The destination is attached to the node.

6
Click Add Destinations. You can attach more than one destination to the same node.

7
The linked destinations now appear in the Send to Destinations node. Carry on building the workflow from the + control, and enter a name for the workflow in the text box so it can be saved.
8
When the conditions and filters are in place, either click Save Draft to come back and edit the workflow before publishing, or Next: Define Re-entry Criteria to set whether a customer can re-enter the same workflow. See Add re-entry criteria.

9
Click Publish Workflow. The workflow appears on the workflow listing screen with a Published status.
Verify the integration
- Check the node metrics. Metrics are available for every published workflow and show how many users passed through each node over the last 7 days, so you can confirm traffic is reaching the Send to Destinations node. See Understand metrics. For the total number of users the workflow sent out, use the ACTIVATED USERS column on the listing screen.
- Trace a single customer. Journey Traces shows the output event sent to each destination node for an individual user, which is the quickest way to confirm the payload Emarsys received. See Journey traces.
- Check Emarsys. On Automation > Automation Programs, the program’s Status, Entry and Entry Configuration confirm that it is active and that it is driven by the external event you created.
Troubleshoot the integration
- The automation program never runs. The contacts you are targeting must already exist in Emarsys under Contacts. If a contact is missing, the external event cannot be triggered and the automation program fails.
- The event ID is missing on the node. The Event Id is not carried over from the destination — you enter it on the Destination Details tab each time you link the destination to a workflow node. Use the External Event ID from Emarsys.
- A custom identifier is not accepted. Create the matching custom field in Emarsys first, and have the custom ID activated by the Emarsys support team.
- You did not copy the secret in time. The secret is only shown while you stay on the Emarsys API Credentials page and cannot be retrieved afterwards — create a new API credential and update the destination with it.
- Contacts are not created, updated or deleted. Check the permissions on the Emarsys API credential: contact.create and contact.update for Create or Update Contacts, contact.delete for Delete Contacts from Emarsys, and externalevent.create and externalevent.trigger for the triggered event.
- Opt-in values are rejected. The acceptable values for the Opt-in field are
Yes/NoorTrue/False. - The workflow reports execution errors. Start from the failed node — see Identify journey errors, Journey error codes and Troubleshooting workflows.