---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.4
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/construct-3/metrica.md
  - https://yandex.com/dev/games/doc/ru/sdk/construct-3/metrica.md
  - https://yandex.com/dev/games/doc/tr/sdk/construct-3/metrica.md
  - https://yandex.com/dev/games/doc/zh/sdk/construct-3/metrica.md
  - href: zh/sdk/construct-3/metrica.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/zh/llms.txt

# Yandex Metrica

<!-- source: zh/_includes/script-common.md -->
<!-- source: zh/_includes/script/index-js.md -->

<!-- endsource: zh/_includes/script/index-js.md -->

<!-- source: zh/_includes/script/requirements-js.md -->

<!-- endsource: zh/_includes/script/requirements-js.md -->

<!-- source: zh/_includes/script/image-modal-js.md -->

<!-- endsource: zh/_includes/script/image-modal-js.md -->
<!-- endsource: zh/_includes/script-common.md -->

要在 [Yandex Metrica](https://metrika.yandex.com){.external} 中跟踪指标和目标，请在插件属性中指定计数器 ID：

![](../../_images/construct-3/metrica/how-to-setup.webp =500x)



## 发送目标 {#send-goal}

要向 Yandex Metrica 发送目标，请使用 **Send goal** 操作。它接受以下参数：

#|
|| **参数** | **类型** | **描述** ||
|| **Goal name** | `string` | Yandex Metrica 中的目标名称。 ||
|| **Additional goal data** | `JSON` | 将发送到 Yandex Metrica 的可选附加数据。 ||
|#

### 示例 {#example}

![](../../_images/construct-3/metrica/example.webp)


---


<!-- source: zh/_includes/button-git.md -->
<a href="https://github.com/yandex-games-plugins/construct3">
  <span class="button">存储库</span>
</a>
<!-- endsource: zh/_includes/button-git.md -->
