---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.1
alternate:
  - https://yandex.com/support/metrica/en/general/cookie-usage.md
  - https://yandex.com/support/metrica/es/general/cookie-usage.md
  - https://yandex.com/support/metrica/pt/general/cookie-usage.md
  - https://yandex.com/support/metrica/ru/general/cookie-usage.md
  - https://yandex.com/support/metrica/tr/general/cookie-usage.md
  - https://yandex.com/support/metrica/zh/general/cookie-usage.md
  - href: zh/general/cookie-usage.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: Yandex Metrica 安装的临时文件
description: Yandex Metrica 提供有关您网站流量的非个性化信息。 为了统计网站的用户数量，Yandex Metrica 使用存储在 cookie 或 localStorage 属性中的匿名浏览器标识符。
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/metrica/zh/llms.txt


# Yandex Metrica 安装的临时文件

Yandex Metrica 提供有关您网站流量的非个性化信息。 可用的统计数据包括网站页面上的用户数量、流量来源和用户行为。 为了统计网站的用户数量，Yandex Metrica 使用存储在 cookie 或 localStorage 属性中的匿名浏览器标识符。 这些 cookie 和属性是在顶级域上设置的，例如 `.example.com`。

{% cut "Cookie" %}

<div class="striped-none">

#|
||
**名称**
|
**类型**
|
**有效期**
|
**描述**
|
**设置的域**
||
||
`_ym_metrika_enabled`
|
分析
|
60 分钟
|
检查其他 Yandex Metrica cookie 是否安装正确
|
安装计数器的域
||
||
`_ym_isad`
|
^
|
20 小时
|
用于确定访客是否有广告拦截器
|
^
||
||
`_ym_uid`
|
^
|
1 年
|
用于识别网站用户
|
^
||
||
`_ym_fa`
|
^
|
^
|
与 ym_uid cookie 配合使用的服务型 cookie，旨在识别网站用户
|
^
||
||
`_ym_d`
|
^
|
^
|
保存用户第一次网站会话的日期
|
^
||
||
`_ym_ucs`
|
^
|
^
|
`_Ym_uid` 的来源。 如果您启用服务器端 cookie 重置，则会显示
|
^
||
||
`gdpr`
|
技术
|
长达 2 年
|
用于识别属于[一般数据保护条例](https://yandex.com/support/metrica/zh/general/gdpr.md) (GDPR) 管辖范围的用户。
|
^
||
||
`_ym_debug`
|
技术
|
直至会话结束
|
表明调试模式已激活
|
^
||
||
`_ym_visorc_*`
|
分析
|
30 分钟
|
允许 Session Replay 正常运行
|
^
||
||
`_ym_hostIndex`
|
^
|
1 天
|
限制请求数量
|
^
||
||
`_ym_sup_debug`
|
技术
|
1 天
|
用于调试 Yandex Metrica 计数器
|
^
||
||
`is_gdpr`
|
技术
|
长达 2 年
|
用于识别属于[一般数据保护条例](https://yandex.com/support/metrica/zh/general/gdpr.md) (GDPR) 管辖范围的用户。
|
所有 Yandex Metrica 域
||
||
`is_gdpr_b`
|
^
|
^
|
用于识别属于[一般数据保护条例](https://yandex.com/support/metrica/zh/general/gdpr.md) (GDPR) 管辖范围的用户。
|
^
||
||
`yabs-sid`
|
技术
|
在浏览器会话中
|
会话 ID
|
^
||
||
`i`
|
技术
|
1 年
|
用于识别网站用户
|
^
||
||
`yandexuid`
|
^
|
1 年（在某些国家，期限可能更长）
|
^
|
^
||
||
`yuidss`
|
^
|
^
|
^
|
^
||
||
`ymex`
|
分析
|
1 年
|
存储 Yandex Metrica 运行的辅助信息：ID 的创建时间和替代值。
|
^
||
||
`usst`
|
^
|
^
|
存储用于在不同 Yandex 域之间同步网站用户 ID 的辅助信息
|
^
||
|#

</div>


{% endcut %}

{% cut "localStorage" %}


这些属性是在嵌入 Yandex Metrica 计数器的域上设置的。


<div class="striped-none">


#|
||
**名称**
|
**描述**
||
||
`_ym<tag ID>_lastHit`
|
用于指定时间以获得 [准确的跳出率](https://yandex.com/support/metrica/zh/general/glossary.md#failure)
||
||
`_ym<tag ID>_lsid`
|
用于识别网站用户
||
||
`_ym<tag ID>_reqNum`
|
用于确定浏览器中 Yandex Metrica 计数器的请求序号
||
||
`_ym_hide_phones`
|
允许[隐藏](https://yandex.com/support/metrica/zh/simple-goal/tel.md#hide)电话号码
||
||
`_ym_retryReqs`
|
包含计数器无法发送到服务器的请求
||
||
`_ym_uid`
|
用于识别网站用户
||
||
`zz`
|
用于识别网站用户
||
|#

</div>

{% endcut %}

{% cut "sessionStorage" %}

<div class="striped-none">

#|
||
**名称**
|
**类型**
|
**描述**
|
**设置的域**
||
||
`_ym_debugger_state`
|
技术
|
用于调试 Yandex Metrica 计数器
|
安装计数器的域
||
||
`_ym_turbo_uid`
|
^
|
区分 Turbo 页面上的用户
|
^
||
|#

</div>

{% endcut %}

<!-- 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/common/feedback7630.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/7630/?&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/common/feedback7630.md -->


[联系我们](https://yandex-ad.cn/contact){.button}


<!-- 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 -->

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

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

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

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


