Skip to content

feat(scans): add GoatCounter website analytics - #22

Merged
mstrhakr merged 1 commit into
mainfrom
feat/scans-goatcounter
Oct 16, 2026
Merged

mstrhakr merged 1 commit into
mainfrom
feat/scans-goatcounter

Conversation

@mstrhakr

Copy link
Copy Markdown
Collaborator

Summary

  • Add the supplied asynchronous GoatCounter snippet for printmaster-scans.goatcounter.com to the landing page, matching the main and docs sites.
  • Add regression coverage for the endpoint, asynchronous loading, and a single tracker inclusion; recognize protocol-relative external assets in site checks.
  • Document website analytics in the README.

Validation

  • node --test .\tests\site.test.cjs .\tests\embed.test.cjs (10 passed)
  • git diff --check

Docs: No canonical guide change needed: website analytics does not alter setup, loaders, or utility behavior.

Deployment: Not deployed; this change requires the normal Pages refresh after merge.

Docs: document website analytics in README; no canonical guide impact because setup, loader, and utility behavior are unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 17:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused changes match the stated requirements, with no unresolved blocking findings.

0 open findings

What changed in this PR

Adds website-only GoatCounter analytics to the Scans landing page without changing the PowerShell loader or utility.

Changes:

  • Loads the Scans tracker asynchronously.
  • Tests the endpoint, asynchronous loading, single inclusion, and protocol-relative assets.
  • Documents analytics in the README; no canonical guide update is needed because utility behavior is unchanged.

Deployment remains pending the normal Pages refresh after merge.

File Description
tests/​site.test.cjs Adds tracker checks and recognizes protocol-relative external assets.
site/​index.html Includes the asynchronous GoatCounter script.
README.md Documents the website-only analytics integration.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mstrhakr
mstrhakr merged commit aabae1e into main Oct 16, 2026
5 checks passed
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.

2 participants