---
schema_version: "1"
id: 1f7b134e4a1d9ffebfa82f9b89933fa7a228fc7d16d23e905b9cc05437cc4586
title: External Email Campaign Events ETL Data Feed
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_etl_external_email_campaign_events_data_feed.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_etl_external_email_campaign_events_data_feed.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d549f56b52ae1c778720087cef1642f6baac656c8b5adcbe01d218d857012798
description: You can use the External Email Campaign Events ETL data feed to import data from email campaigns that were sent by an external email service provider (ESP). Data can include sends, opens, and clicks.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# External Email Campaign Events ETL Data Feed

You can use the External Email Campaign Events ETL data feed to import data from email campaigns that were sent by an external email service provider (ESP). Data can include sends, opens, and clicks.

## About Ingesting External Email Campaign Events Data

Personalization stores the data that you include in an External Email Campaign Events ETL file in a third-party campaign object for the user profile. This data is subsequently available for segmentation and targeting purposes.

## Requirements

- ETL files must be in a CSV file format that adheres to the schema for the data feed. Files that don’t follow the file naming conventions or the appropriate schema result in errors and fail to process.
- Field names that begin with `attribute:` must match the custom attribute names on the User Attributes tab of the Settings > Attributes page.

## Filename Format

`externalEmailCampaign-YYYY-MM-DD_HH-MM-SS.csv`

## Schema

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:16.853932584269664%">
          <col style="width:34.18940609951846%">
          <col style="width:26.003210272873194%">
          <col style="width:13.643659711075443%">
          <col style="width:9.309791332263243%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d53255e87">Field Name </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d53255e90">Description </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d53255e93">Example Values </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d53255e96">Maximum Length </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d53255e99">Data Type </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <p style="margin-bottom:0;"><code>userId</code> or an identity attribute</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p>Required. Only unique identities can be included and updated through an
                ETL feed.</p>
              <p>If you aren’t using Personalization's multiple identities system, a user
                ID must be included. This ID must be one that is tracked within the
                system so that the events can be tied to the specific user profile.</p>
              <p style="margin-bottom:0;">If you're using Personalization's multiple identities system, userId
                isn’t referenced in ETL files. At least one identity attribute is
                required. Multiple identity attributes can be included for a single user
                by including multiple columns in the file. The correct header format for
                identity attributes is <code>attribute:</code>
                followed by the name of the identity attribute name as it appears in
                Personalization.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">
              <p>user@example.com</p>
              <p>attribute:emailAddress</p>
              <p>attribute:sfmcContactKey</p>
              <p>attribute:customerId</p>
              <p>attribute:sfcrmContactId</p>
              <p style="margin-bottom:0;">attribute:sfcrmLeadId</p>
            </td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">120</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">String</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <code>externalCampaignId</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p style="margin-bottom:0;">Required. The unique identifier for the external campaign.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">
              <p>3823923</p>
              <p style="margin-bottom:0;">QLcjsAjC</p>
            </td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">1023</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">Any</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <code>externalCampaignName</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p style="margin-bottom:0;">The unique name for the campaign.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">
              <p>Example_campaignname</p>
              <p>Testcampaign_242424</p>
              <p style="margin-bottom:0;">testcampaign</p>
            </td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">1023</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">String</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <code>eventType</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p style="margin-bottom:0;">Required. The type of event, such as send, click, open.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">
              <p>Send</p>
              <p>Click</p>
              <p style="margin-bottom:0;">Open</p>
            </td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">120</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">String</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <code>eventDate</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p style="margin-bottom:0;">Required. The date and time that the event occurred.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">
              <p style="margin-bottom:0;">2017-04-22T10:23:3 7Z</p>
            </td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">1023</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">Date</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <code>externalSystem</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p style="margin-bottom:0;">Required. The system that ran the campaign.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">
              <p>Salesforce Marketing Cloud Engagement</p>
              <p>Eloqua</p>
              <p>Marketo</p>
              <p style="margin-bottom:0;">Responsys</p>
            </td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">1023</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">String</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <code>source</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p> Represents the source of the campaign.
              </p>
              <p style="margin-bottom:0;">Data ingested for this attribute are not available for use in
                segmentation or targeting.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">&nbsp;</td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">1023</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">String</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e87 ">
              <code>medium</code>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e90 ">
              <p> Represents the medium of the campaign.
              </p>
              <p style="margin-bottom:0;">Data ingested for this attribute are not available for use in
                segmentation or targeting.</p>
            </td>

            <td data-label="Example Values" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e93 ">&nbsp;</td>

            <td data-label="Maximum Length" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e96 ">
              <p style="margin-bottom:0;">1023</p>
            </td>

            <td data-label="Data Type" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d53255e99 ">
              <p style="margin-bottom:0;">String</p>
            </td>

          </tr>
        </tbody>
      </table>

