Nanananananananana.. Pat Man!
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

@nuxtjs/google-analytics

2.0.2 • Public • Published

Google Analytics

npm (scoped with tag) npm CircleCI Codecov Dependencies

js-standard-style

Google Analytics integration for Nuxt.js with vue-analytics

📖 Release Notes

Setup

  • Add @nuxtjs/google-analytics dependency using yarn or npm to your project
  • Add @nuxtjs/google-analytics to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    ['@nuxtjs/google-analytics', {
      id: 'UA-12301-2'
    }]
 ]
}

using top level options

{
  modules: [
    ['@nuxtjs/google-analytics']
  ],
 
 'google-analytics': {
    id: 'UA-12301-2'
  }
}

Usage

Click here for all options and features of vue-analytics

Differences between vue-analytics and the Nuxt.js implementation:

  • The router instance is already added out of the box (read here if you need to disable it)
  • The id and ua properties have the exact same behaviour. The ua property has been added for backwards compatibily with previous releases

License

MIT License

Copyright (c) -

Keywords

none

install

npm i @nuxtjs/google-analytics

Downloadsweekly downloads

18,355

version

2.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability