]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Doc: Track file downloads via plausible (GH-138393) (#138397)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Sep 2025 20:00:17 +0000 (22:00 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Sep 2025 20:00:17 +0000 (23:00 +0300)
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/tools/templates/layout.html

index 1cb0200822d9fe02298ec608c92c000bc285f9f1..54c6eb9b5ef7e4780528c83db212dfee58a7ffb8 100644 (file)
@@ -28,7 +28,7 @@
 {% block extrahead %}
     {% if builder == "html" %}
       {% if enable_analytics %}
-      <script defer data-domain="docs.python.org" src="https://analytics.python.org/js/script.outbound-links.js"></script>
+      <script defer file-types="bz2,epub,zip" data-domain="docs.python.org" src="https://analytics.python.org/js/script.file-downloads.outbound-links.js"></script>
       {% endif %}
       <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
       {% if pagename == 'whatsnew/changelog' and not embedded %}