Yandex Metrica


The best Yandex Metrica plugin for WordPress.

What is Metrica

Metrica is an analytics tool like just like google analytics. You can learn more about from official website.


  • Easy to manage counter’s tracking options.
  • Role based user tracking
  • Dashboard widget that displays Metrica graphics,, summary of site usage, top pages etc..
  • Role based user access for the displaying dashboard widget
  • Basic mode is ready! If you don’t want to give API access, you can try basic mode.
  • i18n support: Completely translation ready!


  • English (en_US), built-in
  • Turkish (tr_TR), native support
  • Russian (ru_RU), oleg0789 and Ксения Рыбка


Pull requests are welcome on Github

If you like Yandex Metrica, then consider checking out my other projects:

  • Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score
  • Magic Login Pro – Easy, secure, and passwordless authentication for WordPress.
  • Easy Text-to-Speech for WordPress – Transform your textual content into high-quality synthesized speech with Amazon Polly.
  • Handywriter – AI-powered writing assistant that can help you create content for your WordPress.
  • PaddlePress PRO – Paddle Plugin for WordPress


  • Select mode, basic mode for who don’t want to use metrica api. But advanced mode recommended!
  • Displaying graph with metrica results.
  • Settings page.


Extract the zip file, and place the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from admin’s Plugins page.


What is metrica?

Metrica is a powerful analytics tool that provided by Yandex.

Is it free?

Definitely, metrica service and this plugin are totally free.

Can I see statistics on the WordPress dashboard?

Yes! (You have to use advanced mode, this feature needs API access)

I can see dashboard widget but no graph?

It’s likely that your counter is not working correctly, please check counter status on the official metrica website. Sometimes we can’t retrieve the statistical data via API, especially on the fresh counters.

Everything done, but metrica service doesn’t work for me?

Yandex Metrica plugin uses wp_head hook for the adds necessary tracking code. Please ensure that your theme has a wp_footer hook.


Ogwekkumi (Mukulukusa) 26, 2021
Похоже на плагин забили, перестал работать примерно полгода назад, в настройках ругается на “Временная проблема с подключением!”, как говорится, что в России временно – то постоянно)))) активности в ветке 0, ни каких комментарий по этому поводу нет…
Ogwomunaana (Muwakanya) 13, 2020
Yandex Metrica is so much better than GA; nobody should ever rely solely on GA unless their website is just a hobby. This is the first plugin I add to every site I manage/launch. I love the fact that it does what’s required quietly and efficiently – would that other plugin devs could follow the same approach.
Read all 32 reviews

Contributors & Developers

“Yandex Metrica” is open source software. The following people have contributed to this plugin.


“Yandex Metrica” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Yandex Metrica” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


2.0.1 (May 15, 2024)

  • Bump tested WP version to 6.5

2.0 (October 18, 2023)

  • Dashboad widget improvements
  • Improved accuracy of the stats
  • Added encryption for the access token
  • Fix jQuery deprecations
  • Bump required WP version to 5.0
  • Tested with WordPress 6.4

1.9.3 (November 6, 2022)

  • minor tweaks & improvements
  • Added uninstaller
  • tested with WordPress 6.1


  • fix valid counter control
  • tested with WordPress 5.9


  • hotfix: uppercase Chart.min.js


  • chart.js update
  • Improved security
  • New filters: yandex_metrica_app_id and yandex_metrica_app_secret


  • fixed an XSS
  • tested with WordPress 5.8


  • Add composer support
  • tested with WordPress 5.5


  • an option added for the dispatching e-commerce data


  • Authorization method changed, URL parameters no longer acccepted
  • use wp_head instead wp_footer for the tracking code
  • tested with WordPress 5.1.x


  • switched to new metrica tracking code by default
  • added an option for new Yandex’s tracking code (props @ildarkhasanshin)
  • Better tracker-address handling. (Don’t save default addresses.)
  • tested with WordPress 5.x


  • now users are able to change Tracker JS address
  • new filter yandex_metrica_noscript_img_base added


  • prevent (possible) chart.js conflict with page builder plugins. Props @zzsnowballzz


  • prevent inline js loading globally. Props Makaka Games
  • script handler renamed
  • chart options updated; bar charts start from zero and line charts are using index mode for tooltips


  • charting library changed. (Switched to Chart.js)
  • daily stats using bar type
  • minor tweaks


  • Metrica API upgraded, fixes api related problems
  • sslverify parameter set to true
  • UI improvements
  • Informer widget address update
  • Widget: showing visitors fix. Props Эльвира Капитонова
  • requires at least WordPress 3.7


  • minor bug fix about HTTP request


  • minor bug fixes


  • array-multisort bug fix. Props Николай Астраханцев


  • Text Domain changed
  • Nonces added to settings page
  • Wrong option name fixed. Props romapad


  • Updated metrica tracking code
  • New hash tracking option added


  • Improved error checking for API request
  • Possible connectivity case added
  • Minor tweaks


  • Russian language pack added. Props Ксения Рыбка and oleg0789
  • API connectivity check improved
  • Minor fixes


  • Dashboard widget daily order fixed


  • Dashboard widget UI improvements
  • Bug fixes


  • Capability checking before display temporary dashboard widget


  • Closure function removed
  • Typo fix


  • Metrica API integration
  • Backward compatibility mode
  • Tracking by user role
  • Dashboard widget
  • New widget, informer widget still exist
  • Better localization
  • Performance improvements
  • Special thanks to Yandex Team for all support.


  • Minor bug fixes


  • Bug fix – about options


  • bug fix – header output


  • Initial release.