Skip to content

Commit

Permalink
more gtm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCollinz committed Feb 9, 2024
1 parent 4e740d7 commit f5f274b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/third-party.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
const GTM_SCRIPT = `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':

Check failure on line 1 in scripts/third-party.js

View workflow job for this annotation

GitHub Actions / build

'GTM_SCRIPT' is assigned a value but never used
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';
Expand Down

0 comments on commit f5f274b

Please sign in to comment.