vuepress-plugin-yandex-metrika
Русский | English
Note: This plugin is provided for VuePress 2
Yandex Metrika plugin for VuePress 2, automatically add Yandex Metrika Counter to your VuePress site.
Install
pnpm add -D vuepress-plugin-yandex-metrika
yarn add -D vuepress-plugin-yandex-metrika
npm install -D vuepress-plugin-yandex-metrika
Usage
import yandexMetrikaPlugin from 'vuepress-plugin-yandex-metrika';
module.exports = {
plugins: [
yandexMetrikaPlugin({
id: 123123123,
config: {
clickmap: false,
trackLinks: true,
accurateTrackBounce: true,
ecommerce: "dataLayer"
}
}),
],
};
The counter is not added to the pages in the development and SSR mode
Options
id
options