Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuxtjs/google-gtag

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/google-gtag - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

5

CHANGELOG.md

@@ -5,3 +5,8 @@ # Change Log

<a name="0.0.2"></a>
## [0.0.2](https://github.com/https://github.com/nuxt-community/google-gtag/compare/v0.0.1...v0.0.2) (2018-05-11)
<a name="0.0.1"></a>
## 0.0.1 (2018-05-11)

@@ -5,3 +5,8 @@ const {resolve} = require('path')

const options = this.options['google-gtag'] || moduleOptions
const isProd = process.env.NODE_ENV === 'production'
if (options && options.id) {
if(!isProd && !options.debug){
return // disable if not debug mode
}
this.addPlugin({

@@ -8,0 +13,0 @@ src: resolve(__dirname, './templates/plugin.js'),

2

package.json
{
"name": "@nuxtjs/google-gtag",
"version": "0.0.1",
"version": "0.0.2",
"description": "Google GTag for Nuxt.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -42,6 +42,10 @@ # @nuxtjs/google-gtag

options:{
anonymize_ip: true
// check out official docs: https://developers.google.com/analytics/devguides/collection/gtagjs/
anonymize_ip: true, // anonymize IP
send_page_view: false, // might be necessary to avoid duplicated page track on page reload
linker:{
domains:['domain.com','domain.org']
}
},
debug: true,
// disableRouter:true // => by default router is enabled by default
debug: true // enable to track in dev mode
}

@@ -48,0 +52,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc