Skip to content

Add Analytics link for built projects#179

Merged
m-aciek merged 2 commits intomainfrom
copilot/add-statistics-link-to-built-projects
Apr 27, 2026
Merged

Add Analytics link for built projects#179
m-aciek merged 2 commits intomainfrom
copilot/add-statistics-link-to-built-projects

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 23, 2026

Adds a third link, "Analytics", to the card for each built translation project, pointing to the Plausible analytics page filtered by that language's path prefix.

Closes #151.

Changes

  • templates/index.html.jinja: Added a Analytics <li> inside the {% if project.built %} block, linking to:
    https://analytics.python.org/docs.python.org?f=contains,page,/{{ project.language.code }}/
    
    Only rendered for built projects, alongside the existing "View" link.

📊 Dashboard preview 📊: https://python-docs-translations.github.io/dashboard/179/merge/

Comment thread templates/index.html.jinja Outdated
@m-aciek m-aciek changed the title Add Statistics link for built projects Add Analytics link for built projects Apr 24, 2026
@m-aciek m-aciek requested a review from StanFromIreland April 27, 2026 07:42
@m-aciek m-aciek merged commit 3281ff3 into main Apr 27, 2026
4 checks passed
@m-aciek m-aciek deleted the copilot/add-statistics-link-to-built-projects branch April 27, 2026 15:50
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

Successfully merging this pull request may close these issues.

Link to language stats

3 participants