# Salesforce Marketing Cloud

> Marketing automation for sales and customer service

Salesforce Marketing Cloud tracks email opens and clicks, but connecting campaign performance to actual revenue and customer lifetime value means juggling your CRM, payment platform, and analytics tools.

Filament links your email engagement data to revenue systems and answers questions about campaign ROI, subscriber value, and channel attribution in plain English.

## Data we sync

- **Events**: Sent, open, click, bounce and unsubscribe events with the subscriber, send, triggered send, URL and bounce details behind each one. (`event_type`, `event_date`, `subscriber_key`, `send_id`, `triggered_send_id`, `url`, `bounce_category`)
- **Sends**: Per-send totals for targeted, sent, delivered, unique opens and clicks, bounces and unsubscribes, with subject, email and send date. (`id`, `subject`, `email_name`, `send_date`, `number_sent`, `number_delivered`, `unique_opens`, `unique_clicks`, `unsubscribes`)
- **Subscribers**: Subscribers with email address, status, email type preference and created and unsubscribed dates. (`subscriber_key`, `email_address`, `status`, `created_date`, `unsubscribed_date`)
- **Lists**: Lists with name, type, description and created and modified dates. (`id`, `name`, `type`, `created_date`)
- **Triggered sends**: Triggered send definitions with email, subject, from address and status. (`id`, `name`, `email_subject`, `from_address`, `triggered_send_status`)
- **Journeys**: Journey Builder journeys with every version's status, entry mode, goals and publish dates. (`id`, `version`, `name`, `status`, `entry_mode`, `last_published_date`)
- **Journey activities**: Steps inside each journey version, with the triggered send behind each email step. (`journey_id`, `journey_version`, `name`, `type`, `triggered_send_id`)

## How do I connect Salesforce Marketing Cloud?

You need administrator access to the Marketing Cloud Engagement business unit you want to connect. Each business unit, including child units, needs its own connection.

1. In that business unit, open **Setup → Apps → Installed Packages** and select **New**. Name and save the package.
2. Select **Add Component → API Integration → Server-to-Server**.
3. Grant **Read** on these permissions, then save:

| Section    | Permission           |
| ---------- | -------------------- |
| Channels   | Email                |
| Contacts   | List and Subscribers |
| Data       | Tracking Events      |
| Automation | Journeys             |

4. Copy the **Client Id**, **Client Secret** and **Authentication Base URI**. The subdomain is the part of that URI before `.auth.marketingcloudapis.com`; it starts with `mc`.
5. Note the business unit's **MID**, shown in the account switcher.
6. Open [Apps](https://filamentanalytics.com/apps) in Filament, add **Salesforce Marketing Cloud** and enter the subdomain, Client ID, Client Secret and MID. Filament checks the credentials and the Tracking Events and Journeys permissions before saving.

Permission changes on an Installed Package take about 5 minutes to reach new tokens. If Filament reports a missing permission straight after you add it, wait and try again.

### Moving from the Fivetran connector

The Installed Package created for Fivetran can be reused if it has an Authentication Base URI. Fivetran's setup does not grant **Tracking Events**, so add it and any other missing permission from step 3, then reconnect with the package's credentials. A package without an Authentication Base URI needs a new Server-to-Server API Integration. Existing dashboards keep working after the switch.
