Skip to content

Commit

Permalink
fix: use new GA4 analytics id and snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis authored Oct 9, 2023
1 parent b1b77c1 commit f1d0c83
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions _src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,19 @@
<script src='app/run.js'></script>
<!-- /build -->

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-11849964-64"></script>
<script>
<!-- Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-2DZDCJS6E7"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'UA-11849964-64');
gtag('config', 'G-2DZDCJS6E7', { debug_mode: window.location.hostname === 'localhost' });
</script>
</body>
</html>

0 comments on commit f1d0c83

Please sign in to comment.