diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2024-06-07 06:38:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 06:38:31 (GMT) |
commit | 5c115567b1e3aecb7a53cfd5757e25c088398411 (patch) | |
tree | 9ca632e560baec417e1e84879b9a57bf923c308a /Doc/tools | |
parent | 6b606522ca97488aad6fe2f193d4511e7a8f8334 (diff) | |
download | cpython-5c115567b1e3aecb7a53cfd5757e25c088398411.zip cpython-5c115567b1e3aecb7a53cfd5757e25c088398411.tar.gz cpython-5c115567b1e3aecb7a53cfd5757e25c088398411.tar.bz2 |
Add Plausible for docs metrics (#119977)
Co-authored-by: Julien Palard <julien@palard.fr>
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/templates/layout.html | 3 |
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 %} |