Skip to content

Commit 692f147

Browse files
authored
Add GA4 global tag to head.html
1 parent 501373e commit 692f147

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

_includes/head.html

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
<head>
2+
23
<meta charset="utf-8" />
34
<meta name="viewport" content="width=device-width, initial-scale=1" />
45
<meta name="theme-color" content= "#24292e">
6+
7+
<!-- Google tag (gtag.js) -->
8+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8KKSWX3P1J"></script>
9+
<script>
10+
window.dataLayer = window.dataLayer || [];
11+
function gtag(){dataLayer.push(arguments);}
12+
gtag('js', new Date());
13+
14+
gtag('config', 'G-8KKSWX3P1J');
15+
</script>
16+
517
<link rel="alternate" type="application/rss+xml" title="DataKind" href="/feed.xml">
618
<link rel="stylesheet" media="screen" href="/public/css/index.css" />
719
<link rel="shortcut icon" type="image/ico" href="/public/img/favicons/favicon.png" />
@@ -39,4 +51,4 @@
3951
</style>
4052
<script src="/public/js/jquery.min.js"></script>
4153

42-
</head>
54+
</head>

0 commit comments

Comments
 (0)