Google tag gateway with CDN + SGTM

This document guides developers on how to best combine Google tag gateway with CDN (GTG) and server-side Tag Manager (SGTM). While both can function independently, using them together offers the most robust and controlled tagging setup.

Google tag gateway setup options

  1. Google tag gateway with CDN: The CDN serves Google scripts directly from your first-party domain for durability. Data is sent to Google through your first-party domain.
  2. Google tag gateway with SGTM: The SGTM server handles both first-party script serving and data collection.
  3. Google tag gateway with CDN + SGTM (Recommended): The CDN serves Google scripts directly from your first-party domain for durability, while a separate SGTM server manages data collection, enrichment, and control.

This guide focuses on migrating to or implementing the Recommended setup (Option 3), which combines the benefits of CDN-based script serving (lower cost, reduced SGTM server load) with the advanced data control features of SGTM.

GTG with SGTM + CDN recommended architecture.

Before you begin

This guide assumes you have administrator access to your Google Tag Manager web container.

Fill in the following to populate the examples throughout this document:

Your domain: example.com
Tag serving path (GTG): /scripts
Server-side path (SGTM): /metrics

Pick an implementation option to see instructions.