Linux 软件免费装
Banner图

Fast Yandex Metrika

开发者 pss777
更新时间 2024年12月17日 15:59
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.6
版权: GPLv2 (or later)
版权网址: 版权信息

标签

statistics stats analytics tools yandex яндекс метрика metrica метрик metrik analytics tool metrika

下载

1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5

详情介绍:

Plugin for configuring the counter and Yandex Metrica goals. Features Supports the following counter settings: Loading by event: Embedding in HTML: Easy goal setting for: Error control When working with goals on the user side, the plugin monitors the correct indication of CSS selectors. JavaScript with a syntax violation does not cause an error, but fixes it in the browser console (F12). Goal #1. SyntaxError: Failed to execute 'querySelectorAll' on 'Document': '.class 777' is not a valid selector. To see information about errors, in the plugin settings, enable the "Error control in the browser console" option. https://www.youtube.com/watch?v=tr9teIOTOqk

安装:

From your WordPress dashboard
  1. Visit "Plugins > Add New".
  2. Search for "Fast Yandex Metrika".
  3. Activate plugin from your Plugins page.
  4. Visit "Settings > Yandex.Metrica".
  5. Enter the counter number on the settings page.
From WordPress.org
  1. Download Fast Yandex Metrika.
  2. Upload the plugin directory to your "/wp-content/plugins/" directory, using your favorite method (ftp, sftp, scp, etc...).
  3. Activate plugin from your Plugins page.
  4. Visit "Settings > Yandex.Metrica".
  5. Enter the counter number on the settings page.
Need help? Contact me at Telegram.

常见问题:

How to set up goals?

Before adding a goal, you need to create it in Yandex Metrica. Phone

  1. In the drop-down list, select "Phone (WhatsApp)".
  2. Enter the name of the goal. For example: phone.
  3. Enter the CSS selector in the format: tel:7XXXXXXXXXX.
<a href="tel:7XXXXXXXXXX">+7 (XXX) XXX-XX-XX</a> WhatsApp
  1. In the drop-down list, select "Phone (WhatsApp)".
  2. Enter the name of the goal. For example: whatsapp.
  3. Write the CSS selector in the format: https://wa.me/7XXXXXXXXXX.
<a href="https://wa.me/7XXXXXXXXXX">+7 (XXX) XXX-XX-XX</a> If your WhatsApp link looks like "https://wa.me/7XXXXXXXXXX?text=Text&source=&data=", in the goal settings, specify "https://wa.me/7XXXXXXXXXX". The script will still find the desired link on the page. Form
  1. In the drop-down list, select "Form".
  2. Enter the name of the goal. For example: form.
  3. Write the CSS selector in the format: #id_form or .class-form.
<form id="id_form" class="class-form" ... >...</form> Button
  1. Select "Button" from the drop-down list.
  2. Enter the name of the goal. For example: button.
  3. Enter the CSS selector in the format: #id_button or .class_button.
<button id="id_button" class="class-button">...</button> Link
  1. In the drop-down list, select "Link".
  2. Enter the name of the goal. For example: links.
  3. Write the CSS selector in the format: https://example.com/path/sub/?param=value&param1=value.
<a href="https://example.com/path/sub/?param=value&param1=value">example.com</a> The link can be as full as "https://example.com/path/sub/?param=value&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. HTML tag Allows you to set complex CSS selectors: header .contacts > div:nth-child(3) a[href= "tel:7XXXXXXXXXX"].

How to differentiate clicks on the phone (header, footer, sidebar, content)?

Header

  1. Select "HTML tag" from the drop-down list.
  2. Enter the name of the goal. For example: header_phone.
  3. Write the CSS selector in the format: header a[href= "tel:7XXXXXXXXXX "].
<header> ... <a href="tel:7XXXXXXXXXX">+7 (XXX) XXX-XX-XX</a> ... </headre> Footer
  1. Select "HTML tag" from the drop-down list.
  2. Enter the name of the goal. For example: footer_phone.
  3. Write the CSS selector in the format: footer a[href= "tel:7XXXXXXXXXX "].
<footer> ... <a href="tel:7XXXXXXXXXX">+7 (XXX) XXX-XX-XX</a> ... </footer> Sidebar
  1. Select "HTML tag" from the drop-down list.
  2. Enter the name of the goal. For example: sidebar_phone.
  3. Write the CSS selector in the format: aside a[href= "tel:7XXXXXXXXXX "].
<aside> ... <a href="tel:7XXXXXXXXXX">+7 (XXX) XXX-XX-XX</a> ... </aside> Content
  1. Select "HTML tag" from the drop-down list.
  2. Enter the name of the goal. For example: article_phone.
  3. Write the CSS selector in the format: article a[href= "tel:7XXXXXXXXXX "].
<article> ... <a href="tel:7XXXXXXXXXX">+7 (XXX) XXX-XX-XX</a> ... </article> 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. .content a[href="tel:7XXXXXXXXXX"] <div class="content"> ... <a href="tel:7XXXXXXXXXX">+7 (XXX) XXX-XX-XX</a> ... </div>

How to track clicks on the order buttons in the price list?

Table

  1. Select "HTML tag" from the drop-down list.
  2. Enter the name of the goal. For example: order_table.
  3. Write the CSS selector in the format: table button.
<table> ... <button>Order</button> ... </table> Block layout
  1. Select "HTML tag" from the drop-down list.
  2. Enter the name of the goal. For example: order_price.
  3. Enter the CSS selector in the format: .price a.order.
<div class="price"> ... <a class="order">Order</a> ... </div>

更新日志:

1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1 1.0