Emarsys
SAP Emarsys is an omnichannel customer engagement platform for email, SMS, push, web, and direct mail with AI-driven personalisation.
This integration is currently in alpha. Configuration and behaviour may change.
Prerequisites
Complete these steps in Emarsys before configuring Signal.
Access your Emarsys account
Log in to the Emarsys Suite at suite.emarsys.com.
Create API credentials
Navigate to Admin > Security Settings > API Users. Click Create API User and configure:
- Give it a username (e.g.
datafly_signal). - Generate a password — store it securely.
- Assign the Contact Management and External Events permissions at minimum.
- Save.
Both the username (Wsse-Username) and password (used to compute Wsse-PasswordDigest) are required by Signal — the Wsse digest is computed automatically for each request.
Find your Customer ID
Your Emarsys Customer ID is shown in Admin > Account Settings. Copy it.
Identify your Contact Field IDs
Emarsys identifies contact fields by numeric IDs (not names). Common IDs:
| Field | Standard ID |
|---|---|
3 | |
| First name | 1 |
| Last name | 2 |
| Customer ID (external) | 1234 (custom field — varies) |
Navigate to Admin > Field Editor to confirm the IDs for your account.
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
api_username | string | Yes | Emarsys API username (Wsse-Username). |
api_password | secret | Yes | Emarsys API password (used in Wsse-PasswordDigest computation). |
customer_id | string | Yes | Your Emarsys customer ID. |
key_field_id | string | No | Numeric field ID used as the contact key. Defaults to 3 (email). |
Signal Setup
Quick Setup
- Navigate to Integrations in the sidebar.
- Open the Integration Library tab.
- Find Emarsys under the Marketing Automation category.
- Click Install, and fill in the required fields with the credentials gathered above.
- Click Install Integration.
API Setup
curl -X POST http://localhost:8084/v1/admin/integration-catalog/emarsys/install \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Emarsys",
"variant": "default",
"config": {
"api_username": "datafly_signal",
"api_password": "xxxxxxxxxxxxxxxxxxxx",
"customer_id": "12345",
"key_field_id": "3"
},
"delivery_mode": "server_side"
}'Event Mapping
| Datafly Event | Emarsys Concept | Notes |
|---|---|---|
page | External event | Sent via Trigger External Event API. |
Product Viewed | External event | Forwarded with product properties. |
Order Completed | External event with revenue | Mapped to a revenue-bearing external event. |
identify | Contact update | Creates or updates the contact via Contact API. |
Identity
| Field | Source | Notes |
|---|---|---|
key_field (email by default) | traits.email | The contact key. Field ID 3 by default. |
firstName | traits.first_name | Maps to Emarsys field 1. |
lastName | traits.last_name | Maps to Emarsys field 2. |
Consent
Emarsys events should be sent under the marketing consent category. Emarsys maintains its own opt-in/opt-out records — Signal forwards the visitor’s CMP consent state so contact updates can include opt-in field changes when appropriate.
Verify it’s working
- Trigger a test event from your website.
- In Emarsys, navigate to Contacts > Search and look up the test contact by email.
- View the contact’s External Events history to confirm Signal-delivered events.
- In Signal, check Live Events to confirm delivery with a
200response status.
Troubleshooting
| Symptom | Possible Cause | Resolution |
|---|---|---|
401 Unauthorized | Invalid Wsse credentials | Verify the API username and password in Admin > Security Settings > API Users. |
500 InvalidKeyField | key_field_id doesn’t match Emarsys schema | Check the field ID in Admin > Field Editor and update the config. |
| Contact not created | Missing required fields | Ensure events include an email (or the field you configured as key_field_id). |
| External event not triggering automation | Event name not registered | External event names must be pre-registered in Emarsys before they can trigger automations. |
Visit Emarsys API documentation for full reference.
See also
- Marketo — B2B marketing automation
- Salesforce Marketing Cloud — enterprise marketing alternative
- Klaviyo — ecommerce marketing alternative