Skip to content

Commit

Permalink
Merge pull request #2056 from GSA/2055-gtm-debug-script
Browse files Browse the repository at this point in the history
2055 gtm debug script
  • Loading branch information
scottqueen-bixal authored Jan 15, 2025
2 parents bf8ebdd + 64446fa commit 59623bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
8 changes: 0 additions & 8 deletions benefit-finder/.storybook/preview-body.html
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-P2F6CBK&gtm_auth=OSvlSHtoCEGb9-yqEDaj5Q&gtm_preview=env-112&gtm_cookies_win=x"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<a href="#skip-to-h1" class="usa-skipnav usa-sr-only"> Skip to main content </a>
14 changes: 5 additions & 9 deletions benefit-finder/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Google Tag Manager -->
<!-- We use the GTM-DEBUG placeholder container ID to allow skipping the container ID validation and run in debug mode. This allows us to test a GTM setup without a real container ID. -->
<script>
;(function (w, d, s, l, i) {
w[l] = w[l] || []
Expand All @@ -6,14 +8,8 @@
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : ''
j.async = true
j.src =
'https://www.googletagmanager.com/gtm.js?id=' +
i +
dl +
'&gtm_auth=OSvlSHtoCEGb9-yqEDaj5Q&gtm_preview=env-112&gtm_cookies_win=x'
j.src = 'https://www.googletagmanager.com/gtag/js?id=GTM-DEBUG'
f.parentNode.insertBefore(j, f)
})(window, document, 'script', 'dataLayer', 'GTM-P2F6CBK')
</script>
<script id="bf-track-by-name" type="text/javascript">
var CE_SNAPSHOT_NAME = ''
})(window, document, 'script', 'dataLayer', 'GTM-DEBUG')
</script>
<!-- End Google Tag Manager -->

0 comments on commit 59623bb

Please sign in to comment.