@nuxtjs/google-gtag
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="1.0.4"></a> | ||
## [1.0.4](https://github.com/https://github.com/nuxt-community/google-gtag/compare/v1.0.3...v1.0.4) (2018-08-29) | ||
<a name="1.0.3"></a> | ||
@@ -7,0 +12,0 @@ ## [1.0.3](https://github.com/https://github.com/nuxt-community/google-gtag/compare/v1.0.2...v1.0.3) (2018-05-17) |
@@ -10,2 +10,3 @@ const {resolve} = require('path') | ||
options.disableAutoPageTrack = !!options.disableAutoPageTrack | ||
options.additionalAccounts = options.additionalAccounts || null | ||
// need to render even in skipAll to generate noop $gtag function | ||
@@ -12,0 +13,0 @@ this.addPlugin({ |
@@ -24,2 +24,7 @@ export default function ({app: {router}}, inject) { | ||
} | ||
// additional accounts | ||
<% options.additionalAccounts && options.additionalAccounts.forEach((account) => { %> | ||
gtag('config', '<%= account.id %>',<%= JSON.stringify(account.config, null,2) %>) | ||
<% }) %> | ||
} |
{ | ||
"name": "@nuxtjs/google-gtag", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Google GTag for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -46,4 +46,11 @@ # @nuxtjs/google-gtag | ||
debug: true, // enable to track in dev mode | ||
disableAutoPageTrack: false // disable if you don't want to track each page route with router.afterEach(...) | ||
} | ||
disableAutoPageTrack: false, // disable if you don't want to track each page route with router.afterEach(...) | ||
// optional you can add more configuration like [AdWords](https://developers.google.com/adwords-remarketing-tag/#configuring_the_global_site_tag_for_multiple_accounts) | ||
additionalAccounts:[{ | ||
id: 'AW-XXXX-XX', // required if you are adding additional IDs | ||
config:{ | ||
send_page_view:false // optional configurations | ||
} | ||
}] | ||
} | ||
} | ||
@@ -50,0 +57,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
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
9482
51
81