Skip to content

Commit 110d997

Browse files
committed
Google Analytics: add GA4 tag
1 parent 8b7683c commit 110d997

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

_layouts/default.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66

77
<html lang="{{ site.lang | default: 'en-US' }}">
88
{% include head.html %}
9+
<!-- Google tag (gtag.js) -->
10+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-D6W91KEXH2"></script>
11+
<script>
12+
window.dataLayer = window.dataLayer || [];
13+
function gtag(){dataLayer.push(arguments);}
14+
gtag('js', new Date());
15+
16+
gtag('config', 'G-D6W91KEXH2');
17+
</script>
918
<body>
1019
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
1120
<symbol id="svg-link" viewBox="0 0 24 24">

0 commit comments

Comments
 (0)