Add support for Cloudflare Web Analytics
This commit is contained in:
parent
d9c1fd07ab
commit
8bd43aa247
3 changed files with 8 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/)
|
||||||
|
- [Cloudflare Web Analytics](https://www.cloudflare.com/web-analytics/)
|
||||||
- [Plausible](https://plausible.io/)
|
- [Plausible](https://plausible.io/)
|
||||||
- [StatusCake](https://www.statuscake.com/)
|
- [StatusCake](https://www.statuscake.com/)
|
||||||
- [Isso](https://posativ.org/isso/)
|
- [Isso](https://posativ.org/isso/)
|
||||||
|
|
|
@ -182,6 +182,7 @@
|
||||||
{% include "partial/matomo.html" %}
|
{% include "partial/matomo.html" %}
|
||||||
{% include 'partial/github.html' %}
|
{% include 'partial/github.html' %}
|
||||||
{% include 'partial/stork.html' %}
|
{% include 'partial/stork.html' %}
|
||||||
|
{% include 'partial/cf_analytics.html' %}
|
||||||
|
|
||||||
{% block additional_js %}{% endblock %}
|
{% block additional_js %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
6
templates/partial/cf_analytics.html
Normal file
6
templates/partial/cf_analytics.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{% if CLOUDFLARE_WEB_ANALYTICS_TOKEN %}
|
||||||
|
<script defer
|
||||||
|
src='https://static.cloudflareinsights.com/beacon.min.js'
|
||||||
|
data-cf-beacon='{"token": "{{ CLOUDFLARE_WEB_ANALYTICS_TOKEN }}"}'>
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
Loading…
Reference in a new issue