Skip to content

[DOC] Add privacy-preserving analytics to the documentation site - #3973

Draft
TonyBagnall wants to merge 1 commit into
mainfrom
ajb/docs-analytics
Draft

TonyBagnall wants to merge 1 commit into
mainfrom
ajb/docs-analytics

Conversation

@TonyBagnall

@TonyBagnall TonyBagnall commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Adds privacy-preserving analytics to the documentation site. docs/conf.py gains one html_js_files entry that loads the GoatCounter script, only on Read the Docs production builds. Local builds and pull request previews (READTHEDOCS_VERSION_TYPE == "external") are excluded so they don't inflate the counts.

Why. aeon-toolkit.org currently has no analytics of any kind, so we can't tell how many people read the documentation, which pages they use (are the tutorials read? where do people land?), or where they come from.

Why GoatCounter.

GoatCounter Google Analytics 4
Cost free free
Cookies none yes
Consent banner needed in EU/UK no yes
Personal data collected none yes
Dashboard can be made public yes no
Open source yes (EUPL) no

No cookies means no consent banner, which is better. It collects aggregate page views, referrer, country, browser and screen size, with no cross-site tracking and no individual identified.

The site code aeon is registered at https://aeon.goatcounter.com. If the project would rather not depend on a donation-funded service, Umami Cloud's free tier or self-hosting either tool are drop-in alternatives: only the URL and one attribute change

for discussion obviously, also open to ownership (currently in my name) and usage (I monitor aeon stats in another repo, hence this PR)

Load the GoatCounter script on Read the Docs production builds so the
project can see how many people read the documentation, which pages they
use and where they come from. GoatCounter is free and open source, sets no
cookies and stores no personal data, so no consent banner is needed.

Local builds and pull request previews are excluded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TonyBagnall TonyBagnall added documentation Improvements or additions to documentation maintenance Continuous integration, unit testing & package distribution labels Oct 28, 2026
@TonyBagnall
TonyBagnall requested a review from a team October 28, 2026 14:45
@aeon-actions-bot

Copy link
Copy Markdown
Contributor

Thank you for contributing to aeon

I did not find any labels to add that did not already exist. If the content of your PR changes, make sure to update the labels accordingly.

The Checks tab will show the status of our automated tests. You can click on individual test runs in the tab or "Details" in the panel below to see more information if there is a failure.

If our pre-commit code quality check fails, please run pre-commit locally and push the fixes to your PR branch.

Don't hesitate to ask questions on the aeon Discord channel if you have any.

PR CI actions

These checkboxes will add labels to enable or disable CI functionality for this PR. This may not take effect immediately, and a new commit may be required to run the new configuration.

  • Run pre-commit checks for all files
  • Run mypy typecheck tests
  • Run all pytest tests and configurations
  • Run all notebook example tests
  • Run numba-disabled codecov tests
  • Disable numba cache loading
  • Regenerate expected results for testing
  • Push an empty commit to re-run CI checks

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation maintenance Continuous integration, unit testing & package distribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant