Title: JSON-LD Schema for Yandex Metrica
Author: antoniolite
Published: <strong>26 ژوئن 2020</strong>
Last modified: 1 آگوست 2020

---

جستجوی افزونه‌ها

![](https://ps.w.org/antoniolite-yandex-metrica-json-ld-schema/assets/banner-772x250.
png?rev=2331230)

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://ps.w.org/antoniolite-yandex-metrica-json-ld-schema/assets/icon-256x256.
png?rev=2331230)

# JSON-LD Schema for Yandex Metrica

 توسط [antoniolite](https://profiles.wordpress.org/antoniolite/)

[دانلود](https://downloads.wordpress.org/plugin/antoniolite-yandex-metrica-json-ld-schema.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/antoniolite-yandex-metrica-json-ld-schema/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/antoniolite-yandex-metrica-json-ld-schema/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/antoniolite-yandex-metrica-json-ld-schema/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/antoniolite-yandex-metrica-json-ld-schema/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/antoniolite-yandex-metrica-json-ld-schema/)

## توضیحات

Yandex Metrica is a Yandex’s free tool for everyone to track your website. This 
plugins inserts the needed JSON-LD Schema in your post pages so you can use the 
content reports in Yandex Metrica.

The content reports in Yandex Metrica show you key publisher indicators in real 
time, the most popular articles and click-through sources, engagement indicators
and separate traffic rubrics, traffic and audience interest for materials by author,
engagement and traffic indicators for various topics.

You can read about the content reports at the official [Yandex Metrica Blog](https://yandex.com/blog/metrica/yandex-metrica-for-media-introducing-content-reports).

You can register with Yandex Metrica and create your tag for free in the [official web site](https://metrica.yandex.com/).

You need to insert the Yandex Metrica tracking code in your website.

Please note that you must activate the content reports in your tag’s settings.

#### Data included in the JSON-LD Schema

 * Post
    - Title
    - Description
    - URL
    - Featured image
    - Category
    - Tags
    - Date published
    - Date updated
 * Author
    - Display name
    - URL
    - Avatar
 * Publisher
    - Name
    - URL
    - Logo

About the BreadcrumbList, this is how the plugin works:

As first step, the plugin recovers all the post’s categories, ordering them by parent
category, so the first category or categories in the list will be them without parent
category, and then by category name. If you use Yoast SEO and you set the primary
category, this one category will be the category passed as ListItem with position
1 in the JSON-LD Schema. If not using Yoast SEO, the first category without parent
category will be ListItem with position 1 in the JSON-LD Schema.

Once the plugin set the main category, it will check with all the rest categories
if some of these is a subcategory, and the first one occurrence will be the ListItem
with position 2 in the JSON-LD Schema.

## عکس‌های صفحه

[⌊Basic settings⌉⌊Basic settings⌉[

Basic settings

## نصب

 1. Upload `antoniolite-yandex-metrica-json-ld-schema` to the `/wp-content/plugins/`
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Settings / JSON-LD Schema for Yandex Metrica and and set additional options

## سوالات متداول

### How do I insert the Yandex Metrica tracking code in my website

You can insert the Yandex Metrica tracking code in your website by editing your `
header.php` file in your theme or using a Custom HTML tag or Custom Tag Template
with Google Tag Manager.

You can also search for some plugin to do this task, but I suggest you a Custom 
Template for Google Tag Manager.

### How do I check that the plugin works?

You can wait till you see the content reports in Yandex Metrica.

Or if you can’t wait or if you don’t see the content reports in 1-2 days, you can
activate the debug mode for Yandex Metrica and check in your browser console if 
everything is OK.

You can also use the structured data validator from Yandex Webmaster or Google Search
Console to check that your pages includes a valid JSON-LD.

### I don’t see the content reports in my Yandex Metrica tag

First you need to activate the content reports in your tag’s settings, and once 
your website includes the JSON-LD schema in your tracked pages, you should wait 
for some time before to see the content reports in your sidebar menu.

### What is the best way to manage the categories?

At the moment, Yandex Metrica only use two levels for the content reports, so only
a category and subcategory are passed in the JSON-LD Schema. The best practice is
to set a main category and a secondary category to the post (first level category
and second level category).

### What if I use others Schema plugins?

This plugin is optimized for sending information to Yandex Metrica the way it expects.
It has not been tested with other active JSON Schema plugins but Yoast SEO.

If you use Yoast SEO, you can deactivate its Schema option from the `JSON-LD Schema
for Yandex Metrica` settings, so you can continue using Yoast SEO for optimizing
your contents but without its JSON-LD option.

### Is there some documentation about Yandex Metrica?

Yes, Yandex Metrica has an excellent [documentation and support](https://yandex.com/support/metrica/)
for its service.

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“JSON-LD Schema for Yandex Metrica” نرم افزار متن باز است. افراد زیر در این افزونه
مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ antoniolite ](https://profiles.wordpress.org/antoniolite/)

[ترجمه “JSON-LD Schema for Yandex Metrica” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/antoniolite-yandex-metrica-json-ld-schema)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/antoniolite-yandex-metrica-json-ld-schema/)،
[مخزن SVN](https://plugins.svn.wordpress.org/antoniolite-yandex-metrica-json-ld-schema/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/antoniolite-yandex-metrica-json-ld-schema/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/antoniolite-yandex-metrica-json-ld-schema/)
مشترک شوید.

## گزارش تغییرات

#### 1.1

 * Updated the BreadcrumbList element to include main category and the subcategory
   if it exists

#### 1.0

 * First release

## اطلاعات

 *  نگارش **1.1**
 *  آخرین به‌روزرسانی **6 سال پیش**
 *  نصب‌های فعال **10+**
 *  نگارش وردپرس ** 4.6 یا بالاتر **
 *  آزمایش‌شده تا **5.5.23**
 *  نگارش PHP ** 5.6 یا بالاتر **
 *  زبان
 * [English (US)](https://wordpress.org/plugins/antoniolite-yandex-metrica-json-ld-schema/)
 * برچسب
 * [analytics](https://fa.wordpress.org/plugins/tags/analytics/)[content analytics](https://fa.wordpress.org/plugins/tags/content-analytics/)
   [metrica](https://fa.wordpress.org/plugins/tags/metrica/)[yandex](https://fa.wordpress.org/plugins/tags/yandex/)
   [yandex metrica](https://fa.wordpress.org/plugins/tags/yandex-metrica/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/antoniolite-yandex-metrica-json-ld-schema/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[بررسی شما](https://wordpress.org/support/plugin/antoniolite-yandex-metrica-json-ld-schema/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/antoniolite-yandex-metrica-json-ld-schema/reviews/)

## مشارکت کنندگان

 *   [ antoniolite ](https://profiles.wordpress.org/antoniolite/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/antoniolite-yandex-metrica-json-ld-schema/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](https://www.antoniolite.com/)