# Mailchimp

Mailchimp is an email and marketing automation platform for growing businesses.

MailChimp integration replicates data using the [MailChimp API 3.0](https://developer.mailchimp.com/documentation/mailchimp/reference/overview/).

See the [Schema](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#Schema) section for a list of objects available for replication.

## Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Information noteMake sure that the account you use has read access to the tables you want to fetch.

To obtain your client ID and secret:

1. Log into your [Mailchimp](https://us1.admin.mailchimp.com/account/oauth2/) account.

2. Either:

   * Create a new app. The client ID and secret are displayed when the app is created.

     As the client secret is displayed only once, copy and paste it to a secured file.

   * Edit an existing app and click Rotate to generate a new client secret.

3. Make sure Authorized Redirect URIs is set to https://connector.qlik.com/auth/oauth/v3.htm.

   Each OAuth app can only have one redirect URI.

Use a unique set of client id and client secret to authenticate each of your connections. Otherwise, your tasks associated with your older connections will fail.

## Creating the connection

For more information, see [Connecting to SaaS applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Landing/connecting-web-applications.htm).

1. Click Authenticate when you have filled in the required connection settings.

   You may be asked to log in to the source application.

   A window is displayed with an authentication code.

2. Copy the code to the clipboard and return to the connection dialog.

3. Paste the code in Complete authentication with the code provided by the source and click Verify.

   Tip noteYou may need to scroll down to see this field.

   When status is Verified, the authentication is verified.

4. Provide a name for the connection in Connection name.

5. Select Open connection metadata to define metadata for the connection when it has been created.

Connection settings

| Setting | Description |
| --- | --- |
| Data gateway | Select a Data Movement gateway if required by your use case.<br><br>Information note<br><br>This field is not available with the Qlik Talend Cloud Starter subscription, as it does not support Data Movement gateway. If you have another subscription tier and do not want to use Data Movement gateway, select None.<br><br>For information on the benefits of Data Movement gateway and use cases that require it, see [Qlik Data Gateway - Data Movement](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/replication-gateway.htm). |
| Start Date | Enter the date, in the format `MM/DD/YYYY`, from which the data must be replicated from your source to your target. |
| Email Activity Date Window | Enter the number of days for which you need to retrieve the email activity reports.<br><br>Example: 10. The reports of the last 10 days will be retrieved. |
| Client ID | Client ID. |
| Client Secret | Client secret. |

## Schema

Information note

Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.

Depending on your destination, table and column names may not appear as they are outlined below.

### automations

The `automations` table contains summary info about your MailChimp account’s automations. In MailChimp, an automation is a feature that sends a series of emails to subscribers when triggered by a specific date, activity, or event.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | create\_time |
| **Useful links** | [MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/reference/automations/#read-get_automations "Opens in new tab: MailChimp API method") |

automations table foreign keys

| Join automations with | on |
| --- | --- |
| [campaigns](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#campaigns) | ```<br>automations.recipients.list_id = campaigns.recipients.list_id<br>``` |
| [list_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-members) | ```<br>automations.recipients.list_id = list_members.list_id<br>``` |
| [list_segment_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segment-members) | ```<br>automations.recipients.list_id = list_segment_members.list_id<br>``` |
| [list_segments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segments) | ```<br>automations.recipients.list_id = list_segments.list_id<br>``` |
| [lists](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#lists) | ```<br>automations.recipients.list_id = lists.id<br>``` |
| [reports_email_activity](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#reports-email-activity) | ```<br>automations.recipients.list_id = reports_email_activity.list_id<br>``` |

automations table schema

| **create\_time**<br><br><br>DATE-TIME |
| --- |
| **emails\_sent**<br><br><br>INTEGER |
| **id**<br><br><br>STRING |
| **recipients**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>create_time: DATE-TIME</li><li>emails_sent: INTEGER</li><li>id: STRING</li><li>recipients: OBJECT, which is also a nested data structure.												<ul><li>list_id: STRING</li><li>list_is_active: BOOLEAN</li><li>list_name: STRING</li><li>segments_opts: OBJECT, which is also a nested structure.														<ul><li>conditions: ARRAY, which is also a nested structure.																<ul><li>condition_type: STRING</li><li>field: STRING</li><li>op: STRING</li><li>value: STRING</li></ul></li><li>match: STRING</li><li>saved_segment_id: INTEGER</li></ul></li><li>store_id: STRING</li></ul></li><li>report_summary: OBJECT, which is also a nested data structure.												<ul><li>click_rate: NUMBER</li><li>clicks: INTEGER</li><li>open_rate: NUMBER</li><li>opens: INTEGER</li><li>subscriber_clicks: INTEGER</li><li>unique_opens: INTEGER</li></ul></li><li>settings: OBJECT, which is also a nested data structure.												<ul><li>authenticate: BOOLEAN</li><li>auto_footer: BOOLEAN</li><li>from_name: STRING</li><li>inline_css: BOOLEAN</li><li>reply_to: STRING</li><li>title: STRING</li><li>to_name: STRING</li><li>use_conversation: BOOLEAN</li></ul></li><li>start_time: DATE-TIME</li><li>status: STRING</li><li>tracking: OBJECT, which is also a nested data structure.												<ul><li>capsule: OBJECT, which is also a nested data structure.														<ul><li>notes: BOOLEAN</li></ul></li><li>clicktale: STRING</li><li>ecomm360: BOOLEAN</li><li>goal_tracking: BOOLEAN</li><li>google_analytics: STRING</li><li>html_clicks: BOOLEAN</li><li>opens: BOOLEAN</li><li>salesforce: OBJECT, which is also a nested data structure.														<ul><li>campaign: BOOLEAN</li><li>notes: BOOLEAN</li></ul></li><li>text_clicks: BOOLEAN</li></ul></li><li>trigger_settings: OBJECT, which is also a nested data structure.												<ul><li>runtime: STRING</li><li>workflow_emails_count: INTEGER</li><li>workflow_title: STRING</li><li>workflow_type: STRING</li></ul></li></ul> |

### campaigns

The `campaigns` table contains info about the campaigns in your MailChimp account.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/#read-get_campaigns "Opens in new tab: MailChimp API method") |

campaigns table foreign keys

| Join campaigns with | on |
| --- | --- |
| [reports_email_activity](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#reports-email-activity) | ```<br>campaigns.id = reports_email_activity.campaign_id<br>```<br><br>```<br>campaigns.recipients.list_id = reports_email_activity.list_id<br>``` |
| [automations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#automations) | ```<br>campaigns.recipients.list_id = automations.recipients.list_id<br>``` |
| [list_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-members) | ```<br>campaigns.recipients.list_id = list_members.list_id<br>``` |
| [list_segment_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segment-members) | ```<br>campaigns.recipients.list_id = list_segment_members.list_id<br>``` |
| [list_segments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segments) | ```<br>campaigns.recipients.list_id = list_segments.list_id<br>``` |
| [lists](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#lists) | ```<br>campaigns.recipients.list_id = lists.id<br>``` |

campaigns table schema

| **archive\_url**<br><br><br>STRING |
| --- |
| **content\_type**<br><br><br>STRING |
| **create\_time**<br><br><br>DATE-TIME |
| **delivery\_status**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>enabled: BOOLEAN</li></ul> |
| **emails\_sent**<br><br><br>INTEGER |
| **has\_logo\_merge\_tag**<br><br><br>BOOLEAN |
| **id**<br><br><br>STRING |
| **long\_archive\_url**<br><br><br>STRING |
| **needs\_block\_refresh**<br><br><br>BOOLEAN |
| **recipients**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>list_id: STRING</li><li>list_is_active: BOOLEAN</li><li>list_name: STRING</li><li>recipient_count: INTEGER</li><li>segment_opts: OBJECT, which is also a nested data structure.											<ul><li>conditions: ARRAY, which is also a nested data structure.													<ul><li>condition_type: STRING</li><li>field: STRING</li><li>op: STRING</li><li>value: STRING</li></ul></li><li>match: STRING</li><li>prebuilt_segment_id: STRING</li><li>saved_segment_id: INTEGER</li></ul></li><li>segment_text: STRING</li></ul> |
| **report\_summary**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>click_rate: NUMBER</li><li>clicks: INTEGER</li><li>ecommerce: OBJECT, which is also a nested data structure.											<ul><li>total_orders: INTEGER</li><li>total_revenue: INTEGER</li><li>total_spent: INTEGER</li></ul></li><li>open_rate: NUMBER</li><li>opens: INTEGER</li><li>subscriber_clicks: INTEGER</li><li>unique_opens: INTEGER</li></ul> |
| **resendable**<br><br><br>BOOLEAN |
| **send\_time**<br><br><br>DATE-TIME |
| **settings**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>authenticate: BOOLEAN</li><li>auto_footer: BOOLEAN</li><li>auto_tweet: BOOLEAN</li><li>drag_and_drop: BOOLEAN</li><li>fb_comments: BOOLEAN</li><li>folder_id: STRING</li><li>from_name: STRING</li><li>inline_css: BOOLEAN</li><li>preview_text: STRING</li><li>reply_to: STRING</li><li>subject_line: STRING</li><li>template_id: STRING</li><li>timewarp: BOOLEAN</li><li>title: STRING</li><li>to_name: STRING</li><li>use_conversation: BOOLEAN</li></ul> |
| **social\_card**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>description: STRING</li><li>image_url: STRING</li><li>title: STRING</li></ul> |
| **status**<br><br><br>STRING |
| **tracking**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>clicktale: STRING</li><li>ecomm360: BOOLEAN</li><li>goal_tracking: BOOLEAN</li><li>google_analytics: STRING</li><li>html_clicks: BOOLEAN</li><li>opens: BOOLEAN</li><li>text_clicks: BOOLEAN</li></ul> |
| **type**<br><br><br>STRING |
| **web\_id**<br><br><br>INTEGER |

### list\_members

The `list_members` table contains info about the members in a specific MailChimp list, including currently subscribed, unsubscribed, and bounced members.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Keys** | id<br><br>list\_id |
| **Replication Key** | last\_changed |
| **Useful links** | [MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/#read-get_lists_list_id_members "Opens in new tab: MailChimp API method") |

list\_members table foreign keys

| Join list\_members with | on |
| --- | --- |
| [automations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#automations) | ```<br>list_members.list_id = automations.recipients.list_id<br>``` |
| [campaigns](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#campaigns) | ```<br>list_members.list_id = campaigns.recipients.list_id<br>``` |
| [list_segment_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segment-members) | ```<br>list_members.list_id = list_segment_members.list_id<br>``` |
| [list_segments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segments) | ```<br>list_members.list_id = list_segments.list_id<br>``` |
| [lists](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#lists) | ```<br>list_members.list_id = lists.id<br>``` |
| [reports_email_activity](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#reports-email-activity) | ```<br>list_members.list_id = reports_email_activity.list_id<br>``` |

list\_members table schema

| **email\_address**<br><br><br>STRING |
| --- |
| **email\_client**<br><br><br>STRING |
| **email\_type**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **ip\_opt**<br><br><br>STRING |
| **ip\_signup**<br><br><br>STRING |
| **language**<br><br><br>STRING |
| **last\_changed**<br><br><br>DATE-TIME |
| **list\_id**<br><br><br>STRING |
| **location**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>country_code: STRING</li><li>dstoff: INTEGER</li><li>gmtoff: INTEGER</li><li>latitude: NUMBER</li><li>longitude: NUMBER</li><li>timezone: STRING</li></ul> |
| **member\_rating**<br><br><br>NUMBER |
| **source**<br><br><br>STRING |
| **stats**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>avg_click_rate: NUMBER</li><li>avg_open_rate: NUMBER</li></ul> |
| **status**<br><br><br>STRING |
| **tags**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li>id: INTEGER</li><li>name: STRING</li></ul> |
| **tags\_count**<br><br><br>INTEGER |
| **timestamp\_opt**<br><br><br>DATE-TIME |
| **timestamp\_signup**<br><br><br>DATE-TIME |
| **unique\_email\_id**<br><br><br>STRING |
| **unsubscribe\_reason**<br><br><br>STRING |
| **vip**<br><br><br>BOOLEAN |
| **web\_id**<br><br><br>INTEGER |

### list\_segment\_members

The `list_segment_members` table contains info about members in a [saved segment](https://mailchimp.com/help/save-and-manage-segments/)

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/reference/lists/segments/members/#read-get_lists_list_id_segments_segment_id_members "Opens in new tab: MailChimp API method") |

list\_segment\_members table foreign keys

| Join list\_segment\_members with | on |
| --- | --- |
| [automations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#automations) | ```<br>list_segment_members.list_id = automations.recipients.list_id<br>``` |
| [campaigns](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#campaigns) | ```<br>list_segment_members.list_id = campaigns.recipients.list_id<br>``` |
| [list_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-members) | ```<br>list_segment_members.list_id = list_members.list_id<br>``` |
| [list_segments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segments) | ```<br>list_segment_members.list_id = list_segments.list_id<br>``` |
| [lists](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#lists) | ```<br>list_segment_members.list_id = lists.id<br>``` |
| [reports_email_activity](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#reports-email-activity) | ```<br>list_segment_members.list_id = reports_email_activity.list_id<br>``` |

list\_segment\_members table schema

| **email\_address**<br><br><br>STRING |
| --- |
| **email\_client**<br><br><br>STRING |
| **email\_type**<br><br><br>STRING |
| **id**<br><br><br>STRING |
| **ip\_opt**<br><br><br>STRING |
| **ip\_signup**<br><br><br>STRING |
| **language**<br><br><br>STRING |
| **last\_changed**<br><br><br>DATE-TIME |
| **list\_id**<br><br><br>STRING |
| **location**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>country_code: STRING</li><li>dstoff: INTEGER</li><li>gmtoff: INTEGER</li><li>latitude: NUMBER</li><li>longitude: NUMBER</li><li>timezone: STRING</li></ul> |
| **member\_rating**<br><br><br>NUMBER |
| **stats**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>avg_click_rate: NUMBER</li><li>avg_open_rate: NUMBER</li></ul> |
| **status**<br><br><br>STRING |
| **timestamp\_opt**<br><br><br>DATE-TIME |
| **timestamp\_signup**<br><br><br>STRING |
| **unique\_email\_id**<br><br><br>STRING |
| **vip**<br><br><br>BOOLEAN |

### list\_segments

The `list_segments` table contains info about the available segments for a specific list.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | updated\_at |
| **Useful links** | [MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/reference/lists/segments/#read-get_lists_list_id_segments "Opens in new tab: MailChimp API method") |

list\_segments table foreign keys

| Join list\_segments with | on |
| --- | --- |
| [automations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#automations) | ```<br>list_segments.list_id = automations.recipients.list_id<br>``` |
| [campaigns](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#campaigns) | ```<br>list_segments.list_id = campaigns.recipients.list_id<br>``` |
| [list_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-members) | ```<br>list_segments.list_id = list_members.list_id<br>``` |
| [list_segment_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segment-members) | ```<br>list_segments.list_id = list_segment_members.list_id<br>``` |
| [lists](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#lists) | ```<br>list_segments.list_id = lists.id<br>``` |
| [reports_email_activity](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#reports-email-activity) | ```<br>list_segments.list_id = reports_email_activity.list_id<br>``` |

list\_segments table schema

| **created\_at**<br><br><br>DATE-TIME |
| --- |
| **id**<br><br><br>STRING |
| **list\_id**<br><br><br>STRING |
| **member\_count**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **options**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>conditions: ARRAY, which is also a nested data structure.											<ul><li>condition_type: STRING</li><li>field: STRING</li><li>op: STRING</li><li>value: STRING</li></ul></li><li>match: STRING</li></ul> |
| **type**<br><br><br>STRING |
| **updated\_at**<br><br><br>DATE-TIME |

### lists

The `lists` table contains info about all the lists in your MailChimp account. A list is also known as an audience, and is where all contacts are stored and managed in MailChimp.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/reference/lists/#read-get_lists "Opens in new tab: MailChimp API method") |

lists table foreign keys

| Join lists with | on |
| --- | --- |
| [automations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#automations) | ```<br>lists.id = automations.recipients.list_id<br>``` |
| [campaigns](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#campaigns) | ```<br>lists.id = campaigns.recipients.list_id<br>``` |
| [list_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-members) | ```<br>lists.id = list_members.list_id<br>``` |
| [list_segment_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segment-members) | ```<br>lists.id = list_segment_members.list_id<br>``` |
| [list_segments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segments) | ```<br>lists.id = list_segments.list_id<br>``` |
| [reports_email_activity](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#reports-email-activity) | ```<br>lists.id = reports_email_activity.list_id<br>``` |

lists table schema

| **beamer\_address**<br><br><br>STRING |
| --- |
| **campaign\_defaults**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>from_email: STRING</li><li>from_name: STRING</li><li>language: STRING</li><li>subject: STRING</li></ul> |
| **contact**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>address1: STRING</li><li>address2: STRING</li><li>city: STRING</li><li>company: STRING</li><li>country: STRING</li><li>phone: STRING</li><li>state: STRING</li><li>zip: STRING</li></ul> |
| **date\_created**<br><br><br>DATE-TIME |
| **double\_optin**<br><br><br>BOOLEAN |
| **email\_type\_option**<br><br><br>BOOLEAN |
| **has\_welcome**<br><br><br>BOOLEAN |
| **id**<br><br><br>STRING |
| **list\_rating**<br><br><br>INTEGER |
| **marketing\_permissions**<br><br><br>BOOLEAN |
| **modules**<br><br><br>ARRAY |
| **name**<br><br><br>STRING |
| **notify\_on\_subscribe**<br><br><br>STRING |
| **notify\_on\_unsubscribe**<br><br><br>STRING |
| **permission\_reminder**<br><br><br>STRING |
| **stats**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li>avg_sub_rate: NUMBER</li><li>avg_unsub_rate: NUMBER</li><li>campaign_count: INTEGER</li><li>campaign_last_sent: DATE-TIME</li><li>cleaned_count: INTEGER</li><li>cleaned_count_since_send: INTEGER</li><li>click_rate: NUMBER</li><li>last_sub_date: DATE-TIME</li><li>last_unsub_date: DATE-TIME</li><li>member_count_since_send: INTEGER</li><li>merge_field_count: INTEGER</li><li>open_rate: NUMBER</li><li>target_sub_rate: NUMBER</li><li>unsubscribe_count: INTEGER</li><li>unsubscribe_count_since_send: INTEGER</li></ul> |
| **subscribe\_url\_long**<br><br><br>STRING |
| **subscribe\_url\_short**<br><br><br>STRING |
| **use\_archive\_bar**<br><br><br>BOOLEAN |
| **visibility**<br><br><br>STRING |
| **web\_id**<br><br><br>STRING |

### reports\_email\_activity

The `reports_email_activity` table contains info about a member’s subscriber activity in a specific campaign.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Keys** | action<br><br>campaign\_id<br><br>email\_id<br><br>timestamp |
| **Useful links** | [MailChimp documentation](https://developer.mailchimp.com/documentation/mailchimp/reference/reports/email-activity/)<br><br>[MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/guides/how-to-use-batch-operations/ "Opens in new tab: MailChimp API method") |

reports\_email\_activity table foreign keys

| Join reports\_email\_activity with | on |
| --- | --- |
| [campaigns](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#campaigns) | ```<br>reports_email_activity.campaign_id = campaigns.id<br>```<br><br>```<br>reports_email_activity.list_id = campaigns.recipients.list_id<br>``` |
| [automations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#automations) | ```<br>reports_email_activity.list_id = automations.recipients.list_id<br>``` |
| [list_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-members) | ```<br>reports_email_activity.list_id = list_members.list_id<br>``` |
| [list_segment_members](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segment-members) | ```<br>reports_email_activity.list_id = list_segment_members.list_id<br>``` |
| [list_segments](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#list-segments) | ```<br>reports_email_activity.list_id = list_segments.list_id<br>``` |
| [lists](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Mailchimp.htm#lists) | ```<br>reports_email_activity.list_id = lists.id<br>``` |

reports\_email\_activity table schema

| **action**<br><br><br>STRING |
| --- |
| **campaign\_id**<br><br><br>STRING |
| **email\_address**<br><br><br>STRING |
| **email\_id**<br><br><br>STRING |
| **ip**<br><br><br>STRING |
| **list\_id**<br><br><br>STRING |
| **list\_is\_active**<br><br><br>BOOLEAN |
| **timestamp**<br><br><br>DATE-TIME |
| **type**<br><br><br>STRING |
| **url**<br><br><br>STRING |

### unsubscribes

The `unsubscribes` table contains info about members who have unsubscribed from a specific campaign.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Keys** | campaign\_id<br><br>email\_id |
| **Useful links** | [MailChimp API method](https://developer.mailchimp.com/documentation/mailchimp/reference/reports/unsubscribed/#read-get_reports_campaign_id_unsubscribed "Opens in new tab: MailChimp API method") |

unsubscribes table schema

| **campaign\_id**<br><br><br>STRING |
| --- |
| **email\_address**<br><br><br>STRING |
| **email\_id**<br><br><br>STRING |
| **list\_id**<br><br><br>STRING |
| **list\_is\_active**<br><br><br>BOOLEAN |
| **reason**<br><br><br>STRING |
| **timestamp**<br><br><br>DATE-TIME |
| **vip**<br><br><br>BOOLEAN |