// в nuxt.config
modules: [
[
'@nuxtjs/yandex-metrika',
{
id: (process.env.APP_ENVIRONMENT as string) === 'prod' ? '8******' : '',
webvisor: true,
clickmap: true,
trackLinks: true,
accurateTrackBounce: true,
}
]
],
const module = ['@nuxt/recaptcha']
if ((process.env.APP_ENVIRONMENT as string) === 'prod') {
modules.push([
'@nuxtjs/yandex-metrika',
{
id: '8******',
webvisor: true,
clickmap: true,
trackLinks: true,
accurateTrackBounce: true,
}
])
}
export default {
...
modules,
}