merely-useful / py-rse

Research Software Engineering with Python course material
http://third-bit.com/py-rse/
Other
247 stars 63 forks source link

Adding basic web site statistics using plausible.io. #639

Closed gvwilson closed 2 years ago

gvwilson commented 2 years ago

https://plausible.io/ offers an ethical approach to collecting web traffic statistics. This addition will let us count the number of people visiting https://merely-useful.tech/ (we can then drill down to the py-rse book or others). I'm assuming that once this is merged, all of the HTML pages will be updated...

k8hertweck commented 2 years ago

I just added Plausible tracking to another project built in Jekyll, and it required a few lines be added to the config file.

I found this bookdown project that uses Plausible and seems to only include the code snippet in the header (as you've done), so fingers crossed we're good to go.

gvwilson commented 2 years ago

@k8hertweck can you please point us at the config or summarize here? I think adding to the include file will be enough, but as a backup...

k8hertweck commented 2 years ago

@gvwilson That's the thing! I don't see any other place the config is necessary for a site rendered via bookdown. There isn't one in the link I shared (only the code snippet in the header).

lwjohnst86 commented 2 years ago

Let's try it out then! Merging and @gvwilson you can watch to see how it goes, if it works.