Skip to content

docs: count visits with Cloudflare Web Analytics - #204

Merged
benatespina merged 2 commits into
mainfrom
chore/docs-web-analytics
Oct 17, 2026
Merged

benatespina merged 2 commits into
mainfrom
chore/docs-web-analytics

Conversation

@benatespina

Copy link
Copy Markdown
Member

Summary

  • Every docs page loads Cloudflare's Web Analytics beacon, under the same bounda.dev site as the landing and the demo.

Changes

  • docs/src/site.ts: analytics, the beacon as a Starlight head tag; HeadTag now takes a script as well as a meta.
  • docs/astro.config.mjs: head adds it after the social image tags. No cookies.

Checked

  • pnpm check green.
  • docs build: the beacon is in getting-started/index.html and 404.html.

Under the bounda.dev site, which also counts the landing and the demo, so the launch can be read in one place. No cookies.
The social image's meta tags each set name or property, so their union carries the other as undefined, which a Record of strings refused.
@benatespina
benatespina merged commit 71acf5c into main Oct 17, 2026
5 checks passed
@benatespina
benatespina deleted the chore/docs-web-analytics branch October 17, 2026 14:13
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.

1 participant