dex-yandex-metrika
v1.0.4
Published
> Fork (preload => prefetch) > Add Yandex Metrika to your nuxt.js application.
Downloads
8
Readme
Yandex Metrika
Fork (preload => prefetch) Add Yandex Metrika to your nuxt.js application.
This plugins automatically sends first page and route change events to yandex metrika.
Note: yandex metrika is not enabled in dev mode.
You can set environment variable NODE_ENV
to production
for testing in dev mode.
Setup
- Add
dex-yandex-metrika
dependency using yarn or npm to your project - Add
dex-yandex-metrika
tomodules
section ofnuxt.config.js
{
modules: ['dex-yandex-metrika'],
}
Configure
You can pass options directly in module declaration.
{
modules: [
[
'dex-yandex-metrika',
{
id: 'XXXXXX',
webvisor: true
// clickmap:true,
// useCDN:false,
// trackLinks:true,
// accurateTrackBounce:true,
}
]
];
}
Or you can specify yandexMetrika
key.
{
modules: ['dex-yandex-metrika'],
yandexMetrika: {
id: 'XXXXXX',
webvisor: true,
// clickmap:true,
// useCDN:false,
// trackLinks:true,
// accurateTrackBounce:true,
},
}
Options
For more information:
id
- Required