Skip to content

plausible analytics no longer loading #265

Closed

Description

@ewdurbin

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

Activity

  1. ewdurbin commented on Apr 11, 2025

    @ewdurbin
    MemberAuthor

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

    @AA-Turner @hugovk any ideas?

  2. AA-Turner commented on Apr 11, 2025

    @AA-Turner
    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

  3. AA-Turner commented on Apr 11, 2025

    @AA-Turner
    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

  4. hugovk commented on Apr 11, 2025

    @hugovk
    Member

    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
  5. ewdurbin commented on Apr 11, 2025

    @ewdurbin
    MemberAuthor

    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.

  6. AA-Turner commented on Apr 11, 2025

    @AA-Turner
    Member

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

    A

  7. hugovk commented on Apr 11, 2025

    @hugovk
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions