GTM Fundamentals and Web Container
Server-side tagging exists to solve the data-loss problem in client-side tracking. This module covers the architecture, the limitations being solved, and the 90-day migration plan.
What you will learn
- Why server-side tagging exists and what problem it solves
- How web container tagging works
- Web container architecture: dataLayer, triggers, variables, tags
- Limitations of client-side tagging in 2026
- The server-side alternative
- When server-side matters most
- The data flow: client → server → vendor
- Common tags and their server-side configuration
- Costs and engineering investment
- Vendor landscape
- The 90-day server-side migration plan
1. Why server-side
Client-side tag tracking (Google Tag Manager web container, Tealium, Adobe Launch) sends user data directly from the browser to vendors. Three forces have made client-side less viable: ad blockers (30 - 50% of traffic in many segments), browser tracking restrictions (Safari ITP, Firefox ETP, Chrome cookie deprecation), and privacy regulations (GDPR, CPRA).
Server-side tagging: data flows from the browser to your own server-side container, which then proxies it to vendors. This preserves data quality, gives you control, and reduces page weight.
2. How web container tagging works
Web container (client-side) tagging flow:
- Page loads; tag manager script loads.
- Event occurs (page view, click, purchase).
- dataLayer event fires.
- Tag manager evaluates triggers, fires tags.
- Each tag sends data directly to its vendor.
3. Web container architecture
- dataLayer: JavaScript array of structured events.
- Triggers: Conditions that fire tags (page view, click, form, custom event).
- Variables: Data references (URL, click element, dataLayer values, cookies).
- Tags: Scripts that execute (analytics, ads, pixels).
4. Client-side limitations
| Limitation | Impact |
|---|---|
| Ad blockers | 20 - 50% of data lost in some categories |
| Safari ITP | Cross-domain cookies expire in 7 days |
| Chrome cookie deprecation | Third-party cookies blocked |
| Browser bot filters | Some legitimate traffic filtered |
| Page weight | 10 - 30 tags add 100 - 500ms to page load |
| Vendor outages | Slow vendor scripts slow page |
5. The server-side alternative
Server-side tagging architecture:
- Page loads; minimal client-side script loads.
- Events sent to your server-side container endpoint.
- Server-side container processes events.
- Server-side container forwards events to vendors via server-to-server APIs.
6. When server-side matters most
- High-traffic sites where data quality affects revenue decisions.
- Sites with significant ad-block / Safari traffic.
- Programs relying on Meta Conversions API, Google Enhanced Conversions.
- Sites under privacy-regulation scrutiny.
- Performance-sensitive sites.
7. The data flow
8. Common tag conversions
- GA4 → GA4 Measurement Protocol via server-side.
- Meta Pixel → Meta Conversions API.
- TikTok Pixel → TikTok Events API.
- Google Ads conversion → Enhanced Conversions.
- LinkedIn Insight → LinkedIn CAPI.
9. Costs
- Server-side container hosting (typically $50 - $500/month at modest scale).
- Engineering setup time (40 - 200 hours initial).
- Ongoing maintenance.
- Domain configuration (sGTM subdomain or cloud-run).
10. Vendor landscape
- Google Tag Manager Server-Side (most common).
- Stape: Managed hosting for sGTM.
- Tealium iQ + EventStream (enterprise).
- Adobe Launch / Edge Network (enterprise Adobe).
- Segment (Twilio): Source-of-truth event collection.
- RudderStack: Open-source alternative.
11. Migration plan
- Week 1 - 2: Inventory current tags and data flow.
- Week 3 - 4: Set up sGTM instance; configure subdomain.
- Week 5 - 8: Migrate one tag at a time, starting with highest-value.
- Week 9 - 12: Validate data parity, deprecate client-side tags.
Sources & further reading
- Google Tag Manager Server-Side docs
- Stape blog
- Simo Ahava's blog
- MeasureSchool
- Optimize Smart (Himanshu Sharma)
- Analytics Mania
- Tealium blog
- Segment blog
- RudderStack blog
- Books: Krista Seiden, Measure Up; Simo Ahava's GTM cookbook
- Marketing Analytics Summit
- MeasureCamp
Part of the GTM Server-Side series · RGM Training