<li><p><aclass="github-button"href="https://github.com/gagoman/lektor-yandex-metrica"data-icon="octicon-star"data-size="large"data-show-count="true"aria-label="Star lektor-yandex-metrica on GitHub"target="_blank">Star</a></p></li>
<p>This plugin adds support for <ahref="https://metrica.yandex.com"rel="nofollow">Yandex Metrica</a>
to <ahref="https://www.getlektor.com"rel="nofollow">Lektor CMS</a></p>
<divid="enabling-the-plugin">
<h2>Enabling the Plugin</h2>
<pre>lektor plugins add lektor-yandex-metrica
</pre>
</div>
<divid="configuring-the-plugin">
<h2>Configuring the Plugin</h2>
<p>Just create a file named <code>yandex-metrica.ini</code> in your <code>configs/</code> folder and configure <code>id</code> key with the provided counter id:</p>
<p>Now you can add a Yandex Metrica counter to any of your templates by just using the <code>generate_yandex_metrica</code> function in its tag as below.</p>
Please enable JavaScript to view the <ahref="https://disqus.com/?ref_noscript"
rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
</div>
</div>
</div>
</div>
</div>
<divclass="bottomsummary">
<divclass="container">
</div>
</div>
<footer>
<divclass="container">
<divclass="row">
<divclass="col-sm-4 icon-bar">
<ahref="https://github.com/lektor/lektor/"title="Lektor on GitHub"
><iclass="fa fa-github"></i></a>
<ahref="https://github.com/lektor/lektor/issues/"title="Report Issues for Lektor"
><iclass="fa fa-bug"></i></a>
<ahref="https://twitter.com/getlektor"title="Find Lektor on Twitter"
><iclass="fa fa-twitter"></i></a>
<ahref="https://gitter.im/lektor/lektor"title="Chat on Gitter"
><iclass="fa fa-comment"></i></a>
<ahref="https://github.com/lektor/lektor-website/tree/master/content/plugins/lektor-yandex-metrica/contents.lr"title="View source for this page"><iclass="fa fa-code"></i></a>
</div>
<divclass="col-sm-8">
<ahref="../../license/">License & Copyright</a> •
<ahref="../../contact/">Contact</a> •
Made with <iclass="fa fa-fw fa-heart"title="Heart"><spanhidden>Heart</span></i> in Carinthia