Skip to content

Commit df3b60f

Browse files
author
Bradley
committed
adding google analytics
1 parent 64b4b57 commit df3b60f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

index.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@
2222
<!-- Fonts -->
2323
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab" rel="stylesheet">
2424
<!-- Jquery Min Library -->
25-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"/>
25+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
2626
<script src="./js/main.js"/>
27-
<!-- Global site tag (gtag.js) - Google Analytics -->
28-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-72323910-2"/>
27+
<!-- Google Analytics -->
2928
<script>
30-
window.dataLayer = window.dataLayer || [];
31-
function gtag(){dataLayer.push(arguments);}
32-
gtag('js', new Date());
33-
gtag('config', 'UA-72323910-2');
29+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
30+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
31+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
32+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
33+
34+
ga('create', 'UA-XXXXX-Y', 'auto');
35+
ga('send', 'pageview');
3436
</script>
37+
<!-- End Google Analytics -->
3538
</head>
3639
<body>
3740
<section class="hero">

0 commit comments

Comments
 (0)