summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-07 07:42:19 (GMT)
committerGitHub <noreply@github.com>2024-06-07 07:42:19 (GMT)
commit0e6605f633f3eee6a4e4b09bbd3cfceb2d80ef48 (patch)
treee8bcbdbc4ce7fe434c476a1c2ab4f3b1308a9e16 /Doc/tools
parent56a7e0483436d1ebd2af97c02defe0e67c4bb495 (diff)
downloadcpython-0e6605f633f3eee6a4e4b09bbd3cfceb2d80ef48.zip
cpython-0e6605f633f3eee6a4e4b09bbd3cfceb2d80ef48.tar.gz
cpython-0e6605f633f3eee6a4e4b09bbd3cfceb2d80ef48.tar.bz2
[3.13] Add Plausible for docs metrics (GH-119977) (#120193)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Julien Palard <julien@palard.fr>
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/templates/layout.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html
index 3f88fc8..b09fd21 100644
--- a/Doc/tools/templates/layout.html
+++ b/Doc/tools/templates/layout.html
@@ -26,6 +26,9 @@
{% endblock %}
{% block extrahead %}
+ {% if builder == "html" and enable_analytics %}
+ <script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
+ {% endif %}
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
{% if builder != "htmlhelp" %}
{% if pagename == 'whatsnew/changelog' and not embedded %}