From f5c6e2eacc7611f623e95565404f0ff3c5efb67b Mon Sep 17 00:00:00 2001 From: Pardeep Gera Date: Thu, 19 Oct 2023 10:15:16 +0530 Subject: [PATCH] updated script for GTM --- scripts/delayed.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/delayed.js b/scripts/delayed.js index 5a5e663b..1053d5e1 100644 --- a/scripts/delayed.js +++ b/scripts/delayed.js @@ -8,7 +8,7 @@ sampleRUM('cwv'); function loadGTM() { const scriptTag = document.createElement('script'); scriptTag.innerHTML = ` - let gtmId = 'GTM-MLWV3QQ'; + let gtmId = 'GTM-W93WJWB9'; // googleTagManager (function (w, d, s, l, i) { w[l] = w[l] || []; @@ -25,6 +25,12 @@ function loadGTM() { })(window, document, 'script', 'dataLayer', gtmId); `; document.head.prepend(scriptTag); + const noScriptTag = document.createElement('noscript'); + noScriptTag.innerHTML = ` + + `; + document.body.prepend(noScriptTag); } // google tag manager -end