Skip to content

Commit 6c4dab4

Browse files
Add Plausble analytics
1 parent 16c670e commit 6c4dab4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

_templates/page.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "!page.html" %}
2+
3+
{% block extrahead %}
4+
{{ super() }}
5+
<script defer data-domain="devguide.python.org" src="https://analytics.python.org/js/script.outbound-links.js"></script>
6+
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
7+
{% endblock %}

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"source_repository": "https://github.com/python/devguide",
3838
"source_branch": "main",
3939
}
40+
templates_path = ['_templates']
4041
html_static_path = ['_static']
4142
html_css_files = [
4243
'devguide_overrides.css',

0 commit comments

Comments
 (0)