---
title: "Integration: Emarsys"
description: This article will help you learn about how Daasity replicates data from Emarsys, limitations to the data we can extract and where the data is stored in the Emarsys schema.
---

[Back to home](https://support.daasity.com/migrated/knowledge)

- [ Welcome to Daasity
  
  
  
  ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity) 
    - [ Integration Setup | Connect Your Data Sources ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity#integration-setup-connect-your-data-sources)
    - [ Integration Setup | Amazon Seller Central ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity#integration-setup-amazon-seller-central)
    - [ Navigating the Daasity App ](https://support.daasity.com/migrated/knowledge/welcome-to-daasity#navigating-the-daasity-app)
- [ Daasity Platform | Business User Analytics
  
  
  
  ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics) 
    - [ Brand Supplied Data (BSD) ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#brand-supplied-data-bsd)
    - [ Dashboards ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#dashboards)
    - [ Reports ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#reports)
    - [ Explores ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#explores)
    - [ Views ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#views)
    - [ Audiences ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#audiences)
    - [ Customizations ](https://support.daasity.com/migrated/knowledge/daasity-platform-business-user-analytics#customizations)
- [ ELT+ | Technical User Documentation
  
  
  
  ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation) 
    - [ Platform ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation#platform)
    - [ Transformation ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation#transformation)
    - [ Integrations ](https://support.daasity.com/migrated/knowledge/elt-technical-user-documentation#integrations)
- [ User Manual and Support
  
  
  
  ](https://support.daasity.com/migrated/knowledge/user-manual-and-support) 
    - [ Daasity Logic and Best Practices ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#daasity-logic-and-best-practices)
    - [ Marketing Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#marketing-analytics)
    - [ Customer Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#customer-analytics)
    - [ Date Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#date-analytics)
    - [ Inventory and Returns Analytics ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#inventory-and-returns-analytics)
    - [ Submit a Support Request ](https://support.daasity.com/migrated/knowledge/user-manual-and-support#submit-a-support-request)
- [ Release Updates
  
  
  
  ](https://support.daasity.com/migrated/knowledge/release-updates) 
    - [ Release Updates ](https://support.daasity.com/migrated/knowledge/release-updates#release-updates)

# Integration: Emarsys

## This article will help you learn about how Daasity replicates data from Emarsys, limitations to the data we can extract and where the data is stored in the Emarsys schema.

### Key Topics

Click on the links below to take you to the section where you can learn more about this Integration

- [Integration Overview](https://support.daasity.com/migrated/knowledge/integration-emarsys#integration-overview)
- [Integration Availability](https://support.daasity.com/migrated/knowledge/integration-emarsys#integration-availability)
- [API Endpoints](https://support.daasity.com/migrated/knowledge/integration-emarsys#api-endpoints)
- [Open Data](https://support.daasity.com/migrated/knowledge/integration-emarsys#open-data)
- [Entity Relationship Diagram](https://support.daasity.com/migrated/knowledge/integration-emarsys#erd)
- [Emarsys Schema](https://support.daasity.com/migrated/knowledge/integration-emarsys#emarsys-schema)
- [Related Resources](https://support.daasity.com/migrated/knowledge/integration-emarsys#related-resources)

### Integration Overview

This document provides context on what kind of data is being gathered through this extractor, which endpoints that data is coming from, and how the extracted tables relate to each other.

The Daasity integration with Emarsys uses two different methods to extract data:

1. [API Integration](https://support.daasity.com/migrated/knowledge/integration-emarsys#api-endpoints) - we connect to [Emarsys APIs](https://dev.emarsys.com/docs/emarsys-api/ZG9jOjI0ODk5NzAw-overview) to pull data
2. [BigQuery Open Data Integration](https://support.daasity.com/migrated/knowledge/integration-emarsys#open-data) - we leverage our BigQuery extractor to replicate data from the [Emarsys Open Data Google Cloud](https://help.emarsys.com/hc/en-us/articles/360000162094-Overview-Open-Data-Overview) environment

### Integration Availability

This integration is available for:

- Pro (V1 and V2)

**NOTE: **You are considered V2 if...

- You are a Growth customer
- Your account says Pro V2 in the Daasity App

Not sure? Reach out to [Support@Daasity.com](mailto:Support@Daasity.com)

### API Endpoints

The Daasity Emarsys extractor is built based on this [Emarsys API documentation](https://dev.emarsys.com/docs/emarsys-api/ZG9jOjI0ODk5NzAw-overview).  The following endpoints are used by Daasity to replicate data from Emarsys:

- [Contacts](https://dev.emarsys.com/docs/emarsys-api/1390c2e1ee412-get-contact-data)
- [Contact Lists](https://dev.emarsys.com/docs/emarsys-api/cc11c11b35d14-list-contacts-in-a-contact-list)
- [Lists](https://dev.emarsys.com/docs/emarsys-api/3e746772f66ff-list-contact-lists)
- [Segments](https://dev.emarsys.com/docs/emarsys-api/7ef9537cce0ba-list-segments)
- [Segment Contacts](https://dev.emarsys.com/docs/emarsys-api/be7e56b2494c4-look-up-a-contact-in-a-segment)
- [Email Campaigns](https://dev.emarsys.com/docs/emarsys-api/c76fe054c65b5-list-email-campaigns)

### Big Query Open Data

Data is replicated from Emarsys Google Cloud environment and uses queries based on [Emarsys Open Data](https://help.emarsys.com/hc/en-us/articles/360000162094-Overview-Open-Data-Overview).  Tables that are extracted from Big Query have [bq] in the schema name to indicate the source is Emarsys Google Cloud

- BigQuery Campaigns
- BigQuery Sends
- BigQuery Opens
- BigQuery Clicks
- BigQuery Bounces
- BigQuery Cancels
- BigQuery Unsubscribes

### Entity Relationship Diagram (ERD)

The embedded diagram houses the ERD for the Daasity Emarsys integration illustrating the different tables and keys to join across tables. Hover over the embedded diagram to reveal controls to zoom and scroll.

### Emarsys Schema

The Daasity Emarsys extractor creates these tables using the endpoints and replication methods listed. The data is mapped from source API endpoint to the table based on the mapping logic outlined in each table.

- [Contacts](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-contacts)
- [Contact Lists](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-contact-list)
- [Lists](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-lists)
- [Segments](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-segments)
- [Contact Segments](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-contact-segments)
- [Email Campaigns](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-email-campaigns)
- [BigQuery Campaigns](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-bq-campaigns)
- [BigQuery Sends](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-bq-sends)
- [BigQuery Opens](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-bq-opens)
- [BigQuery Clicks](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-bq-clicks)
- [BigQuery Bounces](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-bq-bounces)
- [BigQuery Cancels](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-bq-cancels)
- [BigQuery Unsubscribes](https://support.daasity.com/migrated/knowledge/integration-emarsys#schema-bq-unsubscribes)

#### Contacts

- Endpoint: Contacts
- Update Method: UPSERT
- Table Name: emarsys.contacts

| **JSON Element** | **Database Column** |
| --- | --- |
| id | id |
| contact_id | contact_id |
| first_name | first_name |
| last_name | last_name |
| email | email |
| dob | dob |
| gender | gender |
| marital_status | marital_status |
| opt_in | opt_in |
| email_valid | email_valid |
| date_first_registration | date_first_registration |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### Contact List

- Endpoint: Contact List
- Update Method: UPSERT
- Table Name: emarsys.contact_lists

| **JSON Element** | **Database Column** |
| --- | --- |
| MD5(list_id + contact_id) | id |
| list_id | list_id |
| contact_id | contact_id |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### Lists

- Endpoint: List
- Update Method: UPSERT
- Table Name: emarsys.lists

| **JSON Element** | **Database Column** |
| --- | --- |
| id | id |
| name | name |
| type | type |
| created | created_at |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### Segments

- Endpoint: Segments
- Update Method: UPSERT
- Table Name: emarsys.segments

| **JSON Element** | **Database Column** |
| --- | --- |
| id | id |
| name | name |
| type | type |
| predefinedSegmentId | predefined_segment_id |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### Contact Segment

- Endpoint: Segment Contacts
- Update Method: UPSERT
- Table Name: emarsys.contact_segment

| **JSON Element** | **Database Column** |
| --- | --- |
| MD5(segment_id + contact_id) | id |
| segment_id | segment_id |
| contact_id | contact_id |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### Email Campaigns

- Endpoint: Email Campaigns
- Update Method: UPSERT
- Table Name: emarsys.email_campaigns

| **JSON Element** | **Database Column** |
| --- | --- |
| id | email_campaign_id |
| language | language |
| created | created |
| deleted | deleted |
| fromemail_host | fromemail_host |
| name | name |
| status | status |
| api_status | api_status |
| api_error | api_error |
| fromemail | fromemail |
| fromname | fromname |
| subject | subject |
| email_category | email_category |
| filter | filter |
| contactlist | contactlist |
| template | template |
| cc_list | cc_list |
| source | source |
| content_type | content_type |
| root_campaign_id | root_campaign_id |
| version_name | version_name |
| features | features |
| tags | tags |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |
| id | __sync_key |

#### BigQuery Campaigns

- Source: Open Data
- Update Method: UPSERT
- Table Name: emarsys.bq_campaigns

| **JSON Element/SQL Column** | **Database Column** |
| --- | --- |
| MD5(campaign_id + origin_campaign_id + bq_load_time) | id |
| campaign_id | campaign_id |
| origin_campaign_id | origin_campaign_id |
| is_recurring | is_recurring |
| name | campaign_nam |
| timezone | campaign_timezone |
| version_name | version_name |
| suite_type | suite_type |
| suite_event | suite_event |
| campaign_type | campaign_type |
| defined_type | defined_type |
| category_name | category_name |
| MIN(event_time) | first_sent_date |
| customer_id | company_id |
| loaded_at | bq_load_time |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### BigQuery Sends

- Source: Open Data
- Update Method: UPSERT
- Table Name: emarsys.bq_sends

| **JSON Element/SQL Column** | **Database Column** |
| --- | --- |
| MD5(contact_id + launch_id + campaign_id + message_id + send_date) | id |
| contact_id | contact_id |
| launch_id | launch_id |
| campaign_id | campaign_id |
| message_id | message_id |
| campaign_type | campaign_type |
| domain | domain |
| event_time | send_date |
| customer_id | company_id |
| loaded_at | bq_load_time |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### BigQuery Opens

- Source: Open Data
- Update Method: UPSERT
- Table Name: emarsys.bq_opens

| **JSON Element/SQL Column** | **Database Column** |
| --- | --- |
| MD5(contact_id + launch_id + campaign_id + message_id + open_date) | id |
| contact_id | contact_id |
| launch_id | launch_id |
| campaign_id | campaign_id |
| message_id | message_id |
| is_mobile | is_mobile |
| user_agent | user_agent |
| ip | ip |
| platform | platform |
| geo.postal_code | geo_postal_code |
| geo.latitude | geo_latitude |
| geo.longitude | geo_longitude |
| geo.accuracy_radius | geo_accuracy_radius |
| geo.continent_code | geo_continent_code |
| geo.country_iso_code | geo_country_iso_code |
| geo.city_name | geo_city_name |
| event_time | open_date |
| customer_id | company_id |
| loaded_at | bq_load_time |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### BigQuery Clicks

- Source: Open Data
- Update Method: UPSERT
- Table Name: emarsys.bq_clicks

| **JSON Element/SQL Column** | **Database Column** |
| --- | --- |
| MD5(contact_id + launch_id + campaign_id + message_id + section_id + click_date) | id |
| contact_id | contact_id |
| launch_id | launch_id |
| campaign_id | campaign_id |
| message_id | message_id |
| section_id | section_id |
| link_id | link_id |
| is_img | is_img |
| is_mobile | is_mobile |
| user_agent | user_agent |
| ip | ip |
| platform | platform |
| geo.postal_code | geo_postal_code |
| geo.latitude | geo_latitude |
| geo.longitude | geo_longitude |
| geo.accuracy_radius | geo_accuracy_radius |
| geo.continent_code | geo_continent_code |
| geo.country_iso_code | geo_country_iso_code |
| geo.city_name | geo_city_name |
| event_time | click_date |
| customer_id | company_id |
| loaded_at | bq_load_time |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### BigQuery Bounces

- Source: Open Data
- Update Method: UPSERT
- Table Name: emarsys.bq_bounces

| **JSON Element/SQL Column** | **Database Column** |
| --- | --- |
| MD5(contact_id + launch_id + campaign_id + message_id + bounce_type + bounce_date) | id |
| contact_id | contact_id |
| launch_id | launch_id |
| campaign_id | campaign_id |
| message_id | message_id |
| bounce_type | bounce_type |
| event_time | bounce_date |
| customer_id | company_id |
| loaded_at | bq_load_time |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### BigQuery Cancels

- Source: Open Data
- Update Method: UPSERT
- Table Name: emarsys.bq_cancels

| **JSON Element/SQL Column** | **Database Column** |
| --- | --- |
| MD5(contact_id + launch_id + campaign_id + message_id + cancel_date) | id |
| contact_id | contact_id |
| launch_id | launch_id |
| campaign_id | campaign_id |
| message_id | message_id |
| campaign_type | campaign_type |
| suite_type | suite_type |
| event_time | cancel_date |
| customer_id | company_id |
| loaded_at | bq_load_time |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

#### BigQuery Unsubscribes

- Source: Open Data
- Update Method: UPSERT
- Table Name: emarsys.bq_unsubscribes

| **JSON Element/SQL Column** | **Database Column** |
| --- | --- |
| MD5(contact_id + launch_id + campaign_id + message_id + unsubscribe_date) | id |
| contact_id | contact_id |
| launch_id | launch_id |
| campaign_id | campaign_id |
| message_id | message_id |
| campaign_type | campaign_type |
| source | unsubscribe_source |
| email_sent_at | email_sent_at |
| event_time | unsubscribe_time |
| customer_id | company_id |
| loaded_at | bq_load_time |
| Daasity: account_id | _account_id |
| Daasity: timestamp when loaded into DB | __synced_at |

### Related Resources