Files
ghost-docker/TINYBIRD.md
James Loh 43891c65b5 Simplify TB initial setup
no ref

- By outputting the tokens in the format the `.env` file expects this greatly simplifies the initial setup by just makign it copy -> paste able
- This will mean users don't need to load up the UI and copy/paste tokens at all and can do the whole setup (after they've signed up for TB) from the CLI
2025-07-15 11:40:53 +10:00

1.5 KiB

Tinybird Configuration

Note: Currently Traffic Analytics features are behind a feature flag. For now, you'll need to enable it by following the steps below:

  1. Create a Tinybird account and a Tinybird workspace at tinybird.co. You can select any cloud/region you choose.
  2. Run docker compose run --rm tinybird-login to login to your Tinybird account following the steps given
  3. Run docker compose --profile=analytics up tinybird-sync. This will copy the Tinybird files from the Ghost container into a shared volume. The service should log "Tinybird files synced into shared volume.", then exit.
  4. Run docker compose --profile=analytics up tinybird-deploy and wait for the service to exit successfully. This will create your Tinybird datasources, pipes and API endpoints. It may take a minute or two to complete the first time. You should see "Deployment #1 is live!" in your terminal before the service exits.
  5. Run docker compose --profile=analytics run --rm tinybird-login get-tokens
  6. Copy and paste the values from the previous step into your .env file
  7. Run docker compose --profile=analytics up -d to start all services in the background
  8. Add analytics to COMPOSE_PROFILES= in the top of your .env file to automatically include the analytics profile when running docker compose commands
  9. At this point, everything should be working. You can test it's working by visiting your site's homepage, then checking the Stats page in Ghost Admin — you should see a view recorded.