Repository navigation
docs: cookieless page-view counter and privacy page - #23
Merged
Merged
Conversation
Contributor
Author
|
Local checks (GitHub Actions cannot run while this repo is private; the org billing block). Run on this laptop, 2026-10-24, at Latest
gitleaks 8.30.1 (the version the workflow pins, checksum verified). These are the same three checks the |
This was referenced Oct 24, 2026
The docs share an origin with the other sites on libraries.horizon36596.org, so pageviews.js calls GoatCounter's documented /count endpoint itself instead of loading count.js. The privacy page says exactly what is sent, and that the fonts load from Google Fonts.
featurescript
force-pushed
the
docs/analytics
branch
from
October 26, 2026 23:33
6142e60 to
161d44e
Compare
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 a page-view counter to the docs site (libraries.horizon36596.org/simloop/) and a short Privacy page that says what it collects.
SimLoop/docs/assets/javascripts/pageviews.js, loaded throughextra_javascript. It sends one request per page view to GoatCounter's documented/countendpoint (page path and title, referrer, screen size). It loads no third-party script, because these pages share an origin with the other sites on libraries.horizon36596.org, so an outside script could read their browser storage. No cookies, no local storage. It does nothing untilGOATCOUNTER_CODEis set, and counts only on libraries.horizon36596.org, so localmkdocs serveis not counted.SimLoop/docs/privacy.md, in the Help section of the nav. It also says the fonts load from Google Fonts, which was true before this PR../gradlew :SimLoop:docsSite(mkdocs --strict) and the leak gate pass. The script was checked with a stubbed browser: one correct request on the live host, none on localhost or with the placeholder code.Before it counts: create the GoatCounter site and replace the placeholder. Public repo: needs the owner's hand review before merge.