Skip to content

Commit

Permalink
Update Google Analytics
Browse files Browse the repository at this point in the history
Added the new code, but no plan how to roll out.
  • Loading branch information
wsdwl committed Jun 29, 2023
1 parent 49872fc commit b1f05d9
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions _includes/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script src="{{ "js/materialize.min.js" | relative_url }}"></script>
<script src="{{ "js/init.js" | relative_url }}"></script>

<!-- Google Analytics -->
<!-- Google Analytics old
<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),
Expand All @@ -12,4 +12,15 @@
ga('create', 'UA-22761082-4', 'auto');
ga('send', 'pageview');
</script>
<!-- /Analytics -->
/Analytics -->

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

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

0 comments on commit b1f05d9

Please sign in to comment.