Skip to content

Commit

Permalink
Update GA tag
Browse files Browse the repository at this point in the history
  • Loading branch information
shagunsodhani committed Nov 25, 2020
1 parent b774943 commit 6ca1430
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions site/_includes/google_analytics.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-68140113-4"></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)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

ga('create', 'UA-68140113-4', 'auto');
ga('send', 'pageview');

</script>
gtag('config', 'UA-68140113-4');
</script>
2 changes: 1 addition & 1 deletion site/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

{% include head.html %}
{% include google_analytics.html %}

<body>

Expand Down Expand Up @@ -57,5 +58,4 @@ <h3 class="masthead-title">
</script>

</body>
{% include google_analytics.html %}
</html>

0 comments on commit 6ca1430

Please sign in to comment.