docs(website): add privacy-friendly analytics to the docs site
CI / build (pull_request) Failing after 12s
CI / build (pull_request) Failing after 12s
GoatCounter via Starlight's `head` option, same site code as the marketing site so /docs traffic lands in one dashboard and referrer paths stay comparable. No cookies, no personal data, no consent banner, nothing to host. Answers the one question we cannot answer today: do the articles convert into documentation reads? Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 file changed
+12
@@ -7,6 +7,18 @@ export default defineConfig({
|
|||||||
base: '/docs',
|
base: '/docs',
|
||||||
integrations: [
|
integrations: [
|
||||||
starlight({
|
starlight({
|
||||||
|
// GoatCounter — same site code as the marketing site, so /docs traffic lands in
|
||||||
|
// the same dashboard and referrer paths stay comparable.
|
||||||
|
head: [
|
||||||
|
{
|
||||||
|
tag: 'script',
|
||||||
|
attrs: {
|
||||||
|
'data-goatcounter': 'https://greentea.goatcounter.com/count',
|
||||||
|
async: true,
|
||||||
|
src: '//gc.zgo.at/count.js',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
// Let the content-backed 404.md own /404; otherwise Astro also injects a conflicting route.
|
// Let the content-backed 404.md own /404; otherwise Astro also injects a conflicting route.
|
||||||
disable404Route: true,
|
disable404Route: true,
|
||||||
title: 'Green Tea.',
|
title: 'Green Tea.',
|
||||||
|
|||||||
Reference in new issue
Block a user