Socket
Socket
Sign inDemoInstall

@nuxtjs/google-analytics

Package Overview
Dependencies
1
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nuxtjs/google-analytics

Google Analytics Module for Nuxt.js


Version published
Maintainers
5
Install size
41.5 kB
Created

Changelog

Source

2.0.4 (2019-02-17)

Bug Fixes

  • disable on dev unless specified (63e22e5)

<a name="2.0.3"></a>

Readme

Source

Google Analytics

npm version npm downloads Circle CI Codecov Dependencies Standard JS

Google Analytics integration for Nuxt.js with vue-analytics

📖 Release Notes

Setup

  1. Add @nuxtjs/google-analytics dependency with yarn or npm into your project
  2. Add @nuxtjs/google-analytics to modules section of nuxt.config.js:
  3. Configure it:
{
  modules: [
    ['@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
  • You can enable module for development by setting dev: true option in module options

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) - Matteo Gabriele m.gabriele.dev@gmail.com

FAQs

Last updated on 17 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc