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
|
@ -32,6 +32,7 @@ The minimalist [Pelican](http://blog.getpelican.com/) theme.
|
||||||
- [Google Analytics](https://www.google.com/analytics/web/)
|
- [Google Analytics](https://www.google.com/analytics/web/)
|
||||||
- [Google Tag Manager](https://www.google.com/tagmanager/)
|
- [Google Tag Manager](https://www.google.com/tagmanager/)
|
||||||
- [Matomo Analytics (formerly Piwik)](https://matomo.org/)
|
- [Matomo Analytics (formerly Piwik)](https://matomo.org/)
|
||||||
|
- [Plausible](https://plausible.io/)
|
||||||
- [StatusCake](https://www.statuscake.com/)
|
- [StatusCake](https://www.statuscake.com/)
|
||||||
- [Isso](https://posativ.org/isso/)
|
- [Isso](https://posativ.org/isso/)
|
||||||
- [Microsoft Clarity](https://clarity.microsoft.com)
|
- [Microsoft Clarity](https://clarity.microsoft.com)
|
||||||
|
|
|
@ -100,6 +100,8 @@
|
||||||
{% include "partial/ga.html" %}
|
{% include "partial/ga.html" %}
|
||||||
{% include "partial/ggst.html" %}
|
{% include "partial/ggst.html" %}
|
||||||
|
|
||||||
|
{% include "partial/plausible.html" %}
|
||||||
|
|
||||||
{% if not PLUGINS or 'seo' not in PLUGINS %}
|
{% if not PLUGINS or 'seo' not in PLUGINS %}
|
||||||
{% if REL_CANONICAL %}
|
{% if REL_CANONICAL %}
|
||||||
{% if page %}
|
{% 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…
Reference in a new issue