From f5f274b7d60e23269bb824376315905432e30341 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 9 Feb 2024 06:35:25 -0500 Subject: [PATCH] more gtm errors --- scripts/third-party.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/third-party.js b/scripts/third-party.js index 392b19d5..1b21dd65 100644 --- a/scripts/third-party.js +++ b/scripts/third-party.js @@ -1,3 +1,9 @@ +const GTM_SCRIPT = `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); +})(window,document,'script','dataLayer','GTM-P49296M');`; + function createInlineScript(innerHTML, parent) { const script = document.createElement('script'); script.type = 'text/partytown';