Salesforce Marketing Cloud (Event Streaming)

Beta

This feature is in Closed Beta and is in active development. Contact your Amplitude support team for support with this integration.

Salesforce Marketing Cloud provides marketing engagement automation that allows you to engage your users. Using this integration enables your marketing and growth teams to use behavioral data to better target campaigns and increase user engagement.

Considerations

Keep these things in mind when sending events to Salesforce Marketing Cloud:

  • You must enable this integration in each Amplitude project you want to use it in.
  • There are relevant limits for Salesforce Marketing Cloud events:
  • Salesforce suggests not using more than 2500 calls per minutes when interacting with the REST API
  • Yearly limit on API call
    • Basic: 0 calls/year
    • Pro: 2M calls/year
    • Corporate: 6M calls/year
    • Enterprise: 200M calls/year

Setup

Salesforce Marketing Cloud setup

You need a Client ID, Client Secret and Subdomain from Salesforce Marketing Cloud.

  1. In Salesforce Marketing Cloud, navigate to Setup under Settings.

  2. In the Quick Find box, search for Installed Packages.

  3. Click New to create a new package.

  4. Click Add Component.

  5. For the Component Type, select API Integration. This step generates the API integration information that is required in Amplitude.

  6. For the integration type, select Server-to-Server.

  7. Grant the package these permissions:

    • Email: Read, Write
    • Web: Read, Write
    • Automation: Read, Write, Execute
    • Journeys: Read
    • List and Subscribers: Read, Write
    • Tracking Events: Read
    • Webhooks: Read, Write
  8. Save the package.

  9. Copy the Client ID, Client Secret, and Subdomain from the app you want to integrate.

    • For the Subdomain, see the Authentication Base URI and only copy the subdomain. For example, if the Authentication Base URL is https://mc1n78yx33kxv5mv1q7fh81flfjq.auth.marketingcloudapis.com/, then copy mc1n78yx33kxv5mv1q7fh81flfjq.
  10. Click on the Access tab and click on Enable All Business Units.

Amplitude setup

  1. In Amplitude Data, click Catalog and select the Destinations tab.
  2. In the Event Streaming section, click Salesforce Marketing Cloud.
  3. Enter a sync name, then click Create Sync.
  4. Enter your Client ID / Client Secret / Subdomain created by SFMC.
  5. Enter your Event Definition Key generated by API Event in SFMC in the SFMC Event Definition Key field.
  6. Enter the External Key generated by the Data Extension for the user properties in SFMC to SFMC User Data Extension Key.
  7. Click on Map properties to destination to specify the identity mapping between Amplitude and SFMC. Note that SFMC requires the Contact Key and Email as properties.
  8. Toggle the Send Events filter to select the events to send. SFMC recommends choosing the events that are most important to your use case.
  9. Click on the Select & filter events option to choose the event type of the events you would like to send.
  10. (optional) In Select additional properties, select any more event properties you want to send to SFMC.
  11. Under Send Users, make sure the toggle is enabled ("Users are sent to SFMC") if you want to stream users and their properties to SFMC. By default, it sends the Contact key & Email address to SFMC.
  12. (optional) In Select additional properties, select any more user properties you want to send to SFMC. If you don't select any properties here, Amplitude doesn't send any.

Event forwarding setup (optional)

Storing data in different

Following these steps enable you to create a Data Extension in Salesforce Marketing Cloud, set up an Event Definition, and configure the necessary mappings for forwarding events to Amplitude. If you don't store your data in the same Data Extension, repeat these steps.

  1. In Salesforce Marketing Cloud, navigate to Email Studio from the top navigation bar.
  2. Find the Data Extension section from the Subscribers.
  3. Create a Data Extension in any folder.
  4. (Recommendation) When you create a new Data Extension for event forwarding, use a template. Choose Create from Template in the Creation Method.
  5. Choose TriggeredSendDataExtension as the template.
  6. Make sure your Data Extension includes the columns SubscriberKey (to be used as Contact key) and EmailAddress (to be used as Email) for mapping properties in Amplitude's setup page.
  7. For any other columns you create (except SubscriberKey and EmailAddress), ensure their names match the properties you select in Amplitude's additional properties.
    • By default, the event properties include event_type / event_time / SubscriberKey / EmailAddress.
  8. After you created the Data Extension, go to Journey Builder and find Event Sources under the Event tab.
  9. Click on New Event and select API Event for New Entry Sources.
  10. Name your Event Definition and select the Data Extension you created.
  11. Optionally create contact filters, which you can apply later.
  12. Copy the Event Definition Key and paste it into the SFMC Event Definition Key in Amplitude’s setup page.
  13. You are now ready to start forwarding the events.

Identify forwarding setup (optional)

Send other user properties than the default attributes in SFMC

You will have to define the Data Extension in SFMC to store the user properties that do not exist in the default attributes in SFMC. Default attribute set includes Contact Key and Email Address.

  1. To add your own attribute set, start by defining a Data Extension in SFMC.
  2. When creating the Data Extension, follow the specified naming format for Event Forwarding.
  3. Include a contactKey column in the Data Extension to map attributes to each contact in SFMC. Make sure that the contactKey column is set as a primary key.
  4. After creating the Data Extension, navigate to the Data Designer tab in Contact Builder.
  5. Choose an Attribute Group and click on the Data Extensions button, then select Link.
  6. Select your Data Extension and choose the column that maps to the Customer Data attribute. Map the contactKey attribute to Contact Key in the Customer Data section.
  7. After you save, copy & paste the external key of the Data Extension into the SFMC User Data Extension Key in the setup UI of Amplitude.
  8. Your Data Extension ready and linked to the Attribute Group in Contact Builder, enabling you to store and use the attribute set for each contact in SFMC.

Use cases

  1. Campaign Automation: Marketing Cloud’s Journey Builder is a campaign planning tool that enables you to design and automate campaigns that guide customers through their journey with a brand. Its foundation is the journey, which is the communication plan you design. Amplitude's events streaming enables your Journey.
  2. Personalized Marketing: With the ability to track user behavior and capture user and event properties in Amplitude, you can build personalized contents and targeted marketing campaigns in Marketing Cloud. This can lead to increased engagement and customer loyalty.
Was this page helpful?

Thanks for your feedback!

June 25th, 2024

Need help? Contact Support

Visit Amplitude.com

Have a look at the Amplitude Blog

Learn more at Amplitude Academy

© 2024 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.