-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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 for docs metrics #120074
Comments
Where is the plausible dashboard hosted? Their cloud or do we self host? Would it be cheaper to self-host? (sorry if all of this has been discussed, I use plausible in my homelab so im just curious) |
It's hosted in their cloud. The PSF prefers hosted services for this kind of thing rather than increasing the burden on their limited infra staff. Paying the experts to maintain is more cost-effective and a more efficient use of PSF resources. Once it's up and running, I'd like to make the read-only dashboard open to all. It will have info like the screenshots at https://discuss.python.org/t/docs-metrics-trial-with-plausible/28896/4 and will be useful for our translators and documenters. |
To enable plausible using an environment variable I proposed a simple patch in your PR @hugovk, and I don't think we should touch docsbuild scripts which could be used to local builds too (like by translators, html previous, and so on). I think the environment variable should be added to the build cron directly on docs.python.org, so via https://github.com/python/psf-salt/. |
Thanks, added to the PR.
Yep, okay. Do you know what changes are needed for psf-salt and could you propose a PR, or point me in the right direction? |
Hum, I'm very not a salt user, @ewdurbin could you help us? We'll need a |
Two options, given that docbuild-scripts is more or less unique to the docs.python.org deployment consider setting it there, or adding a section like https://github.com/python/psf-salt/blob/fb015e69842594575efdc8d855d0edcb8b1a44ac/salt/docs/init.sls#L69-L73 for the docsbuild user's cron. |
I'd prefer it on the psf-salt side than on docsbuild-script, I don't think I'm alone (OK let's write "I hope I'm not alone") to use docsbuild-script on my machine for some tests. |
Great! Then a quick PR to add something like:
to the state for docs should be all that's needed. |
Thanks, please see PR python/psf-salt#357. |
docsbuild server has been updated with the env var for cron tasks. |
The snippet has been deployed to the Thanks all! |
We're going to continue using Plausible for https://docs.python.org stats. We'll start with a trial again (because it's now hosted under a PSF account), and after that the Steering Council said it can be covered by their budget.
(Here's data from the trial last July: https://github.com/hugovk/plausible-stats)
During the trial, @JulienPalard suggested in #107136 that the loading of the JavaScript snippet should be:
I think an env var sounds the best option. That way we can define both it in docsbuild-script and also Read the Docs, which will enable a smoother migration (re: python/docs-community#5).
Here's what the plain JS snippet looks like in the template: #119977
@JulienPalard What sort of changes do we need to #119977 and https://github.com/python/docsbuild-scripts to put it behind an env var?
The text was updated successfully, but these errors were encountered: