The setup and your infrastructure
Three setups exist, and the right one depends on what you already run. The choice is made with your technical teams.
- Through your CDN: Cloudflare, Akamai, Fastly or another, the tag is served from your domain without changing your hosting
- Through your web server or load balancer: the same outcome when your architecture has no CDN in front of it
- With a tag management server: the setup Google recommends, combining the CDN and sGTM
- The same-origin constraint: script serving and collection travel through two distinct paths on your own domain, which drives the configuration
- What you already have: some server-side tagging setups already cover part of this, and we look before proposing work