Adding google analytics

This commit is contained in:
Jason Williams 2022-11-21 13:18:19 -07:00
parent 2641b72473
commit 6910d9aaad
2 changed files with 12 additions and 6 deletions

View File

@ -78,11 +78,14 @@
<script src="/js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z7645Z1330"></script>
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('set', 'anonymizeIp', true); ga('set', 'transport', 'beacon'); ga('send', 'pageview')
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Z7645Z1330');
</script>
<script src="https://www.google-analytics.com/analytics.js" async></script>
</body>
</html>

View File

@ -59,11 +59,14 @@
<script src="/js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z7645Z1330"></script>
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('set', 'anonymizeIp', true); ga('set', 'transport', 'beacon'); ga('send', 'pageview')
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Z7645Z1330');
</script>
<script src="https://www.google-analytics.com/analytics.js" async></script>
</body>
</html>