---
metadata:
  - name: generator
    content: Diplodoc Platform v5.66.1
alternate:
  - https://www.yandex.ru/support/metrica/en/general/check-counter.md
  - https://www.yandex.ru/support/metrica/es/general/check-counter.md
  - https://www.yandex.ru/support/metrica/pt/general/check-counter.md
  - https://www.yandex.ru/support/metrica/ru/general/check-counter.md
  - https://www.yandex.ru/support/metrica/tr/general/check-counter.md
  - href: https://www.yandex.ru/support/metrica/en/general/check-counter.md
    type: text/markdown
    title: Markdown version
  - href: https://www.yandex.ru/support/metrica/en/llms.txt?revision=r22041621
    rel: describedby
title: Checking the tag
description: After creating and adding the tag snippet to the site, you can make sure it is placed on the site pages and works correctly.
---
> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.ru/support/metrica/en/llms.txt?revision=r22041621


# Checking the tag

After [creating and adding the tag snippet to the site](https://www.yandex.ru/support/metrica/en/general/creating-counter.md), you can make sure it is placed on the site pages and works correctly.


{% note tip %}

Make sure the tag is installed correctly every time changes are made to the site, for example, when new pages or sections appear.

{% endnote %}


## Step 1. Check if the tag is placed on the site {#status}

{% note info %}

You can't check for [automatic tags](https://www.yandex.ru/support/metrica/en/general/auto-tag.md) or tags installed on [Turbo sites](https://yandex.ru/support/direct/ru/efficiency/turbo-pages).

{% endnote %}

1. Go to Yandex Metrica and find the tag you want to check in the list.
1. Go to **Settings**, then **Check for tag**.
1. In the field, specify the URL of the page you want to make sure the tag is placed on. For example, `https://example.com/page/`. By default, the field displays the URL of the most viewed page over the past 30 days.

Yandex Metrica will start searching the page you specified for the tag whose settings you are viewing. It will open in a new browser tab. If Yandex Metrica finds the tag, a message confirming the tag is placed on the website will appear on the page.

**Common reasons why Yandex Metrica couldn't find a tag**

 
:   #|
    ||
    **Reason**
    |
    **Recommendation**
    ||
    ||
    The tag snippet loads with a delay or the tag loads after performing a specific action on the site.
    |
    Wait a while or perform the action that should trigger the tag to load.
    ||
    ||
    The tag is blocked by the [Adblock Plus](https://adblockplus.org) extension, other scripts, or a firewall.
    |
    Use the browser console to check whether Adblock Plus or other scripts are enabled.
    ||
    ||
    The tag isn't installed on the site page, is installed incorrectly, or was removed from the page.
    |
    Make sure the tag is installed correctly using the special parameter from step 2 below.
    ||
    |#

## Step 2. Check data collection {#check-data}

To see what data the tag collects:

1. Append the `ym_debug=2` parameter to the page URL in the browser’s address bar and reload the page.

    ```httpget
    http://example.com/?_ym_debug=2
    ```
    
1. At the bottom of the page, click ![](../_assets/debug2.svg). The debug panel appears. Look at the **Counters** tab.
    
    {% note info %}
    
    The `_ym_debug=2` parameter only works if the [new Yandex Metrica code snippet](https://www.yandex.ru/support/metrica/en/general/tag-info.md) is installed on the website. If you have an older version of the code snippet or the debug panel doesn't appear, use the [browser console](#debug1).
    
    {% endnote %}
    
    If the tab displays information about the tag number and settings, it means that the tag is working correctly.
    
    Information about actions performed on the website, such as viewing the page (PageView), is available on the **Console** tab.
    
    <!-- source: en/_includes/popup/id-debug/navig.md -->
    For ease of navigation when switching between different data for a particular tag, click ![](../_assets/debug2-checkbox.png). This way, Yandex Metrica remembers the changes you've made if you open a new tab.
    <!-- endsource: en/_includes/popup/id-debug/navig.md -->
    
    
    ![](../_assets/debug2-counters.png){.border-yes}
    
You can also [log your actions](https://www.yandex.ru/support/metrica/en/general/debugger.md#logs) when working with the debugger.

To close the debugger, open the additional settings ![](../_assets/menu-button.svg) and click **Close debugger**. You can also close the debugger by appending `?_ym_debug=0` to the page URL.

{#debug1}

<!-- source: en/_includes/popup/id-debug/intro.md -->
Use this method if your website has an older version of the Yandex Metrica tag.
<!-- endsource: en/_includes/popup/id-debug/intro.md -->

1. Append the `ym_debug=2` parameter to the page URL in the browser’s address bar and reload the page.
    ```httpget
    http://example.com/?_ym_debug=2
    ```
    
1. Open the browser console with the keyboard shortcut **Ctrl** + **Shift** + **J** (**⌥** + **⌘** + **J** for Apple OS).
    If the console displays information about the tag number and the action on the page (for example, [PageView](*PageView)), then the tag is working correctly. [See](#data) what other events may be displayed in the browser console.
    
    ![](../_assets/pageview_1.png){.border-yes}


**Reasons why data is missing in the console**

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

To solve the issue, please contact the person responsible for maintaining the website.

## Step 3. Check statistics display {#stat}

To see how many users visit the site page where you confirmed the tag is present, go to Yandex Metrica, select **Settings**, and perform **step 3** under **Check for tag**: open the [Popular report](https://www.yandex.ru/support/metrica/en/content/popular.md). The segment for viewing the URL you specified will be configured in the report.

Information may be missing in the report if the specified site page had no visitors for the selected period. If there is data in the browser console and you are sure that users visit the page, but the report isn’t displayed, check the tag settings in the **Filters** tab:

- If the filters are too strict, you can remove the ones you don’t need.
- If **Don't count my sessions** is set as a filter, try opening the site in your browser in "Incognito mode".

## What data is available in the debug panel {#data-debug}

When checking a tag, you can switch between the following tabs:

{% cut "Counters" %}

Shows information about the tag installed on a page.

{% endcut %}

{% cut "Publishers" %}

Contains data on the presence of [content analytics markup](https://www.yandex.ru/support/metrica/en/publishers/about.md).

{% endcut %}

{% cut "E-commerce" %}

Contains [e-commerce](https://www.yandex.ru/support/metrica/en/ecommerce/about.md) data.

{% endcut %}

{% cut "Parameters" %}

Contains information about sent [user](https://www.yandex.ru/support/metrica/en/data/user-params-data.md) and [session](https://www.yandex.ru/support/metrica/en/data/visit-params-data.md) parameters.

{% endcut %}

{% cut "Events" %}

Helps you track conversions for [goals](https://www.yandex.ru/support/metrica/en/general/goals.md) configured for the tag, including [auto-goals](https://www.yandex.ru/support/metrica/en/general/auto-goals.md).

{% endcut %}

## What data is available in the browser console when using the browser console {#data}

When checking the tag, you may see the following data in the browser console:

{% cut "Page views" %}

The `PageView` string displays information about page views.

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

{% endcut %}

{% cut "Content data" %}

A message confirming that marked-up content for collecting statistics on [content analytics](https://www.yandex.ru/support/metrica/en/publishers/about.md) is placed on the site.

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

{% endcut %}

{% cut "Conversion" %}

For example, the `Reach goal` string indicates a [reachGoal](https://www.yandex.ru/support/metrica/en/objects/reachgoal.md) method call when [Goal via JavaScript events](https://www.yandex.ru/support/metrica/en/general/goal-js-event.md) is configured. 

[Other target events](https://www.yandex.ru/support/metrica/en/general/check-goal.md)

![](../_assets/check-goal-js.png){.border-yes}

{% endcut %}

{% cut "E-commerce data" %}

- Product view — displays a string of the following format: 

  ```
  Params. Counter <tag number>. Params: {"__ym":{"ecommerce":[{"detail":{"products":[{"id":"111","name":"","price":,"category":""}]}}]}}
  ``` 

	
  For example:
	
  ![](../_assets/ecom-detail.png){.border-yes}
	

- Adding an item to the shopping cart — displays a string of the following format: 

  ```
  Params. Counter <tag number>. Params: {"__ym":{"ecommerce":[{"add":{"products":[{"id":"111","name":"","price":,"category":""}]}}]}}
  ```
- Purchase — displays a string of the following format: 

  ```
  Params. Counter <tag number>. Params: {"__ym":{"ecommerce":[{"purchase":{"products":[{"id":"111","name":"","price":,"category":""}]}}]}}
  ```
  
- Removing an item from the shopping cart — displays a string of the following format: 

  ```
  Params. Counter <tag number>. Params: {"__ym":{"ecommerce":[{"remove":{"products":[{"id":"111","name":"","price":,"category":""}]}}]}}
  ```

[Setting up events and viewing statistics](https://www.yandex.ru/support/metrica/en/ecommerce/about.md)

{% endcut %}

{% cut "Outbound click" %}

Information about outbound clicks is displayed as a string of the following format: `Ext link. Counter <tag number>. Url:`. Data about [clicks on email](https://www.yandex.ru/support/metrica/en/general/check-goal.md#email) or [phone number](https://www.yandex.ru/support/metrica/en/general/check-goal.md#tel) is displayed in the same way.

![](../_assets/ext-link-console.png){.border-yes}

{% endcut %}

{% cut "File downloads" %}

If you see a string that looks like `File. Counter  <tag number>. Url:`, it means that a user downloaded a file from your site.

![](../_assets/file-console.png){.border-yes}

{% endcut %}

{% cut "Session parameters" %}

The browser console may display [session parameters](https://www.yandex.ru/support/metrica/en/data/visit-params-data.md) if you set up transmitting this data to Yandex Metrica. If you want to track statistics about additional information in reports, parameters can help you send this information to Yandex Metrica.

![](../_assets/params-console.png){.border-yes}

{% endcut %}

## Questions and answers {#qanda}

**If metrics have dropped, does this mean the tag isn't working?**

 
:   There are various reasons why statistics may drop. To make sure the tag is working, [check it](https://www.yandex.ru/support/metrica/en/general/check-counter.md) (on the main and other pages of the site). To find out why metrics have dropped:
    - Look at the statistics page by page, for example, in the [Popular](https://www.yandex.ru/support/metrica/en/content/popular.md) report.
    - Determine which sources show a [decrease in the number of sessions](https://www.yandex.ru/support/metrica/en/sources/sources-summary.md). It may be because of the traffic-attracting channels.


## Learn more

- [How to track your own site sessions](https://yandex.ru/blog/metrika-club/gid-po-metrike-kak-otslezhivat-sobstvennye-vizity-na-sayt)
- [Guide to Yandex Metrica: how to create a Yandex Metrica tag](https://yandex.ru/blog/metrika-club/gid-po-metrike-kak-sozdat-schetchik-metriki)
- [Guide to Yandex Metrica: How to install a Yandex Metrica tag](https://yandex.ru/blog/metrika-club/gid-po-metrike-ustanovka-schetchika)
- [Guide to Yandex Metrica: Tag settings](https://yandex.ru/blog/metrika-club/gid-po-metrike-nastroyki-schetchika)


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

[Message on Telegram](https://t.me/metrika_yandex_support_bot){.button}

[Message on MAX](https://max.ru/yandex_metrika_bot){.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.ru/surveys/1706/?&iframe=1&lang=en">
  </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/footer-links.md -->
- - -

<div class="borderless-table">

#|
||
Useful links

- [Demo tag](https://metrika.yandex.com/r/dashboard?)
- [Add a tag](https://metrika.yandex.com/add/)
- [Yandex Metrica API](https://tech.yandex.com/metrika/)
- [Suggest your idea](https://yandex.com/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.ru/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/border-style.md -->

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

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

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

[*PageView]: Notifies you when the page is viewed or updated.