Skip to content

Commit d951418

Browse files
committed
docs: fix analytics tracking.
1 parent c981300 commit d951418

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

doc/_templates/base.html

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

doc/_templates/layout.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)