Skip to content

Commit

Permalink
Replace GA with GTM
Browse files Browse the repository at this point in the history
  • Loading branch information
dhogan8 committed Aug 3, 2023
1 parent ba6adab commit 376efc0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
17 changes: 8 additions & 9 deletions src/templates/document_head.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Source+Code+Pro:wght@700&display=swap" rel="stylesheet">

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XJ06TBYWNX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XJ06TBYWNX');
</script>
<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-M8K593P');</script>
<script async src="https://www.maxmind.com/js/global-privacy-control.js"></script>
7 changes: 6 additions & 1 deletion src/templates/header.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=G-XJ06TBYWNX" height="0" width="0" style="display:none;visibility-hidden"></iframe>
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-M8K593P"
height="0"
width="0"
style="display:none;visibility:hidden"
></iframe>
</noscript>

<a class="skip-navigation" tabindex="1" href="#main-content">{{t 'skip_navigation' }}</a>
Expand Down

0 comments on commit 376efc0

Please sign in to comment.