vuepress-plugin-metrika
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Yandex Metrika VuePress plugin

Version License

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-metrika

Usage

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 📈

Package Sidebar

Install

npm i vuepress-plugin-metrika

Weekly Downloads

12

Version

1.0.3

License

MIT

Unpacked Size

6.96 kB

Total Files

9

Last publish

Collaborators

  • teners