diff --git a/mkdocs.yml b/mkdocs.yml index 40e8ecd..67ee0aa 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -230,21 +230,37 @@ extra: - icon: 'material/mailbox' link: 'mailto:davidy@funkypenguin.co.nz?Subject=Hello%2C%20from%20a%20geek-cookbook%20reader%20%3B%29' generator: false - consent: - title: 'Would you like a cookie? 🍪' - description: > + # Plausible doesn't use cookies, so no need for this! + # consent: + # title: 'Would you like a cookie? 🍪' + # description: > - I know. cookies suck (except the fresh, warm, choc-chip ones!), and so does invasive tracking. Thing is, without cookies, - analytics can't record your visit, and I can't work out where/how to invest time to make the cookbook better. + # I know. cookies suck (except the fresh, warm, choc-chip ones!), and so does invasive tracking. Thing is, without cookies, + # analytics can't record your visit, and I can't work out where/how to invest time to make the cookbook better. -

So, with your consent, I'd like to record what you look at and where you're from, so that I can make the - cookbook even better. My analytics are public - here's all I know about you! - David

- cookies: - custom: Plausible Analytics + #

So, with your consent, I'd like to record what you look at and where you're from, so that I can make the + # cookbook even better. My analytics are public - here's all I know about you! - David

+ # cookies: + # custom: Plausible Analytics analytics: provider: plausible data_domain: geek-cookbook.funkypenguin.co.nz - + feedback: + title: Was this page helpful? + ratings: + - icon: material/emoticon-happy-outline + name: This page was helpful + data: 1 + note: >- + Thanks for your feedback! + - icon: material/emoticon-sad-outline + name: This page could be improved + data: 0 + note: >- + Thanks for your feedback! + +# Help us improve this page by +# using our feedback form. # extra_css: diff --git a/netlify_redirects.txt b/netlify_redirects.txt index 7163ac4..678d247 100644 --- a/netlify_redirects.txt +++ b/netlify_redirects.txt @@ -5,5 +5,5 @@ https://geeks-cookbook.funkypenguin.co.nz/* https://geek-cookbook.funkypenguin.c 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 +/js/i-am-groot.js https://plausible.io/js/plausible.outbound-links.js 200 +/api/event https://plausible.io/api/event 202 diff --git a/overrides/main.html b/overrides/main.html index 28ae745..c7f5f0b 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -20,10 +20,8 @@ {% endblock %} - - {% block analytics %} - - + + + {% endblock %} diff --git a/overrides/partials/integrations/analytics/plausible.html b/overrides/partials/integrations/analytics/plausible.html index 417f083..d76cead 100644 --- a/overrides/partials/integrations/analytics/plausible.html +++ b/overrides/partials/integrations/analytics/plausible.html @@ -1 +1,2 @@ - \ No newline at end of file + +