Skip to content

Commit 4c62101

Browse files
committed
add google analytics to template
1 parent 4eb45b6 commit 4c62101

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/_templates/layout.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block extrahead %}
4+
{{ super() }}
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2BGSHYDJP8"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments);}
9+
gtag('js', new Date());
10+
11+
gtag('config', 'G-2BGSHYDJP8');
12+
</script>
13+
{% endblock %}

0 commit comments

Comments
 (0)