{"id":137539,"date":"2021-03-09T10:32:02","date_gmt":"2021-03-09T10:32:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/fast-yandex-metrika\/"},"modified":"2025-04-15T12:14:08","modified_gmt":"2025-04-15T12:14:08","slug":"fast-yandex-metrika","status":"publish","type":"plugin","link":"https:\/\/ewe.wordpress.org\/plugins\/fast-yandex-metrika\/","author":16987240,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.5","stable_tag":"1.1.5","tested":"6.8.5","requires":"6.8","requires_php":"8.1","requires_plugins":null,"header_name":"Fast Yandex Metrika","header_author":"Sergey Parshin","header_description":"Plugin for configuring the counter and Yandex Metrica goals.","assets_banners_color":"4c4c4e","last_updated":"2025-04-15 12:14:08","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/yoomoney.ru\/to\/4100183504074\/200","header_plugin_uri":"https:\/\/ru.wordpress.org\/plugins\/fast-yandex-metrika\/","header_author_uri":"https:\/\/t.me\/contentreactor","rating":0,"author_block_rating":0,"active_installs":200,"downloads":4501,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"pss777","date":"2021-03-14 19:39:39"},"1.1":{"tag":"1.1","author":"pss777","date":"2021-03-15 11:36:56"},"1.1.1":{"tag":"1.1.1","author":"pss777","date":"2021-03-20 20:18:51"},"1.1.2":{"tag":"1.1.2","author":"pss777","date":"2021-03-21 08:26:41"},"1.1.3":{"tag":"1.1.3","author":"pss777","date":"2021-09-04 10:01:02"},"1.1.4":{"tag":"1.1.4","author":"pss777","date":"2024-09-27 13:22:23"},"1.1.5":{"tag":"1.1.5","author":"pss777","date":"2025-04-15 12:14:08"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2490452,"resolution":"128x128","location":"assets","locale":""},"icon-128x128.png":{"filename":"icon-128x128.png","revision":2490452,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2490452,"resolution":"256x256","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2490452,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2490452,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2490452,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5"],"block_files":[],"assets_screenshots":{"screenshot-01.png":{"filename":"screenshot-01.png","revision":2495224,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Settings page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3590,34827,66833,20562,2160],"plugin_category":[55],"plugin_contributors":[197125],"plugin_business_model":[],"class_list":["post-137539","plugin","type-plugin","status-publish","hentry","plugin_tags-3590","plugin_tags-34827","plugin_tags-metrica","plugin_tags-metrika","plugin_tags-yandex","plugin_category-seo-and-marketing","plugin_contributors-pss777","plugin_committers-pss777"],"banners":{"banner":"https:\/\/ps.w.org\/fast-yandex-metrika\/assets\/banner-772x250.png?rev=2490452","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/fast-yandex-metrika\/assets\/icon-128x128.png?rev=2490452","icon_2x":"https:\/\/ps.w.org\/fast-yandex-metrika\/assets\/icon-256x256.png?rev=2490452","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/fast-yandex-metrika\/assets\/screenshot-01.png?rev=2495224","caption":"Settings page"}],"raw_content":"<!--section=description-->\n<p>Plugin for configuring the counter and Yandex Metrica goals.<\/p>\n\n<h4>Features<\/h4>\n\n<p><strong>Supports the following counter settings:<\/strong><\/p>\n\n<ul>\n<li>whether to collect data for a click map;<\/li>\n<li>track clicks on outbound links;<\/li>\n<li>accurate bounce rate;<\/li>\n<li>whether to use Session Replay (Webvisor 2.0);<\/li>\n<li>hash tracking in the browser's address bar.<\/li>\n<\/ul>\n\n<p><strong>Loading by event:<\/strong><\/p>\n\n<ul>\n<li>scroll: when the page starts scrolling (recommended if the counter script affects the speed of the site);<\/li>\n<li>ready: after building the HTML document, but before loading external resources: styles, scripts, images, etc.<\/li>\n<\/ul>\n\n<p><strong>Embedding in HTML:<\/strong><\/p>\n\n<ul>\n<li>adding before &lt;\/head&gt;;<\/li>\n<li>adding after &lt;body&gt;;<\/li>\n<li>adding before &lt;\/body&gt;.<\/li>\n<\/ul>\n\n<p><strong>Easy goal setting for:<\/strong><\/p>\n\n<ul>\n<li>phone;<\/li>\n<li>form;<\/li>\n<li>button;<\/li>\n<li>link;<\/li>\n<li>HTML tag.<\/li>\n<\/ul>\n\n<p><strong>Error control<\/strong><\/p>\n\n<p>When working with goals on the user side, the plugin monitors the correct indication of CSS selectors. \nJavaScript with a syntax violation does not cause an error, but fixes it in the browser console (F12).<\/p>\n\n<p><em>Goal #1. SyntaxError: Failed to execute 'querySelectorAll' on 'Document': '.class 777' is not a valid selector.<\/em><\/p>\n\n<p>To see information about errors, in the plugin settings, enable the \"Error control in the browser console\" option.<\/p>\n\n<p>https:\/\/www.youtube.com\/watch?v=tr9teIOTOqk<\/p>\n\n<!--section=installation-->\n<h4>From your WordPress dashboard<\/h4>\n\n<ol>\n<li>Visit \"Plugins &gt; Add New\".<\/li>\n<li>Search for \"Fast Yandex Metrika\".<\/li>\n<li>Activate plugin from your Plugins page.<\/li>\n<li>Visit \"Settings &gt; Yandex.Metrica\".<\/li>\n<li>Enter the counter number on the settings page.<\/li>\n<\/ol>\n\n<h4>From WordPress.org<\/h4>\n\n<ol>\n<li>Download Fast Yandex Metrika.<\/li>\n<li>Upload the plugin directory to your \"\/wp-content\/plugins\/\" directory, using your favorite method (ftp, sftp, scp, etc...).<\/li>\n<li>Activate plugin from your Plugins page.<\/li>\n<li>Visit \"Settings &gt; Yandex.Metrica\".<\/li>\n<li>Enter the counter number on the settings page.<\/li>\n<\/ol>\n\n<h4>Need help?<\/h4>\n\n<p>Contact me at <a href=\"https:\/\/t.me\/contentreactor\">Telegram<\/a>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20to%20set%20up%20goals%3F'><h3>How to set up goals?<\/h3><\/dt>\n<dd><p>Before adding a goal, you need to create it in Yandex Metrica.<\/p>\n\n<p><strong>Phone<\/strong><\/p>\n\n<ol>\n<li>In the drop-down list, select \"Phone (WhatsApp)\".<\/li>\n<li>Enter the name of the goal. For example: phone.<\/li>\n<li>Enter the CSS selector in the format: tel:7XXXXXXXXXX.<\/li>\n<\/ol>\n\n<p>&lt;a href=&quot;tel:7XXXXXXXXXX&quot;&gt;+7 (XXX) XXX-XX-XX&lt;\/a&gt;<\/p>\n\n<p><strong>WhatsApp<\/strong><\/p>\n\n<ol>\n<li>In the drop-down list, select \"Phone (WhatsApp)\".<\/li>\n<li>Enter the name of the goal. For example: whatsapp.<\/li>\n<li>Write the CSS selector in the format: https:\/\/wa.me\/7XXXXXXXXXX.<\/li>\n<\/ol>\n\n<p>&lt;a href=&quot;https:\/\/wa.me\/7XXXXXXXXXX&quot;&gt;+7 (XXX) XXX-XX-XX&lt;\/a&gt;<\/p>\n\n<p><em>If your WhatsApp link looks like \"https:\/\/wa.me\/7XXXXXXXXXX?text=Text&amp;source=&amp;data=\", in the goal settings, specify \"https:\/\/wa.me\/7XXXXXXXXXX\". The script will still find the desired link on the page.<\/em><\/p>\n\n<p><strong>Form<\/strong><\/p>\n\n<ol>\n<li>In the drop-down list, select \"Form\".<\/li>\n<li>Enter the name of the goal. For example: form.<\/li>\n<li>Write the CSS selector in the format: #id_form or .class-form.<\/li>\n<\/ol>\n\n<p>&lt;form id=&quot;id_form&quot; class=&quot;class-form&quot; ... &gt;...&lt;\/form&gt;<\/p>\n\n<p><strong>Button<\/strong><\/p>\n\n<ol>\n<li>Select \"Button\" from the drop-down list.<\/li>\n<li>Enter the name of the goal. For example: button.<\/li>\n<li>Enter the CSS selector in the format: #id_button or .class_button.<\/li>\n<\/ol>\n\n<p>&lt;button id=&quot;id_button&quot; class=&quot;class-button&quot;&gt;...&lt;\/button&gt;<\/p>\n\n<p><strong>Link<\/strong><\/p>\n\n<ol>\n<li>In the drop-down list, select \"Link\".<\/li>\n<li>Enter the name of the goal. For example: links.<\/li>\n<li>Write the CSS selector in the format: https:\/\/example.com\/path\/sub\/?param=value&amp;param1=value.<\/li>\n<\/ol>\n\n<p>&lt;a href=&quot;https:\/\/example.com\/path\/sub\/?param=value&amp;param1=value&quot;&gt;example.com&lt;\/a&gt;<\/p>\n\n<p><em>The link can be as full as \"https:\/\/example.com\/path\/sub\/?param=value&amp;param1=value\", and short \"https:\/\/example.com\/path\/sub\/\", the script will still find it on the page. As GET parameters, the Cyrillic alphabet is not allowed.<\/em><\/p>\n\n<p><strong>HTML tag<\/strong><\/p>\n\n<p>Allows you to set complex CSS selectors: header .contacts &gt; div:nth-child(3) a[href= \"tel:7XXXXXXXXXX\"].<\/p><\/dd>\n<dt id='how%20to%20differentiate%20clicks%20on%20the%20phone%20%28header%2C%20footer%2C%20sidebar%2C%20content%29%3F'><h3>How to differentiate clicks on the phone (header, footer, sidebar, content)?<\/h3><\/dt>\n<dd><p><strong>Header<\/strong><\/p>\n\n<ol>\n<li>Select \"HTML tag\" from the drop-down list.<\/li>\n<li>Enter the name of the goal. For example: header_phone.<\/li>\n<li>Write the CSS selector in the format: header a[href= &quot;tel:7XXXXXXXXXX &quot;].<\/li>\n<\/ol>\n\n<p>&lt;header&gt; ... &lt;a href=&quot;tel:7XXXXXXXXXX&quot;&gt;+7 (XXX) XXX-XX-XX&lt;\/a&gt; ... &lt;\/headre&gt;<\/p>\n\n<p><strong>Footer<\/strong><\/p>\n\n<ol>\n<li>Select \"HTML tag\" from the drop-down list.<\/li>\n<li>Enter the name of the goal. For example: footer_phone.<\/li>\n<li>Write the CSS selector in the format: footer a[href= &quot;tel:7XXXXXXXXXX &quot;].<\/li>\n<\/ol>\n\n<p>&lt;footer&gt; ... &lt;a href=&quot;tel:7XXXXXXXXXX&quot;&gt;+7 (XXX) XXX-XX-XX&lt;\/a&gt; ... &lt;\/footer&gt;<\/p>\n\n<p><strong>Sidebar<\/strong><\/p>\n\n<ol>\n<li>Select \"HTML tag\" from the drop-down list.<\/li>\n<li>Enter the name of the goal. For example: sidebar_phone.<\/li>\n<li>Write the CSS selector in the format: aside a[href= &quot;tel:7XXXXXXXXXX &quot;].<\/li>\n<\/ol>\n\n<p>&lt;aside&gt; ... &lt;a href=&quot;tel:7XXXXXXXXXX&quot;&gt;+7 (XXX) XXX-XX-XX&lt;\/a&gt; ... &lt;\/aside&gt;<\/p>\n\n<p><strong>Content<\/strong><\/p>\n\n<ol>\n<li>Select \"HTML tag\" from the drop-down list.<\/li>\n<li>Enter the name of the goal. For example: article_phone.<\/li>\n<li>Write the CSS selector in the format: article a[href= &quot;tel:7XXXXXXXXXX &quot;].<\/li>\n<\/ol>\n\n<p>&lt;article&gt; ... &lt;a href=&quot;tel:7XXXXXXXXXX&quot;&gt;+7 (XXX) XXX-XX-XX&lt;\/a&gt; ... &lt;\/article&gt;<\/p>\n\n<p><em>There can be many variations, and you don't have to link to header, footer, aside, or article. You can use .class or #id, as long as the selector belongs to the parent element of the HTML markup.<\/em><\/p>\n\n<p><em>.content a[href=&quot;tel:7XXXXXXXXXX&quot;]<\/em><\/p>\n\n<p><em>&lt;div class=&quot;content&quot;&gt; ... &lt;a href=&quot;tel:7XXXXXXXXXX&quot;&gt;+7 (XXX) XXX-XX-XX&lt;\/a&gt; ... &lt;\/div&gt;<\/em><\/p><\/dd>\n<dt id='how%20to%20track%20clicks%20on%20the%20order%20buttons%20in%20the%20price%20list%3F'><h3>How to track clicks on the order buttons in the price list?<\/h3><\/dt>\n<dd><p><strong>Table<\/strong><\/p>\n\n<ol>\n<li>Select \"HTML tag\" from the drop-down list.<\/li>\n<li>Enter the name of the goal. For example: order_table.<\/li>\n<li>Write the CSS selector in the format: table button.<\/li>\n<\/ol>\n\n<p>&lt;table&gt; ... &lt;button&gt;Order&lt;\/button&gt; ... &lt;\/table&gt;<\/p>\n\n<p><strong>Block layout<\/strong><\/p>\n\n<ol>\n<li>Select \"HTML tag\" from the drop-down list.<\/li>\n<li>Enter the name of the goal. For example: order_price.<\/li>\n<li>Enter the CSS selector in the format: .price a.order.<\/li>\n<\/ol>\n\n<p>&lt;div class=&quot;price&quot;&gt; ... &lt;a class=&quot;order&quot;&gt;Order&lt;\/a&gt; ... &lt;\/div&gt;<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>Fix - updated JS code of the counter.<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Fix - changed JS code.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Fix - changed the method of inserting the JS code of the counter after opening the body tag.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Fix - changed the method of inserting the counter's JS code.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fix - the counter was not displayed on the main page of the site.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Support for complex CSS selectors.<\/li>\n<li>Control of CSS selector errors in the browser console.<\/li>\n<li>If the JavaScript syntax is violated by specifying an incorrect CSS target selector, this part of the script is not executed and does not cause an error.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version with basic features.<\/li>\n<\/ul>","raw_excerpt":"Plugin for configuring the counter and Yandex Metrica goals.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/137539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=137539"}],"author":[{"embeddable":true,"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pss777"}],"wp:attachment":[{"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=137539"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=137539"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=137539"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=137539"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=137539"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ewe.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=137539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}