Skip to content

Commit 9455c98

Browse files
committed
update Google Analytics in header.ejs
1 parent 43aeafc commit 9455c98

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

views/partials/header.ejs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
33
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
44
<!-- Google Analytics -->
5+
6+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TFGKC2X8JB"></script>
57
<script>
6-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
7-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
8-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
9-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
10-
11-
ga('create', 'UA-28397530-1', 'auto');
12-
ga('send', 'pageview');
13-
</script>
8+
window.dataLayer = window.dataLayer || [];
9+
function gtag(){dataLayer.push(arguments);}
10+
gtag('js', new Date());
11+
12+
gtag('config', 'G-TFGKC2X8JB');
13+
</script>
14+
1415
<!-- End Google Analytics -->
1516

1617
<link rel="stylesheet" type="text/css" href="/stylesheets/style.css">

0 commit comments

Comments
 (0)