petridish
petridish copied to clipboard
Add Plausible analytics
Plausible is a cookie-free, GDPR-compliant visit stats tracking: https://plausible.io/, used e.g. by GBIF: https://plausible.io/gbif.org
I definitely upvote this. Is there a way to integrate Google Analytics currently?
To enable Google Analytics (GA), you can add your own _includes/footer.html
(overwriting the default) that includes the GA JavaScript code.
Although I'd prefer Plausible over GA, I'm a bit reluctant to directly support it in Petridish, since it is a service you have to pay for (all other services Petridish relies on are free).
Another option is to provide a custom.js
in Petridish, which users can then overwrite with whatever code they want (without having to change the footer.html
). Something similar is already supported for adding custom CSS by adding a _sass/custom.scss
.
Thoughts?
I like having the flexibility of having customizable js/footer files (not sure which one is best), rather than support for a specific product.
But if you add a bit of documentation (examples) about how to use the "custom features" to implement GA and Plausible, I think we're not far from having the best of both worlds.