Merge pull request #318 from fghaas/plausible

Add support for Plausible analytics
This commit is contained in:
Alexandre Vicenzi 2022-12-01 12:06:22 +01:00 committed by GitHub
commit d9c1fd07ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View file

@ -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)

View file

@ -100,6 +100,9 @@
{% include "partial/ga.html" %} {% include "partial/ga.html" %}
{% include "partial/ggst.html" %} {% include "partial/ggst.html" %}
{% include "partial/plausible.html" %}
{% if PGP_KEY %} {% if PGP_KEY %}
<link rel="pgpkey" type="application/pgp-keys" href="{{ SITEURL }}/{{ PGP_KEY }}"> <link rel="pgpkey" type="application/pgp-keys" href="{{ SITEURL }}/{{ PGP_KEY }}">
{% endif %} {% endif %}
@ -107,6 +110,7 @@
{% if WEBMENTION_URL %} {% if WEBMENTION_URL %}
<link rel="webmention" href="{{ WEBMENTION_URL }}" /> <link rel="webmention" href="{{ WEBMENTION_URL }}" />
{% endif %} {% endif %}
{% if PINGBACK_URL %} {% if PINGBACK_URL %}
<link rel="pingback" href="{{ PINGBACK_URL }}" /> <link rel="pingback" href="{{ PINGBACK_URL }}" />
{% endif %} {% endif %}

View file

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