Plugin – lektor-yandex-metrica 0.1.2

Adds support for Yandex Metrica to Lektor CMS

Project links

GitHub Statistics


Version: 0.1.2

Author: Alex Khomchenko


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

View all tags.

Project Description

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:


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