Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 738 Bytes

README.rst

File metadata and controls

28 lines (18 loc) · 738 Bytes

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() }}