Updated Tinybird tracker endpoint to use versioned API endpoint (#17)

ref https://linear.app/ghost/issue/PROD-2270/update-the-ghost-docker-repo-to-use-the-apiv1page-hit-endpoint

The Analytics Service is now using a new versioned endpoint at `/api/v1/page_hit` instead of the `/tb/web_analytics` endpoint. This update's Ghost's configuration to use this new endpoint for the tracker requests.

Note: this will require a docker compose pull to get the latest version of the analytics service, which includes the new versioned endpoint.
This commit is contained in:
Chris Raible
2025-07-09 20:53:40 -07:00
committed by GitHub
parent 1630a4e60f
commit 6e5400acb5

View File

@@ -37,7 +37,7 @@ services:
database__connection__database: ghost
enableDeveloperExperiments: ${ENABLE_DEVELOPER_EXPERIMENTS:-false}
labs__ActivityPub: ${ENABLE_ACTIVITYPUB:-false}
tinybird__tracker__endpoint: https://${DOMAIN:?DOMAIN environment variable is required}/.ghost/analytics/tb/web_analytics
tinybird__tracker__endpoint: https://${DOMAIN:?DOMAIN environment variable is required}/.ghost/analytics/api/v1/page_hit
tinybird__tracker__datasource: analytics_events
tinybird__stats__endpoint: ${TINYBIRD_API_URL:-https://api.tinybird.co}
tinybird__stats__token: ${TINYBIRD_STATS_TOKEN:-}