## Sample File Structure: Not using the multiple identities system

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:13.141025641025642%">
          <col style="width:14.903846153846153%">
          <col style="width:13.782051282051283%">
          <col style="width:13.782051282051283%">
          <col style="width:25%">
          <col style="width:19.391025641025642%">
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">userId </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">externalCampaignId </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">externalCampaignName </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">eventType </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">externalSystem </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">eventDate </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">jdoe</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">3823923</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">&nbsp;</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">Send</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">Salesforce Marketing Cloud Engagement</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">2022-07-17T11:24:23Z</p>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">tester@test.com</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">QLcjsAjC</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">&nbsp;</td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">Open</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">Eloqua</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">2021-10-19T08:42:58Z</p>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">user103925</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">newsletterCampaign</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">Newsletter Campaign</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">Click</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">Responsys</p>
            </td>

            <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
              <p style="margin-bottom:0;">2022-07-07T10:11:34Z</p>
            </td>

          </tr>
        </tbody>
      </table>

## Sample File Structure: Using the multiple identities system

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:14.285714285714285%">
          <col style="width:14.285714285714285%">
          <col style="width:14.285714285714285%">
          <col style="width:14.285714285714285%">
          <col style="width:14.285714285714285%">
          <col style="width:14.285714285714285%">
          <col style="width:14.285714285714285%">
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">attribute:emailAddress </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">attribute:customerId </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">externalCampaignId </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">externalCampaignName </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">eventType </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">externalSystem </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">eventDate </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">jdoe@ac.com</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">123456</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">3823923</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">&nbsp;</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Send</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Salesforce Marketing Cloud Engagement</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">2022-07-17T11:24:23Z</p>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">tester@test.com</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">111234</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">QLcjsAjC</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">&nbsp;</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Open</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Eloqua</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">2021-10-19T08:42:58Z</p>
            </td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">bob@test.com</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">675908</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">newsletterCampaign</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Newsletter Campaign</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Click</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">Responsys</p>
            </td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p style="margin-bottom:0;">2022-07-07T10:11:34Z</p>
            </td>

          </tr>
        </tbody>
      </table>

#### See Also

- [ETL File Requirements](https://help.salesforce.com/s/articleView?id=mktg.mc_pers_etl_file_requirements.htm&release=264.0.0&type=5 "ETL files contain entries such as users, products, subscription list members, promotions, transactions, and more. These files must be in a CSV format and can be encrypted or compressed. The file formats must follow the explicit schema requirements for each ETL data feed. Typically, you upload ETL files automatically using the SFTP site, but you can also manually upload a file.")
- [Monitor ETL Feed Jobs on the Feeds Dashboard](https://help.salesforce.com/s/articleView?id=mktg.mc_pers_etl_feeds_dashboard.htm&release=264.0.0&type=5 "The Feeds Dashboard provides details about ETL feed jobs.")
- [Limits for Marketing Cloud Personalization](https://help.salesforce.com/s/articleView?id=mktg.mc_pers_limits.htm&release=264.0.0&type=5 "Learn about the limits and capabilities in Marketing Cloud Personalization.")