Skip to content

Commit

Permalink
Add Plausible for docs metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 29, 2024
1 parent 1f481fd commit 9504b90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/tools/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
{% endblock %}

{% block extrahead %}
{% if builder == "html" %}
<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 %}
Expand Down

0 comments on commit 9504b90

Please sign in to comment.