Skip to content

feat(demo): optional GoatCounter tracker for public demo builds - #132

Merged
gnacho merged 1 commit into
mainfrom
feat/112-demo-goatcounter
Sep 19, 2026
Merged

gnacho merged 1 commit into
mainfrom
feat/112-demo-goatcounter

Conversation

@gnacho

@gnacho gnacho commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Injects the GoatCounter tracker into index.html only when built with VITE_GC_COUNT, so self-hosted installs never phone home. Hits are recorded with a /demo prefix in the same GoatCounter site as the landing. The Node server adds the stats origin to the CSP (script-src and connect-src) only when GC_ORIGIN is set, so live installs keep the current CSP. The demo service gets GC_ORIGIN via its systemd override.

Closes #112

@gnacho
gnacho merged commit 0a41c03 into main Sep 19, 2026
4 checks passed
@gnacho
gnacho deleted the feat/112-demo-goatcounter branch September 19, 2026 20:43
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.

Public demo: register visits in GoatCounter (demo build only)

1 participant