Skip to content

Commit 9ee1025

Browse files
committed
add google analytics
1 parent 4a04e0f commit 9ee1025

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

views/layouts/layout.ejs

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
1616
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
1717
<link rel="manifest" href="/site.webmanifest">
18+
<!-- Global site tag (gtag.js) - Google Analytics -->
19+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RYPSMF1X05"></script>
20+
<script>
21+
window.dataLayer = window.dataLayer || [];
22+
function gtag(){dataLayer.push(arguments);}
23+
gtag('js', new Date());
24+
gtag('config', 'G-RYPSMF1X05');
25+
</script>
1826
</head>
1927

2028
<body>

0 commit comments

Comments
 (0)