lektor-yandex-metrica

Adds support for Yandex Metrica to Lektor CMS


Keywords
Lektor, plugin
License
MIT
Install
pip install lektor-yandex-metrica==0.1.2

Documentation

lektor-yandex-metrica

This plugin adds support for Yandex Metrica to Lektor CMS

Enabling the Plugin

lektor plugins add lektor-yandex-metrica

Configuring the Plugin

Just create a file named yandex-metrica.ini in your configs/ folder and configure id key with the provided counter id:

id = YOUR_COUNTER_ID

In Templates

Now you can add a Yandex Metrica counter to any of your templates by just using the generate_yandex_metrica function in its tag as below.

{{ generate_yandex_metrica() }}