# Plugin – lektor-yandex-metrica 0.1.2

Adds support for Yandex Metrica to Lektor CMS

#### Project links

#### GitHub Statistics

#### Meta

Version: 0.1.2

Author: Alex Khomchenko

#### Tags

analytics, Jinja globals, setup-env, and Yandex Metrica

View all tags.

## Project Description

lektor-yandex-metrica
=====================
This plugin adds support for `Yandex Metrica <https://metrica.yandex.com>`_
to `Lektor CMS <https://www.getlektor.com>`_
Enabling the Plugin
-------------------
.. code-block:: bash
lektor plugins add lektor-yandex-metrica
Configuring the Plugin
----------------------
Just create a file named :code:`yandex-metrica.ini` in your :code:`configs/` folder and configure :code:`id` key with the provided counter id:
.. code-block:: ini
id = YOUR_COUNTER_ID
In Templates
------------
Now you can add a Yandex Metrica counter to any of your templates by just using the :code:`generate_yandex_metrica` function in its tag as below.
.. code:: html
{{ generate_yandex_metrica() }}

## Comments