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:
parent
e63fdae267
commit
d3e29dc951
3 changed files with 6 additions and 0 deletions
|
@ -100,6 +100,8 @@
|
|||
{% include "partial/ga.html" %}
|
||||
{% include "partial/ggst.html" %}
|
||||
|
||||
{% include "partial/plausible.html" %}
|
||||
|
||||
{% if not PLUGINS or 'seo' not in PLUGINS %}
|
||||
{% if REL_CANONICAL %}
|
||||
{% if page %}
|
||||
|
|
3
templates/partial/plausible.html
Normal file
3
templates/partial/plausible.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% if PLAUSIBLE_DOMAIN %}
|
||||
<script defer data-domain="{{ PLAUSIBLE_DOMAIN }}" src="https://plausible.io/js/plausible.js"></script>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue