gtm-module
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -28,2 +28,12 @@ import sanitizeObj from './util/sanitizeObj.js'; | ||
window.document.head.appendChild(script); | ||
var noScript = document.createElement('noscript'); | ||
noScript.id = "gtm-snippet-noscript"; | ||
var iframe = document.createElement('iframe'); | ||
iframe.src = "https://".concat(this.serverSideDomain || 'www.googletagmanager.com', "/ns.html?id=").concat(this.gtmId); | ||
iframe.style.display = "none"; | ||
iframe.style.visibility = "hidden"; | ||
iframe.height = "0"; | ||
iframe.width = "0"; | ||
noScript.appendChild(iframe); | ||
window.document.body.appendChild(noScript); | ||
this.initialized = true; | ||
@@ -30,0 +40,0 @@ } |
{ | ||
"name": "gtm-module", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"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
18924
202