---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.2
alternate:
  - https://yandex.com/support/metrica/en/crm/bitrix.md
  - https://yandex.com/support/metrica/es/crm/bitrix.md
  - https://yandex.com/support/metrica/pt/crm/bitrix.md
  - https://yandex.com/support/metrica/ru/crm/bitrix.md
  - https://yandex.com/support/metrica/tr/crm/bitrix.md
  - https://yandex.com/support/metrica/zh/crm/bitrix.md
  - href: zh/crm/bitrix.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: 连接到 Bitrix24 以从 CRM 上传数据
description: 您可以配置集成以在 Yandex Metrica 中上传和分析有关客户、交易和潜在客户的数据。
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/metrica/zh/llms.txt


# 连接到 Bitrix24 以从 CRM 上传数据

如果您使用 Bitrix24，则可以配置集成以在 Yandex Metrica 中上传和分析有关客户、交易和潜在客户的数据。 这使您可以将实际销售数据与广告费用数据相结合，以构建端到端分析，而无需开发人员参与。

使用基于 Yandex Metrica 的端到端分析，您可以：
- 确定带来实际销售且利润更高的广告来源。
- 了解哪些广告设置在利润和损失方面是有效的，包括 UTM 标签的详细信息。
- 根据广告投资回报率分配广告预算。
- [优化 Yandex Direct 中的广告](https://yandex.com/support/direct/strategies/offline-conversions.html)，以促进付费订单。

[为什么要传输离线转化数据？](https://yandex.com/support/direct/en/strategies/offline-conversions#for-what)

要查看统计数据，请使用端到端分析报表：

- [Order sources from CRM 报表](https://yandex.com/support/metrica/zh/sources/order-sources.md)分析订单来源。
- [Sources, costs, and ROI 报表](https://yandex.com/support/metrica/zh/sources/ad-expenses.md)分析您的广告支出和广告效益。
- [“Users and customers”报表](https://yandex.com/support/metrica/zh/general/people.md)用于在 **Clients** 选项卡上查看从 CRM 传输的所有客户及其订单。
- 任何您可以从中选择目标的报表。 通过选择发送订单状态时所用的目标，您可以跟踪您关注的销售漏斗阶段。

{% note info %}

Bitrix24 中的 Yandex Metrica 应用仅适用于 `ru` 域名区。

{% endnote %}

## 第 1 步. 准备数据 {#data}

这是一个可选步骤。

Yandex Metrica 将 CRM 中的数据与有关用户和网站会话的数据关联起来。 为了关联数据，Yandex Metrica 使用客户特征（电话、电子邮件）以及特殊 ID ([ClientID](https://yandex.com/support/metrica/zh/data/offline-params.md#clientid))。

ClientID 是网站用户的 ID。 Yandex Metrica 会自动分配此 ID。 此 ID 有助于更准确地关联数据。

为了最大限度地提高归因质量，请确保传递所有可用的标识符（电话、电子邮件、ClientID）。 



[归因质量](https://yandex.com/support/direct/strategies/offline-conversions.html#offline-conversions__crm-connection)



要使用 ClientID：
1. 使用 [getClientID](https://yandex.com/support/metrica/zh/objects/get-client-id.md) 方法获取 ClientID。
1. 将它们保存在 Bitrix24 中。 为此，请创建一个具有特殊名称的字段。 例如：`metrika_client_id`。 您可以将其添加到潜在客户、交易和联系人中。
    
    {% cut "允许的字段名称" %}
    
    - `metrika_client_id`
    - `metrikaclientid`
    - `metrika-client-id`
    - `metrica_client_id`
    - `metricaclientid`
    - `metrica-client-id`
    - `metrika_client_ids`
    - `metrikaclientids`
    - `metrika-client-ids`
    - `metrica_client_ids`
    - `metricaclientids`
    - `metrica-client-ids`
    - `metrika`
    - `metrica`
    - `clientid`
    - `clientids`
    - `client-id`
    - `client-ids`
    
    {% endcut %}

## 第 2 步. 创建连接 {#how-to}


{% note alert %}

你必须具有[编辑权限](https://yandex.com/support/metrica/zh/general/access.md)或者是您要为其创建连接的 Yandex Metrica 计数器的所有者。

{% endnote %}

将单个 CRM 连接到一个 Yandex Metrica 计数器。 更改已连接的 CRM 时，如果新旧 CRM 系统中存在重复的订单和客户 ID，Yandex Metrica 中的订单和客户数据可能会被覆盖。

1. 登录 Bitrix24。
1. 前往 Yandex Metrica 中的 **Integrations** 页面。
1. 在 **Transferring orders from CRM** 下，选择 **Deals and customers from Bitrix24**。

	
1. 在 **Upload data from Bitrix24** 页面，点击 **Install**。

	
1. 您将被重定向到 Bitrix24 应用商店中的 Yandex Metrica 应用页面。 安装该应用程序。

    
    {% cut "如果您无法使用此方法安装该应用程序" %}
    
    在 Bitrix24 应用商店中，找到并安装 **official free Yandex Metrica app**。
    
    
    {% endcut %}
    
1. 返回到 Yandex Metrica 中的 **Upload data from Bitrix24** 页面并在相应字段中输入您的 Bitrix24 CRM 地址。
    
1. 点击 **Connect Bitrix24**。 这将开始上传数据，可能需要几个小时。


要确保数据已上传，请打开 Yandex Metrica，然后转到 **Reports** → **Audience** → **Users and customers** → **Clients**。

## 第 3 步. 配置转化数据传输 {#step3}

Yandex Metrica 收到初始数据后，配置从 Bitrix24 到 Yandex Metrica 传输转化数据：

1. 要开始在 Yandex Metrica 中接收来自 Bitrix24 的订单，请指定您的 CRM 中的状态如何对应于 Yandex Metrica 中的状态类型。 要执行此操作，请转到 **Upload data from Bitrix24**（**Integrations** → **Transferring orders from CRM** → **Deals and customers from Bitrix24**）：
    - 您可以从 CRM 中为同一 Yandex Metrica 状态类型选择多个状态。 您可以使用 Yandex Metrica 报表中的状态类型来筛选数据并作为指标（具有不同状态类型的订单将计入不同的指标）。
    
    - 如果您在 CRM 中使用潜在客户，请启用 **Upload data from Bitrix24** 页面上的 **Upload leads** 选项。 它们将作为订单显示在 Yandex Metrica 报表中。 确保潜在客户正确传递至 **Clients** 报表，指定所有可用的客户标识符（姓名、电话号码、电子邮件）。
    
1. 上传的数据会与 Yandex Metrica 已知用户的网站会话相关联。

    [Yandex Metrica 如何将 CRM 数据链接到会话](https://yandex.com/support/metrica/zh/crm/about.md#matching)
    
    在首次数据传输期间，Yandex Metrica 接收所有客户和订单数据。 最近 21 天的订单将与会话相关联。
    
    初始传输后，Yandex Metrica 继续每小时接收数据。
    
    设置连接后，以下 "End-to-end analytics" 报表将变为可用：
    
    - [Order sources from CRM 报表](https://yandex.com/support/metrica/zh/sources/order-sources.md)分析订单来源。
    - [Sources, costs, and ROI 报表](https://yandex.com/support/metrica/zh/sources/ad-expenses.md)分析您的广告支出和广告效益。
    - [“Users and customers”报表](https://yandex.com/support/metrica/zh/general/people.md)用于在 **Clients** 选项卡上查看从 CRM 传输的所有客户及其订单。
    - 任何您可以从中选择目标的报表。 通过选择发送订单状态时所用的目标，您可以跟踪您关注的销售漏斗阶段。
    
    此外，Yandex Metrica 中还显示以下新目标：
    
    - **CRM: Order created**: 此目标计算 Yandex Metrica 中状态为 **In progress** 的订单数。
    - **CRM: Order paid**: 此目标计算 Yandex Metrica 中状态为 **Paid** 的订单数。
    - **CRM: spam order**: 此目标计算 Yandex Metrica 中状态为 **Spam** 的订单。
    - **CRM: order canceled**：此目标计算 Yandex Metrica 中状态为 **Canceled** 的订单。
    
    将它们应用于 Yandex Direct 转化策略中，并且只为关键业务活动付费。 例如，仅为已确认的订单付费。
    

## 删除连接 {#remove}

1. 前往 Yandex Metrica 中的 **Integrations** 页面。
1. 在 **Customers and orders from CRM** 下，点击 **Integration with CRM** 并选择 Bitrix24。
1. 在 **Upload data from Bitrix24** 页面，点击 **Delete connection**。

新数据将不再上传到 Yandex Metrica，累积的统计数据将继续显示在报表中。

<!-- source: zh/_includes/buttons/chat-button.md -->
[与我们聊天](https://yandex.com/chat/#/user/036e6a02-3620-9cdc-4c5e-a34667a7379e?utm_source=spravka){.button}

<!-- source: zh/_includes/styles/href-to-button.md -->

<!-- endsource: zh/_includes/styles/href-to-button.md -->
<!-- endsource: zh/_includes/buttons/chat-button.md -->

<!-- source: zh/_includes/sources/support-button.md -->
<div class="cut-button">

{% cut "发送电子邮件" %}


<div style="padding: 15px;
     margin: 10px 0;
     background: #FFFFFF;
     border-radius: 10px;
     border: 1px solid var(--g-color-line-generic);">
  <iframe style="background: #FFFFFF;"
        height="700"
        width="100%"
        frameborder="0"
        src="https://forms.yandex.com/surveys/10019201.1cb990cef225b369d8f28f4d76817c247f25992d/?&iframe=1&lang=en">
  </iframe>
</div>

{% endcut %}

</div>

<!-- source: zh/_includes/styles/cut-button.md -->

<!-- endsource: zh/_includes/styles/cut-button.md -->
<!-- endsource: zh/_includes/sources/support-button.md -->

<!-- source: zh/_includes/footer-links.md -->
- - -

<div class="borderless-table">

#|
||
实用链接

- [演示计数器](https://metrica.yandex.com/r/dashboard?)
- [添加计数器](https://metrica.yandex.com/add/)
- [免费计数器设置](https://yandex.com/promo/freeservice/metrica?utm_source=help_metrica_en&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com/metrika/)
- [提出您的想法](https://yandex.com/support/metrica/troubleshooting/idea.html)
|
线上培训



- [参加培训课程](https://yandex.com/adv/edu/online/metrika?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)

||
|#

</div>

<!-- source: zh/_includes/styles/table-style.md -->

<!-- endsource: zh/_includes/styles/table-style.md -->
<!-- endsource: zh/_includes/footer-links.md -->
