gtm-module
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -55,10 +55,10 @@ import sanitizeObj from './util/sanitizeObj.js'; | ||
if (typeof resetPush === 'boolean') { | ||
var newObj = JSON.parse(JSON.stringify(obj)); | ||
if (resetPush) { | ||
GoogleTagManager.resetPush(newObj); | ||
var newObjMethodConfig = JSON.parse(JSON.stringify(obj)); | ||
GoogleTagManager.resetPush(newObjMethodConfig); | ||
} | ||
} | ||
else if (this.resetDataLayer) { | ||
var newObj = JSON.parse(JSON.stringify(obj)); | ||
GoogleTagManager.resetPush(newObj); | ||
var newObjInstanceConfig = JSON.parse(JSON.stringify(obj)); | ||
GoogleTagManager.resetPush(newObjInstanceConfig); | ||
} | ||
@@ -70,3 +70,4 @@ }; | ||
var gtmSnippet = window.document.querySelector("#gtm-snippet"); | ||
window.document.querySelector('html').removeChild(gtmSnippet); | ||
var parentElement = gtmSnippet.parentNode; | ||
parentElement.removeChild(gtmSnippet); | ||
this.initialized = false; | ||
@@ -73,0 +74,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export default function exec(obj: dataLayerObj): boolean; | ||
export default function exec(obj: dataLayerObj): boolean | void; |
{ | ||
"name": "gtm-module", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Facilitates the usage of Google Tag Manager. Supports Google Tag Manager Server Side loading.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
19038
203