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