Skip to content

Conversation

JacobCoffee
Copy link
Member

@JacobCoffee JacobCoffee commented Sep 2, 2025

Trivial change to track zip files downloaded from https://docs.python.org/3/download.html
on our Plausible instance for docs: https://analytics.python.org/docs.python.org

ref: https://plausible.io/docs/file-downloads-tracking, https://hackmd.io/_vyolH-NR3GQHoOUjqdzuQ

We may want to add file-types="zip, bz2" if we also want the bz2 packed files? (ref: https://plausible.io/docs/file-downloads-tracking#which-file-types-are-tracked)


📚 Documentation preview 📚: https://cpython-previews--138393.org.readthedocs.build/

@AA-Turner AA-Turner changed the title feat(docs): track downloads via plausible Doc: Track file downloads via plausible Sep 2, 2025
@AA-Turner AA-Turner added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Sep 2, 2025
@AA-Turner
Copy link
Member

We may want to add file-types="zip, bz2" if we also want the bz2 packed files? (ref: plausible.io/docs/file-downloads-tracking#which-file-types-are-tracked)

Please.

A

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Let's check this works on main = https://docs.python.org/dev/ before backporting.

@JacobCoffee
Copy link
Member Author

@AA-Turner done!

@hugovk
Copy link
Member

hugovk commented Sep 2, 2025

Oh and let's include .epub:

https://docs.python.org/3/archives/python-3.13-docs.epub

@hugovk hugovk merged commit e4e2390 into python:main Sep 2, 2025
27 checks passed
@miss-islington-app
Copy link

Thanks @JacobCoffee for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 2, 2025
(cherry picked from commit e4e2390)

Co-authored-by: Jacob Coffee <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 2, 2025
(cherry picked from commit e4e2390)

Co-authored-by: Jacob Coffee <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 2, 2025

GH-138396 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Sep 2, 2025
@bedevere-app
Copy link

bedevere-app bot commented Sep 2, 2025

GH-138397 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 2, 2025
@hugovk
Copy link
Member

hugovk commented Sep 2, 2025

It's working :)

image

https://analytics.python.org/docs.python.org?f=is,goal,File%20Download

Or https://analytics.python.org/docs.python.org > Goal Conversions > File Download

hugovk pushed a commit that referenced this pull request Sep 2, 2025
hugovk pushed a commit that referenced this pull request Sep 2, 2025
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants