Nocturnal Pumpkin Maelstrom

    @nuxtjs/yandex-metrika

    1.3.0 • Public • Published

    Yandex Metrika

    npm npm (scoped with tag)

    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 @nuxtjs/yandex-metrika dependency using yarn or npm to your project
    • Add @nuxtjs/yandex-metrika to modules section of nuxt.config.js
    {
      modules: ['@nuxtjs/yandex-metrika'],
    }

    Configure

    You can pass options directly in module declaration.

    {
      modules: [
        [
          '@nuxtjs/yandex-metrika',
          {
            id: 'XXXXXX',
            webvisor: true,
            // clickmap:true,
            // useCDN:false,
            // trackLinks:true,
            // accurateTrackBounce:true,
          }
        ],
      ]
    }

    Or you can specify yandexMetrika key.

    {
      modules: ['@nuxtjs/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

    Keywords

    none

    Install

    npm i @nuxtjs/yandex-metrika

    DownloadsWeekly Downloads

    2,271

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • clarkdo
    • pi0
    • atinux
    • alexchopin