Skip to content

Yandex Metrika plugin allows you easily add metrika tracker to your grav website

License

Notifications You must be signed in to change notification settings

helios-ag/grav-metrika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex Metrika Grav Plugin

This is Grav CMS plugin that helps you implement Yandex Metrika tracking code into your website.

Installation

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 /your/site/grav/user/plugins/metrika.

Manual Installation

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 metrika.

You should now have all the plugin files under

/your/site/grav/user/plugins/metrika

Config Defaults

  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.

Usage

  1. Login to your Yandex metrika account.
  2. Copy appropriate counter number under counter's name.
  3. Paste number (or re-type) into plugin settings.
  4. Configure webvisor and hash settings accordingly to your needs.

About

Yandex Metrika plugin allows you easily add metrika tracker to your grav website

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages