---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.ru/support/metrica/en/objects/method-reference.md
  - https://yandex.ru/support/metrica/es/objects/method-reference.md
  - https://yandex.ru/support/metrica/pt/objects/method-reference.md
  - https://yandex.ru/support/metrica/ru/objects/method-reference.md
  - https://yandex.ru/support/metrica/tr/objects/method-reference.md
  - https://yandex.ru/support/metrica/zh/objects/method-reference.md
  - href: zh/objects/method-reference.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: 方法
description: Ya.Metrika 对象方法。
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/metrica/zh/llms.txt


# 方法

<!-- source: zh/_includes/code/counter-initialize/id-counter-initialize/rest-js.md -->
{% note warning %}

使用 JavaScript API 需要了解 HTML 和 JavaScript。 如果您不了解这些语言，请联系您的网站开发人员或站长。

{% endnote %}
<!-- endsource: zh/_includes/code/counter-initialize/id-counter-initialize/rest-js.md -->



#|
# Методы объекта Ya.Metrika

||
**名称**
|
**描述**
||
||
[addFileExtension](https://yandex.ru/support/metrica/zh/objects/addfileextension.md)
|
添加文件扩展名支持
||
||
[extLink](https://yandex.ru/support/metrica/zh/objects/extlink.md)
|
发送有关点击外部链接的信息
||
||
[file](https://yandex.ru/support/metrica/zh/objects/file.md)
|
发送有关文件下载的信息
||
||
[firstPartyParams](https://yandex.ru/support/metrica/zh/objects/first-party-params.md)
|
发送网站用户的联系信息
||
||
[firstPartyParamsHashed](https://yandex.ru/support/metrica/zh/objects/first-party-params-hash.md)
|
发送具有数据自散列支持的网站用户的联系信息
||
||
[getClientID](https://yandex.ru/support/metrica/zh/objects/get-client-id.md)
|
获取 Yandex Metrica 分配的用户 ID
||
||
[hit](https://yandex.ru/support/metrica/zh/objects/hit.md)
|
手动发送 AJAX 和 Flash 网站的页面浏览数据
||
||
[notBounce](https://yandex.ru/support/metrica/zh/objects/notbounce.md)
|
发送有关非跳出的信息
||
||
[params](https://yandex.ru/support/metrica/zh/objects/params-method.md)
|
[Session parameters](https://yandex.ru/support/metrica/zh/data/visit-params-data.md) 报表使您能够指定要跟踪的附加用户信息
||
||
[reachGoal](https://yandex.ru/support/metrica/zh/objects/reachgoal.md)
|
转化
||
||
[setUserID](https://yandex.ru/support/metrica/zh/objects/set-user-id.md)
|
传输网站所有者设置的用户 ID
||
||
[userParams](https://yandex.ru/support/metrica/zh/objects/user-params.md)
|
向 [User Parameters](https://yandex.ru/support/metrica/zh/data/user-params-data.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/buttons/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/1706/?&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/buttons/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 -->
