Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Plausible analytics #83

Open
peterdesmet opened this issue Mar 14, 2023 · 3 comments
Open

Add Plausible analytics #83

peterdesmet opened this issue Mar 14, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@peterdesmet
Copy link
Owner

Plausible is a cookie-free, GDPR-compliant visit stats tracking: https://plausible.io/, used e.g. by GBIF: https://plausible.io/gbif.org

@peterdesmet peterdesmet added the enhancement New feature or request label Mar 14, 2023
@peterdesmet peterdesmet self-assigned this Mar 14, 2023
@jocelynpender
Copy link
Contributor

I definitely upvote this. Is there a way to integrate Google Analytics currently?

@peterdesmet
Copy link
Owner Author

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?

@niconoe
Copy link

niconoe commented Apr 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants