docs: instrument docs.seleniumboot.com with GoatCounter - #32
Merged
Conversation
The docs site had no analytics of any kind — no scripts, no headTags. All 53 doc pages were invisible, which meant the entire quickstart funnel was unmeasured and any CTA landing on docs (including the dev.to post's only link) recorded no referral at all. Uses the same GoatCounter account as seleniumboot.com: cookieless, no personal data, no consent banner needed. Docs and the marketing site report into one GoatCounter site, so raw paths would collide — the apex homepage and the docs homepage both count as "/". An inline settings script namespaces every docs hit under "/docs-site/..." so the two hostnames stay separable in the dashboard. It runs before count.js, which the head tag ordering guarantees. Verified: production build succeeds, and all 54 generated HTML pages carry both the namespacing script and the count.js tag. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Closes P1-9.
Why
docs-site/docusaurus.config.jshad no analytics of any kind — noscripts, noheadTags, nothing. All 53 doc pages were invisible, so the entire quickstart funnel was unmeasured, and any CTA landing on docs (including the dev.to post's only link) recorded no referral.This is more urgent than when it was filed: the live Show HN points at the GitHub repo, and the repo README's primary links go to
docs.seleniumboot.com. Any traffic it sends lands on the one surface that records nothing.What
Same GoatCounter account as
seleniumboot.com— cookieless, no personal data, no consent banner needed.One wrinkle worth calling out: docs and the marketing site report into a single GoatCounter site, so raw paths collide — the apex homepage and the docs homepage would both count as
/, corrupting the homepage number that gets watched most. An inline settings script namespaces every docs hit under/docs-site/...so the two hostnames stay separable. Head-tag ordering guarantees it runs beforecount.js.Verification
npm run buildsucceedscount.jstag (53 docs + index)build/docs/getting-started.html) — correct endpoint attributewindow.goatcounter={path:function(t){return"/docs-site"+t}}After merge
Deploys via the existing
docs-site/**→ GitHub Pages path. Worth confirming hits appear in GoatCounter under/docs-site/*once it's live.🤖 Generated with Claude Code