@nuxtjs/gtm
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.1.1](https://github.com/nuxt-community/gtm-module/compare/v2.1.0...v2.1.1) (2020-02-11) | ||
### Bug Fixes | ||
* prevent calling init with initial id when autoInit enabled ([24744a5](https://github.com/nuxt-community/gtm-module/commit/24744a50e95b48ec1f16f02f8ba652e5415123f1)) | ||
## [2.1.0](https://github.com/nuxt-community/gtm-module/compare/v2.0.1...v2.1.0) (2020-02-11) | ||
@@ -7,0 +14,0 @@ |
export default function (ctx, inject) { | ||
const layer = '<%= options.layer %>' | ||
const initialized = {} | ||
const initialized = {<%= (options.autoInit && options.id) ? ` '${options.id}': true ` : '' %>} | ||
ctx.$gtm = { | ||
@@ -5,0 +5,0 @@ init(id<%= options.id ? ` = '${options.id}'` : '' %>) { |
{ | ||
"name": "@nuxtjs/gtm", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Google Tag Manager Module for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "repository": "nuxt-community/gtm-module", |
16274