Skip to content

Commit

Permalink
Add GA4 tag script (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjunwon authored Sep 25, 2023
1 parent 104da47 commit 4e7b34e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
{% include footer.html %}

<!-- Google Analytics -->
<script>

<!-- <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
Expand All @@ -25,6 +26,16 @@
ga('create', 'UA-28181852-21', 'auto');
ga('send', 'pageview');
</script> -->

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

gtag('config', 'G-PY71RTY5GV');
</script>

<script src="/js/site.js"></script>
Expand Down

0 comments on commit 4e7b34e

Please sign in to comment.