Repository navigation
[DOC] Add privacy-preserving analytics to the documentation site - #3973
Draft
TonyBagnall wants to merge 1 commit into
Draft
TonyBagnall wants to merge 1 commit into
TonyBagnall wants to merge 1 commit into
Conversation
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>
Contributor
Thank you for contributing to
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds privacy-preserving analytics to the documentation site.
docs/conf.pygains onehtml_js_filesentry 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.
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
aeonis 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 changefor discussion obviously, also open to ownership (currently in my name) and usage (I monitor aeon stats in another repo, hence this PR)