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

WEB/DOC: use Plausible for analytics (using Scientific Python server) #53984

Merged

Conversation

jorisvandenbossche
Copy link
Member

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).

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>
Copy link
Contributor

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?

Copy link
Member Author

@jorisvandenbossche jorisvandenbossche Jul 3, 2023

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)

@mroeschke mroeschke added the Web pandas website label Jul 6, 2023
Copy link
Member

@lithomas1 lithomas1 left a 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.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

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.

@github-actions github-actions bot added the Stale label Aug 8, 2023
@mroeschke mroeschke added this to the 2.2 milestone Aug 15, 2023
Copy link
Member

@mroeschke mroeschke left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Web pandas website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants