---
schema_version: "1"
id: ba0775035a11cc0386cc63b2f82c99201f9f73ac647573766d3ee55362a2d3fb
title: Marketing Cloud Intelligence
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/pro/desktop/examples_mci.md
canonical_url: https://help.tableau.com/current/pro/desktop/zh-cn/examples_mci.htm
source_site: help.tableau.com
content_type: documentation
content_hash: bf55c4d446232056990532a9445d4210e998bc0ee97465a04c64d9fa918fe359
description: Connect Tableau to Marketing Cloud Intelligence (formerly Datorama) and set up the data source.
---
[跳转到主要内容](#main-content)

# Marketing Cloud Intelligence

**注意：**Marketing Cloud Intelligence 连接器取代了 Datorama 连接器。

本文介绍如何将 Tableau 连接到 Marketing Cloud Intelligence。

## 开始之前

在开始之前，请收集以下连接信息：

- 要连接到的环境名称和工作场所 ID
- 用户名和密码
- （可选）要在每次 Tableau 连接时运行的初始 SQL 语句

### 需要驱动程序

此连接器需要驱动程序才能与数据库通信。如果计算机上未安装该驱动程序，Tableau 将在连接对话框中显示一条错误消息，其中包含指向[驱动程序下载](https://www.tableau.com/zh-cn/support/drivers)页面的链接，您可在该页面中找到驱动程序链接和安装说明。

## 进行连接并设置数据源

1. 启动 Tableau，并在“连接”下选择“Marketing Cloud Intelligence”。有关数据连接的完整列表，请在“至服务器”下选择“更多”。然后执行以下操作：

1. 选择您要在其中工作的环境。
2. 输入工作场所 ID。
3. 输入来自 [Marketing Cloud Intelligence](https://help.salesforce.com/s/articleView?id=sf.datorama.htm&language=en_US&type=5) 的访问令牌。
4. 选择“登录”。
    
    如果 Tableau 无法建立连接，请验证您的凭据是否正确。如果仍然无法连接，则说明您的计算机在定位服务器时遇到问题。请与您的网络管理员或数据库管理员联系以获得更多帮助。

3. 在数据源页面上，执行下列操作：
    
    1. （可选）在页面顶部选择默认数据源名称，然后输入要在 Tableau 中使用的唯一数据源名称。例如，使用可帮助其他数据源用户推断出要连接的数据源的数据源命名约定。
    2. 从“数据库”下拉列表中，选择一个数据库。
    3. 在“表”下，选择表或使用搜索字段按名称搜索表。
    4. 将表拖到画布，然后选择工作表标签以开始分析。
        
        使用自定义 SQL 连接到特定查询，而非整个数据源。有关详细信息，请参见[连接到自定义 SQL 查询](https://help.tableau.com/current/pro/desktop/zh-cn/customsql.htm)。

## 登录到 Mac

如果在 Mac 上使用 Tableau Desktop，则在输入服务器名称进行连接时，请使用完全限定的域名（例如 mydb.test.ourdomain.lan）而不是相对域名（例如 mydb 或 mydb.test）。

或者，可以将域添加到 Mac 计算机的“搜索域”的列表中，以便在您连接时，只需要提供服务器名称。若要更新“搜索域”的列表，请转到“系统首选项”\>“网络”\>“高级”，然后打开“DNS”选项卡。

## 另请参见

- [设置数据源](https://help.tableau.com/current/pro/desktop/zh-cn/datasource_prepare.htm) – 向此数据源中添加更多数据，或者在分析数据之前准备数据。
- [构建图表和分析数据](https://help.tableau.com/current/pro/desktop/zh-cn/design_and_analyze.htm) – 开始数据分析。