Adding Plausible analytics to Hugo's Blowfish theme
·86 words·1 min
Development
Author
Jacky Van
As of writing, I’m running the following
hugo v0.118.2
blowfish v2.42.0
nodejs 19.6.1
golang 1.21.3
The blowfish docs for custom analytics providers did not work for me when trying to add the Plausible analytics script to the <head> of the website.
- It suggested adding the file
layouts/partials/analytics.htmland including the analytic scripts there. - UPDATE: Looks like the author is aware and there is an existing Github issue
Instead, I followed blowfish documentation for
Head and Footer, and added my Plausible script to the layouts/partials/extend-head.html file instead.