Skip to content

Commit 48697e6

Browse files
author
Will Binns
committed
layout: Enable Google Analytics
1 parent 0487805 commit 48697e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_theme/layout.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
applications." />
1414
<meta property="og:image" content="https://bitcoindocumentation.org/_static/bitcoindocs.png" />
1515
<meta property="og:type" content="website" />
16+
<!-- Global site tag (gtag.js) - Google Analytics -->
17+
<script async
18+
src="https://www.googletagmanager.com/gtag/js?id=UA-150112890-1"></script>
19+
<script>
20+
window.dataLayer = window.dataLayer || [];
21+
function gtag(){dataLayer.push(arguments);}
22+
gtag('js', new Date());
23+
24+
gtag('config', 'UA-150112890-1');
25+
</script>
1626
{{ super() }}
1727
{% endblock %}
1828

0 commit comments

Comments
 (0)