You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Analytics is included in offline copies of the python documentation. #136194
Did you know our script automatically disables itself when a site is opened on localhost (i.e., the address developers use when they are testing a website or app privately before it goes online)?
This ensures that visits from developers and testers are not counted as real traffic, and you can blindly trust the stats you see on your dashboard – without any manual settings or code-work.
Activity
StanFromIreland commentedon Jul 2, 2025
cc @hugovk @AA-Turner
(I’m also not sure where this should go.)
vstinner commentedon Jul 2, 2025
The markup comes from
Doc/tools/templates/layout.html:The doc is built by https://github.com/python/docsbuild-scripts/ which uses an
PYTHON_DOCS_ENABLE_ANALYTICSenvironment variable.StanFromIreland commentedon Jul 2, 2025
Then it should be moved there I think, as it should not set
PYTHON_DOCS_ENABLE_ANALYTICSfor such builds, unless they reuse the same one.StanFromIreland commentedon Dec 18, 2025
I wrote python/docsbuild-scripts#321.
hugovk commentedon Dec 18, 2025
btw I recently learned:
https://fosstodon.org/@plausible/115650256539111737
https://plausible.io/docs/troubleshoot-integration#are-you-running-on-localhost
vstinner commentedon Jan 6, 2026
In that case, do we need to change the doc or not?
hugovk commentedon Jan 25, 2026
Not really, but let's do it to avoid any future confusion. Thanks all!