dex-yandex-metrika

1.0.4 • Public • Published

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 to modules section of nuxt.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

accurateTrackBounce

childIframe

clickmap

defer

ecommerce

params

userParams

trackHash

trackLinks

trustedDomains

type

useCDN

ut

webvisor

triggerEvent

Readme

Keywords

none

Package Sidebar

Install

npm i dex-yandex-metrika

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

9.69 kB

Total Files

6

Last publish

Collaborators

  • dexdot