Skip to content

Commit

Permalink
update google analystics tag script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hua-Zhou committed Dec 26, 2023
1 parent d304395 commit 8c0fd59
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 31 deletions.
18 changes: 8 additions & 10 deletions _layouts/course.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
<![endif]-->

<!-- Google tag (gtag.js) -->
<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)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-42646483-1', 'hua-zhou.github.io');
ga('send', 'pageview');

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

gtag('config', 'UA-42646483-1');
</script>

</head>

Expand Down
19 changes: 9 additions & 10 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@
<![endif]-->

<!-- Google tag (gtag.js) -->
<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)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-42646483-1', 'hua-zhou.github.io');
ga('send', 'pageview');

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

gtag('config', 'UA-42646483-1');
</script>

</head>

Expand Down
20 changes: 9 additions & 11 deletions _layouts/post_teaching.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!-- Google tag (gtag.js) -->
<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)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-42646483-1', 'hua-zhou.github.io');
ga('send', 'pageview');

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

gtag('config', 'UA-42646483-1');
</script>

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
Expand Down

0 comments on commit 8c0fd59

Please sign in to comment.