From b0a23ff850331c3055127cd41b377424f78d56d1 Mon Sep 17 00:00:00 2001 From: David Young Date: Tue, 2 Nov 2021 15:26:15 +1300 Subject: [PATCH] Proxy plausible js --- netlify_redirects.txt | 4 ++++ overrides/main.html | 4 ++-- overrides/partials/integrations/analytics/plausible.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/netlify_redirects.txt b/netlify_redirects.txt index 7930993..7163ac4 100644 --- a/netlify_redirects.txt +++ b/netlify_redirects.txt @@ -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! 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 \ No newline at end of file diff --git a/overrides/main.html b/overrides/main.html index c186418..28ae745 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -25,5 +25,5 @@ {% block analytics %} - - {% endblock %} + +{% endblock %} diff --git a/overrides/partials/integrations/analytics/plausible.html b/overrides/partials/integrations/analytics/plausible.html index d6fbcc4..417f083 100644 --- a/overrides/partials/integrations/analytics/plausible.html +++ b/overrides/partials/integrations/analytics/plausible.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file