---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.1
alternate:
  - https://www.yandex.com/support/metrica/en/uploading-data/cloud.md
  - https://www.yandex.com/support/metrica/es/uploading-data/cloud.md
  - https://www.yandex.com/support/metrica/pt/uploading-data/cloud.md
  - https://www.yandex.com/support/metrica/ru/uploading-data/cloud.md
  - https://www.yandex.com/support/metrica/tr/uploading-data/cloud.md
  - https://www.yandex.com/support/metrica/zh/uploading-data/cloud.md
  - href: zh/uploading-data/cloud.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: 数据流（与 Yandex Cloud 集成）
description: "通过此集成，您可以将来自 Yandex\_Metrica 的非聚合数据收集到 Yandex\_Cloud 中托管的 ClickHouse 集群。"
---
> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.com/support/metrica/zh/llms.txt


# 数据流（与 Yandex Cloud 集成）

通过此集成，您可以将来自 [Yandex Metrica](https://metrica.yandex.com/) 的非聚合数据收集到 Yandex Cloud 中Yandex Cloud 中[托管的 ClickHouse 集群](https://yandex.cloud/en-ru/services/managed-clickhouse)。


{% note alert %}

下面详述的集成在数据格式方面与 Logs API 不向后兼容。

{% endnote %}

- **实时数据流（流式上传）**。 事件发生时间与将其记录添加到 ClickHouse 之间的延迟不超过 15 分钟。

- **存档数据导出**。 您可以导出计数器在其整个存在期间或特定时间范围内的数据。 在 Yandex Metrica Pro 仪表板的 **Cloud integration** 选项卡中启动导出时，设置所需的参数。
  
   {% note warning %}

   - 您同时最多只能运行 10 个导出任务。
   - 导出时段结束日期必须至少早于当前日期 7 天。 例如，8 月 14 日，您可以导出截至 8 月 6 日（含）的数据。
  
  {% endnote %}

- **与 [Logs API](https://yandex.ru/dev/metrika/doc/api2/logs/intro.html) 相比的扩展字段集**：
    
    #|
    ||
    **Category**
    |
    **字段**
    ||
    ||
    内容分析数据
    |
    - 文章主题和作者。
    - 流量来源。
    - 点击网站上的其他文章。
    - 引用当前文章的文章 ID。
    - 文章浏览时间。
    - 完整滚动。
    ||
    ||
    流量来源详细
    |
    - Yandex Direct 广告点击 ID (YCLID)。
    - 广告 ID。
    - 投放网站。
    - 二维码扫描。
    ||
    ||
    来自 CRM 的客户和订单数据
    |
    - OrderID 散列和 UserID 散列。
    - 订单版本。
    - 订单创建和更新时间。
    - 订单状态。
    - 订单中的产品名称和数量。
    ||
    |#
    
    - [命中](https://www.yandex.com/support/metrica/zh/pro/hits.md)级别中导出的字段完整列表
    
    - [会话](https://www.yandex.com/support/metrica/zh/pro/visits.md)级别中导出的字段完整列表
    

## 运行框架 {#workflow}

![](../_assets/metrika-pro-connector-cloud.svg)

## 入门 {#quick-start}

1. 注册 **Yandex Metrica Pro** 或 [Data Streaming](https://yandex.cloud/en-ru/marketplace/products/varioqub/metrica-data-streaming)。
1. [创建 ClickHouse 集群](https://yandex.cloud/en-ru/docs/managed-clickhouse/operations/cluster-create)。
1. [设置连接](https://yandex.cloud/en-ru/docs/data-transfer/operations/endpoint/target/clickhouse)。
1. 在数据传输中，连接数据源。 为此，请选择数据类型（命中/会话）、必填字段，并指定：
    - 您想要导出其数据的计数器。
    - 对计数器具有编辑权限的用户的 OAuth 令牌。
	- 日期范围（导出历史数据时使用）。
    
1. 在源和目标之间创建传输。 如果您要导出历史数据，请选择 **Copying** 传输类型。 对于流式传输，请选择 **Replication**。
1. 设置[传输状态监控](https://yandex.cloud/ru/docs/data-transfer/operations/monitoring)和警报。
1. 开始传输。

[如何将数据从 Yandex Metrica 导入到 ClickHouse 数据集市](https://yandex.cloud/en-ru/docs/data-transfer/tutorials/metrika-to-clickhouse)

启动传输后，只要所有参数有效且用户具有相关权限，数据传输将开始接收、处理并将数据保存到指定的 ClickHouse 集群中。

您可以删除您的计数器。 这样做将停止导出存档数据以及数据流。

要监控传输过程，您可以查看数据传输中的指标和日志。 此外，您还可以禁用或修改传输。

您可以在 [Yandex Metrica Pro 仪表板](https://www.yandex.com/support/metrica/zh/pro/monitoring-transfer.md)中管理您的 Yandex Cloud 传输：

1. 转到 **Cloud integration** 选项卡。
1. 选择组织计数器。
1. 查看您的活跃传输。 若需要，请从传输中移除计数器。

[如何在 Yandex Metrica Pro 中处理数据](https://www.yandex.com/support/metrica/zh/pro/data-work.md)

<!-- 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/pro/support-button.md -->
<div class="cut-button">

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

<!-- source: zh/_includes/popup/id-popup/wrong-sup.md -->
请注意：我们的支持团队永远不会主动给您打电话。 请勿按照自称为 Yandex Metrica 支持团队来电者的指示操作。
<!-- endsource: zh/_includes/popup/id-popup/wrong-sup.md -->

<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/13470764.a1e88715348b88bbfc3fe42a9f189f1ebd4b220d/?&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/pro/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 -->
