1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 09:46:23 +00:00

Proxy plausible js

This commit is contained in:
David Young
2021-11-02 15:26:15 +13:00
parent 280e9494c6
commit b0a23ff850
3 changed files with 7 additions and 3 deletions

View File

@@ -3,3 +3,7 @@ https://geeks-cookbook.funkypenguin.co.nz/* https://geek-cookbook.funkypenguin.c
# Because it took me about a year to realize I was spelling "Recipes" wrong! # Because it took me about a year to realize I was spelling "Recipes" wrong!
https://geek-cookbook.funkypenguin.co.nz/recipies/* https://geek-cookbook.funkypenguin.co.nz/recipes/:splat 301! https://geek-cookbook.funkypenguin.co.nz/recipies/* https://geek-cookbook.funkypenguin.co.nz/recipes/:splat 301!
# Proxy plausible analytics per https://plausible.io/docs/proxy/guides/netlify
/js/i-am-groot.js https://plausible.io/js/plausible.exclusions.outbound-links.js 200
/api/event https://plausible.io/api/event 202

View File

@@ -25,5 +25,5 @@
{% block analytics %} {% block analytics %}
<script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async defer> <script src="https://cdn.jsdelivr.net/npm/@widgetbot/crate@3" async defer>
</script> </script>
<script defer data-domain="geek-cookbook.funkypenguin.co.nz" src="https://plausible.io/js/plausible.js"></script> <script defer data-domain="geek-cookbook.funkypenguin.co.nz" src="/js/i-am-groot.js"></script>
{% endblock %} {% endblock %}

View File

@@ -1 +1 @@
<script defer data-domain="{{ data_domain }}" src="https://plausible.io/js/plausible.js"></script> <script defer data-domain="{{ data_domain }}" src="js/i-am-groot.js"></script>