Skip to content

Commit 7208dd0

Browse files
committed
add snippet for google analytics 4
1 parent 54cf832 commit 7208dd0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/base.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
<!--[if gt IE 8]><!--><html class="no-js" lang="en" dir="ltr"> <!--<![endif]-->
66
{% load pipeline sitetree %}
77
<head>
8+
<!-- Google tag (gtag.js) -->
9+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TF35YF9CVH"></script>
10+
<script>
11+
window.dataLayer = window.dataLayer || [];
12+
function gtag(){dataLayer.push(arguments);}
13+
gtag('js', new Date());
14+
gtag('config', 'G-TF35YF9CVH');
15+
</script>
16+
817
<meta charset="utf-8">
918
<meta http-equiv="X-UA-Compatible" content="IE=edge">
1019

0 commit comments

Comments
 (0)