Skip to content

Commit 917d228

Browse files
committed
feat: add Google Analytics 4 tracking
1 parent 14af42d commit 917d228

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

templates/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta http-equiv="content-type" content="text/html; charset=utf-8">
77

8+
<!-- Google tag (gtag.js) -->
9+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FHY27GF82H"></script>
10+
<script>
11+
window.dataLayer = window.dataLayer || [];
12+
function gtag(){dataLayer.push(arguments);}
13+
gtag('js', new Date());
14+
15+
gtag('config', 'G-FHY27GF82H');
16+
</script>
17+
818
<!-- Enable responsiveness on mobile devices-->
919
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1020
{% if page %}

0 commit comments

Comments
 (0)