Google Tag Manager Server-Side (SST) on Zeabur
This template helps you quickly deploy Google Tag Manager Server-Side (SST), including Preview Server and Tagging Server.
Steps
- Go to the GTM Server Container backend, click the container ID in the top right corner, select "Manually provision tagging server", and copy the Container Config.
- Set the domains for Preview Server and Tagging Server (recommended to use different subdomains).
- After deployment, fill in the public URL of the Tagging Server into the GTM backend Admin > Container Settings > Server container URL.
- Refer to the official documentation for verification and health checks.
- Official documentation: https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide
Health checks
- You can check the service status through the
/healthz
path, for example https://your-domain/healthz
.
Notes
- Preview Server can only have one instance, and must set
RUN_AS_PREVIEW_SERVER=true
.
- Tagging Server must set
PREVIEW_SERVER_URL
to the HTTPS URL of the Preview Server.
- It is recommended to bind the two services to different subdomains.