Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

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

Packages

No packages published

Languages

You can’t perform that action at this time.