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 1.0.3 to 1.0.4

5

CHANGELOG.md

@@ -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)

1

lib/module.js

@@ -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) %>)
<% }) %>
}

2

package.json
{
"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 @@ ```

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