Add support for Plausible analytics

Introduce a new configuration option, PLAUSIBLE_DOMAIN. If set,
include the Plausible (https://plausible.io) analytics script for that
domain.

Fixes #317.
This commit is contained in:
Florian Haas 2022-10-29 15:08:55 +02:00
parent e63fdae267
commit d3e29dc951
3 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,3 @@
{% if PLAUSIBLE_DOMAIN %}
<script defer data-domain="{{ PLAUSIBLE_DOMAIN }}" src="https://plausible.io/js/plausible.js"></script>
{% endif %}