Skip to content

Commit 2a66519

Browse files
authored
Merge pull request #177 from ryanhammonds/master
[ENH] Google analytics
2 parents a44ab2e + 0e86036 commit 2a66519

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/_templates/layout.html

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

0 commit comments

Comments
 (0)