-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
WEB/DOC: use Plausible for analytics (using Scientific Python server) #53984
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
WEB/DOC: use Plausible for analytics (using Scientific Python server) #53984
Conversation
gtag('js', new Date()); | ||
gtag('config', 'G-5RE31C1RNW'); | ||
</script> | ||
<script defer data-domain="pandas.pydata.org" src="https://views.scientific-python.org/js/script.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to have this snippet in addition to the theme's analytics?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is for the website pages, which uses a different tool/theme/layout compared to the docs (which uses pydata-sphinx-theme)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM but I would defer to @datapythonista for final review.
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure let's try this
This proposes to switch from our current usage of Google Analytics to Plausible.
(currently it fully switches, but could also first add it in addition so we have both for some time)
Plausible is a privacy-friendly and open source alternative for Google Analytics (https://plausible.io/).
The server we are using here is a self-hosted one by the Scientific Python team (using one from plausible.io costs some money). But the disclaimer I got from @stefanv is that it's a small server without professional sysadmin support and is currently not automatically backed up (but we could set up a cron job to query the data and dump them somewhere). I think, given that this is also being used by other projects (numpy, scipy, scikit-learn, ..), that this is fine, and if there come up problems, we will be able to look for solutions together.
The main advantage is that privacy-friendly (not collecting data for a big corporation ..). I think our current usage of Google Analytics is actually not correct (I assume we should have a pop-up to ask for permission).
The consequence of that is that Plausible cannot track "unique visitors" over time (only per day), for example per month (https://plausible.io/data-policy#how-we-count-unique-users-without-cookies).