Skip to content

Commit d2f5a60

Browse files
brsoffsoumith
authored andcommitted
Update Google Analytics snippet (#107)
1 parent eadf889 commit d2f5a60

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

_includes/analytics.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-90545585-1"></script>
21
<script>
3-
window.dataLayer = window.dataLayer || [];
4-
function gtag(){dataLayer.push(arguments);}
5-
gtag('js', new Date());
6-
gtag('config', 'UA‌-90545585-1');
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', 'UA‌-90545585-1', 'auto');
8+
ga('send', 'pageview');
9+
710
</script>

0 commit comments

Comments
 (0)