Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
CHANGELOG.md Publish Jan 22, 2019
README.md feat(yandex-metrika): add support use cdn (#194) Mar 5, 2018
index.js fix: html validate error (#253) Jan 22, 2019
package.json fix: correct homepage URLs (#282) May 20, 2019
plugin.js use yarn workspaces Oct 6, 2017

README.md

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',
      {
        id: 'XXXXXX',
        webvisor: true,
        // clickmap:true,
        // useCDN:false,
        // trackLinks:true,
        // accurateTrackBounce:true,
      }
    ],
  ]
}

Options

For more information:

id

  • Required

webvisor

clickmap

trackLinks

accurateTrackBounce

You can’t perform that action at this time.