@nuxtjs/google-gtag
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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'), |
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6096
40
69
2