Closed santisoler closed 2 years ago
Should we add a small sentence on the footers with a privacy disclaimer about why we are using Plausible and what is it tracking?
I think it’s probably better not to do that. Since if we ever need to change providers it will be yet another thing to update.
Plausible doesn’t support joining multiple subdomains into a single entry so the legacy docs need to use:
<script defer data-domain="legacy.fatiando.org" src="https://plausible.io/js/plausible.js"></script>
The stats will be separate but we can always join them when exporting the data.
I've just updated the PR description comment by adding a script to replace google analytics for plausible automatically. ☝🏼
We are done! Plausible is working throughout the project, no trackers left. I'm closing this.
Description:
On the Development Call of 2022-01-14 we decided to stop using Google Analytics and replace it for Plausible, an open-source lightweight and privacy-friendly alternative.
We should replace the existing Google Analytics script:
For this one:
This should be done through out the websites of the project, including:
main
branch, so we will start using it after we build and deploy)gh-pages
branches)Apply to:
Here I list all the repos that should be modified. For each one of the packages repos, check the box only after the snippet has been replaced in the
main
branch and in the older docs as well.Further instructions:
Related to fatiando/community#XX
We want your help!
We know that maintenance tasks are very demanding, so we don't expect a single person to tackle this issue by themselves. Any help is very welcomed, so please comment below that you want to take care of the changes on any repository and we will assign it to you.
Update
Considering the documentation pages of the older versions of each package we can count +200 HTML files that need to be modified. So it's better to perform this change automatically.
I wrote a simple Python script to apply the modifications to a single HTML file:
plausible.py
:To use it, copy and paste the code to a file, give it execution permissions with
chmod u+x plausible.py
and run it by passing the html file that you want to change as the first argument:In order to run this script over multiple files, we can use the following bash line:
Check if the changes have been successfully applied by running
git diff
.We can change the domain from
fatiando.org
to something likelegacy.fatiando.org
by changing thedomain
variable in theplausible.py
script.