1.0.5 • Published 5 years ago

@naumstory/nuxtjs-yandex-metrika v1.0.5

Weekly downloads
77
License
ISC
Repository
github
Last release
5 years ago

Yandex Metrika

npm npm (scoped with tag)

Апгрейд

В оригинальной версии плагин по каким-то причинам не добавлял атрибуты к подключаемому скрипту метрики. Я говорю об async и rel="preload".

Async был прописан, но без указания значения, а таким образом, при генерации проекта, скрипт не подхватывал атрибут async, считая его пустым. Я поправил этот момент тем, что добавил значение true.

Так же я добавил важный атрибут rel со значением preload.

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 @naumstory/nuxtjs-yandex-metrika dependency using yarn or npm to your project
  • Add @naumstory/nuxtjs-yandex-metrika to modules section of nuxt.config.js
{
  modules: [
    [
      '@naumstory/nuxtjs-yandex-metrika',
      {
        id: 'XXXXXX',
        webvisor: true
        // clickmap:true,
        // useCDN:false,
        // trackLinks:true,
        // accurateTrackBounce:true,
      }
    ]
  ];
}

Options

For more information:

id

  • Required

webvisor

clickmap

trackLinks

accurateTrackBounce

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago