1.0.3 • Published 4 years ago
vuepress-plugin-metrika v1.0.3
Yandex Metrika VuePress plugin
Integrate Yandex.Metrika into your VuePress app with a few configuration lines 🔧
Install
From your VuePress project directory run
yarn add --dev --exact vuepress-plugin-metrikaUsage
Add the following lines to the .vuepress/config.js:
module.exports = {
plugins: [
...
[
'metrika',
{
counter: 'XXXXXXX',
config: {...},
},
],
]
}where XXXXXXX is your Metrika counter, and config is an optional parameter
with the following defaults:
{
accurateTrackBounce: true,
clickmap: true,
trackLinks: true,
webvisor: false
}See more about Yandex.Metrika configuration options.
And you're good to go! 🚀 Build your VuePress site as usual and enjoy your analytics 📈