Yandex Metrika Grav Plugin
Installing the Yandex Metrika plugin can be done in one of two ways.
GPM Installation (Preferred)
The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:
bin/gpm install metrika
This will install the Yandex Metrika plugin into your
/user/plugins directory within Grav. Its files can be found under
To install this plugin, just download the zip version of this repository and unzip it under
/your/site/grav/user/plugins. Then, rename the folder to
You should now have all the plugin files under
enabled: true id: '' hash: true # address line hash tracking webvisor: true # enable webvisor useWebVisor20: true # enable webvisor 2.0
If you need to change any value, then the best process is to copy the metrika.yaml file into your
users/config/plugins/ folder (create it if it doesn't exist), and then modify there. This will override the default settings.
- Login to your Yandex metrika account.
- Copy appropriate counter number under counter's name.
- Paste number (or re-type) into plugin settings.
- Configure webvisor and hash settings accordingly to your needs.