---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.com.tr/support/metrica/en/general/debugger.md
  - https://yandex.com.tr/support/metrica/es/general/debugger.md
  - https://yandex.com.tr/support/metrica/pt/general/debugger.md
  - https://yandex.com.tr/support/metrica/ru/general/debugger.md
  - https://yandex.com.tr/support/metrica/tr/general/debugger.md
title: Yandex Metrica tag debugger
description: "With the debugger, you can check what data is collected by a Yandex\_Metrica tag and whether it correctly collects goals, e-commerce events, and content statistics."
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/metrica/en/llms.txt


# Yandex Metrica tag debugger

With the debugger, you can check [what data is collected by a Yandex Metrica tag](https://yandex.com.tr/support/metrica/en/general/check-counter.md) and whether it correctly collects data for:
- [Goals](https://yandex.com.tr/support/metrica/en/general/check-goal.md)
- [E-commerce events](https://yandex.com.tr/support/metrica/en/ecommerce/check.md)
- [Content statistics](https://yandex.com.tr/support/metrica/en/publishers/check-data.md)

To use the debugger, append the `_ym_debug=2` parameter to the page URL in your browser's address bar and refresh the page:

```httpget
http://example.com/?_ym_debug=2
```

![](../_assets/debug2-counters.png){.border-yes}

[What data is available in the debug panel](https://yandex.com.tr/support/metrica/en/general/check-counter.md#data-debug)

## Logging actions when using the debugger {#logs}

When working with the debugger, you can track actions and their sequence. Yandex Metrica logs actions until the end of the session. This means you can log actions performed on different website pages. When you’re done, you can check different debugger tabs to analyze the collected data.

This option is available on the **Console**, **Events**, **E-commerce**, and **Parameters** tabs.

To save action logs, in the additional settings, select **Preserve log**. This option is disabled by default, which means that action logs aren’t saved when you refresh the page.

## Why the debugger doesn’t work {#debugger}

<!-- source: en/_includes/general/creating-counter/debugger.md -->
#|
||
**Reason**
|
**Recommendation**
||
||
The tag is blocked by the [Adblock Plus](https://adblockplus.org) extension, other scripts, or a firewall.
|
You can check in the browser dashboard whether Adblock Plus or other scripts are enabled.
||
||
The tag isn’t installed on the site or is installed incorrectly. For example, the CMS modified the tag code.
|
Reinstall the tag or contact your CMS support.
||
||
The `mc.yandex.ru` domain is blocked in the `hosts` file on your operating system.
|
Check your OS settings.
||
|#
<!-- endsource: en/_includes/general/creating-counter/debugger.md -->

<!-- source: en/_includes/buttons/chat-button.md -->
[Chat with us](https://yandex.com.tr/chat/#/user/036e6a02-3620-9cdc-4c5e-a34667a7379e?utm_source=spravka){.button}

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

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

<!-- source: en/_includes/buttons/mail-button.md -->
<div class="cut-button">

{% cut "Write an email" %}

<!-- source: en/_includes/popup/id-popup/wrong-sup.md -->
Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.
<!-- endsource: en/_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.tr/surveys/1706/?&iframe=1&lang=tr">
  </iframe>
</div>

{% endcut %}

</div>

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

<!-- endsource: en/_includes/styles/cut-button.md -->
<!-- endsource: en/_includes/buttons/mail-button.md -->


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

<!-- endsource: en/_includes/styles/table-style.md -->

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

<div class="borderless-table">

#|
||
Useful links

- [Demo tag](https://metrica.yandex.com.tr/r/dashboard?)
- [Add a tag](https://metrica.yandex.com.tr/add/)
- [Free tag setup](https://yandex.com.tr/promo/freeservice/metrica?utm_source=help_metrica_tr&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com.tr/metrika/)
- [Suggest your idea](https://yandex.com.tr/support/metrica/troubleshooting/idea.html)
- [Discuss in Telegram](https://t.me/yandexmetrika)
|
Online training

- [Get a Yandex Metrica certificate](https://yandex.ru/adv/expert/exam/metrika/?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)


- [Take a training course](https://yandex.com/adv/edu/online/metrika?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)

||
|#

</div>

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

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

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

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

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

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