Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
add configuration for test gtag container for this pr preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Sep 26, 2023
1 parent a042546 commit 569b13d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/analytics-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ module.exports = () => ({
name: 'facebook-domain-verification',
content: 'll8iy5eqaqpremxnd6bo2qg2qjxrtj',
},
},
{
tagName: 'script',
innerHTML: `
<!-- Google Tag Manager -->
<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-N6H4MQRW');</script>
<!-- End Google Tag Manager -->
`
}
],
preBodyTags: [
Expand All @@ -38,8 +50,15 @@ module.exports = () => ({
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-55LZM97"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
`
},
{
tagName: 'noscript',
innerHTML: `
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N6H4MQRW"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
`
}
],
};
},
});
});

0 comments on commit 569b13d

Please sign in to comment.