Skip to content

Commit da2c4e6

Browse files
author
hexagoncircle
committed
Add gtm tag
1 parent bcf20e7 commit da2c4e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/site/_includes/layouts/base.njk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ ogimage: "/img/og/default-og-image.png"
5050
{%- for url in javascripts %}
5151
<script defer src="{{ url }}"></script>
5252
{%- endfor %}
53+
54+
<!-- Google tag (gtag.js) -->
55+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X2FMMZSSS9"></script>
56+
<script>
57+
window.dataLayer = window.dataLayer || [];
58+
function gtag(){dataLayer.push(arguments);}
59+
gtag('js', new Date());
60+
61+
gtag('config', 'G-X2FMMZSSS9');
62+
</script>
5363
</head>
5464
<body class="bg-gray-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100 leading-relaxed antialiased">
5565
<svg width="0" height="0" aria-hidden="true" style="position: absolute;">

0 commit comments

Comments
 (0)