Checking the transmission of content analytics
After marking up your site content, check that the data is passed to Yandex Metrica properly. The check is also suitable for verifying microdata on Turbo pages.
To ensure that the marked-up data is being transferred, do the following:
-
In the browser, open a site page with marked up content.
-
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
-
At the bottom of the page, click
. The debug panel appears.
为了在特定计数器的不同数据之间切换时能够轻松导航,请点击
。 这样,如果您打开新选项卡,Yandex Metrica 便会记住您已进行的更改。
备注
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.
If the markup is set up correctly, the type of markup and information about the marked-up material will be displayed in the section on the Publishers tab. Detailed data is available in the Console tab.
You can also log your actions when working with the debugger.
You can get complete statistics for the content with text longer than 500 characters. If there are less than 500 characters in the marked up article, the console warns you about that when checking the micro markup.
Checking via the browser console
如果您的网站有旧版本的 Yandex Metrica 计数器,请使用此方法。
-
In the browser, open a site page with marked up content.
-
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
-
Open the browser console with the keyboard shortcut Ctrl + Shift + J (⌥ + ⌘ + J for Apple OS).
If the markup is configured correctly, the console will display:
- 1 — The markup type specified in the tag settings.
- 2 — The marked up data that is passed to Yandex Metrica. If this information is missing in the console, check the marked up content. To do this, contact your webmaster.
You can get complete statistics for the content with text longer than 500 characters. If there are less than 500 characters in the marked up article, the console warns you about that when checking the micro markup: