Skip to content

Commit 8058065

Browse files
authored
Analytics: add Plausible to our dashboard (#10087)
* Analytics: add Plausible to our dashboard Use Plausible for dashboard's analytics. * Analytics only for logged in users.
1 parent 83bd827 commit 8058065

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readthedocs/templates/base.html

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
<!-- End Google Analytics -->
5959
{% endif %}
6060

61+
{% if request.user.is_authenticated %}
62+
{# Only tack logged-in users to avoid sending a lot of (maybe unrelevant) traffic #}
63+
<script defer data-domain="{{ PRODUCTION_DOMAIN }}" src="https://plausible.io/js/script.js"></script>
64+
{% endif %}
65+
6166
<!-- css -->
6267
<link rel="stylesheet" href="{% static 'css/core.css' %}">
6368
{% block extra_links %}{% endblock %}

0 commit comments

Comments
 (0)