Skip to content

plausible analytics no longer loading #265

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

Closed
ewdurbin opened this issue Apr 11, 2025 · 7 comments
Closed

plausible analytics no longer loading #265

ewdurbin opened this issue Apr 11, 2025 · 7 comments

Comments

@ewdurbin
Copy link
Member

As of an hour or two ago, see https://analytics.python.org/docs.python.org and https://plausible.io/docs.python.org

Looks like only a few cached pages still are loading.

Image
@ewdurbin
Copy link
Member Author

suspect commits around that time: #235, #264, #258 and python/psf-salt#560

@AA-Turner @hugovk any ideas?

@AA-Turner
Copy link
Member

I ran a manual rebuild for the security branches:

adam@docs:/srv/docsbuild$ sudo su --shell=/bin/bash docsbuild
docsbuild@docs:/srv/docsbuild$ /srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --languages en --select-output only-html-en --branches 3.14 3.13 3.12 3.11 3.10 3.9

This ran without PYTHON_DOCS_ENABLE_ANALYTICS=1, because that environment variables is managed by Salt, and seemingly only set for the scheduled cron jobs.

I've just started another rebuild with PYTHON_DOCS_ENABLE_ANALYTICS=1 set, hopefully this restores normality.

A

@AA-Turner
Copy link
Member

https://docs.python.org/3.14/ is now showing as having the scripts again, please could you confirm? Sorry for the trouble.

Is there a good way to set all of the salt-managed environment variables at once in a shell for when doing manual rebuilds?

A

@hugovk
Copy link
Member

hugovk commented Apr 11, 2025

I also see the Plausible scripts at https://docs.python.org/3.14/ and the view counts are increasing again:

https://plausible.io/docs.python.org?period=realtime&keybindHint=R

Image

@ewdurbin
Copy link
Member Author

Probably the least intrusive way would be to update the scripts to read from a config file in like an xdg style way, allowing us to set a server wide setting that is picked up by the script when run in cron, interactively, or when using sudo.

Then salt could write the sentry dsn, fastly bits, and the analytics bit to /etc/....somethingoranother, and users could have local overrides.

@AA-Turner
Copy link
Member

Symlinks have updated, I now see plausible on https://docs.python.org/3/.

A

@hugovk
Copy link
Member

hugovk commented Apr 11, 2025

Opened #266 as a reminder for this.

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

No branches or pull requests

3 participants