Checking a goal

Note

Note the Don't count my sessions option (Settings → Filters). If it's enabled, follow these steps in private browsing mode (for example, Incognito mode in Yandex Browser).

To check conversions for goals:

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

    http://example.com/?_ym_debug=2
    
  2. Perform the targeted action on the page. At the bottom of the page, click . The debug panel appears.

    For ease of navigation when switching between different data for a particular tag, click . This way, Yandex Metrica remembers the changes you've made if you open a new tab.

    Note

    The _ym_debug=2 parameter only works if the new Yandex Metrica code snippet 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.

  3. Information about conversions is available on the Events and Console tabs (the latter provides more details). The Events tab contains the number of your tag and information about the completed action. The action differs depending on the type of goal being checked:

    Page view

    In this case, the Console tab shows a PageView action and indicates that the page has been viewed or refreshed.

    JavaScript event

    In this case, the Console tab shows the name of the goal passed in the reachGoal method that is used on the page. In addition, the Events tab displays information about conversions.

    Click on phone number

    If the Events tab displays information about the click and shows the clicked phone number, this means the goal is set up correctly.

    Click on email

    If the Events tab displays information about the click and shows the clicked email address, this means the goal is set up correctly.

    Button click

    Make sure that the Events tab contains information about the conversion and that the conversion is reflected in reports, such as the Conversions report.

    Form submission

    Make sure that the Events tab contains information about the form submission and that the conversion is reflected in reports, such as the Conversions report.

    Open messenger

    If you see information about your click on the messaging app under Events, this means the goal is set up correctly.

Use this method if your website has an older version of the Yandex Metrica tag.

To check conversions via the dashboard:

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

    http://example.com/?_ym_debug=1
    
  2. Open the browser console with the keyboard shortcut Ctrl + Shift + J ( + + J for Apple OS).

  3. Perform the targeted action on the page. In the console, you will see the number of your tag and information about the completed action. The action differs depending on the type of goal being checked:

    Page view

    In this case, PageView is displayed, notifying you when the page is viewed or updated.

    JavaScript event

    In this case, the Reach goal string notifies that the reachGoal method used on the page is called.

    Click on a phone number

    If the console displays the Ext link. Counter XXXXXX. Url: tel:+XXXXXXXXXXX string with the phone number you are checking clicks on, this means the goal is set up correctly.

    Click on email

    If the console displays the Ext link. Counter XXXXXX. Url: mailto: <address> string with the email address you are checking clicks on, this means the goal is set up correctly.

    Button click

    Make sure the console shows the text Button goal. Counter 12345. Button: and the goal conversion is reflected in reports, for example, in the Conversions report.

    Form submission

    Make sure the console shows the text Form goal. Counter 12345. Form: and the goal conversion is reflected in reports, for example, in the Conversions report.

    Open messenger

    If the console displays the Ext link. Counter XXXXXX. Url: mailto: <address> string with the URL of the messenger you are checking click-throughs for, this means the goal is set up correctly.

    Site search

    If the console displays the string PageView. Counter 12345. Init. with the parameter used for searching on your site (for example, q, text, query or search), this means the goal is set up correctly.

    Transitions back from the payment system

    If the console displays the string PageView. Counter 12345. Init. and the payment system URL is specified in the Referrer string, this means the goal is set up correctly.

You can also log your actions when working with the debugger.

Data starts to appear in the Conversions report a few minutes after you create a goal. If the console or interface doesn’t show any data, it means that the goal isn’t being registered.

Why aren’t my goals registering?

Yandex Metrica may not register conversions in a variety of cases.

Click here to resolve the issue

Why the debugger doesn’t work

Reason

Recommendation

The tag is blocked by the Adblock Plus extension, other scripts, or firewall.

You can check in the browser console 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 service.

The mc.yandex.ru domain is blocked in the hosts file on your operating system.

Check your OS settings.

Chat with us

Write an email

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.

If you need to adjust the goal so that it will continue to record events other than page views, please describe the situation in the form.