How to set up Google Tag Manager server container

Written by

Ira Holubovska

Updated Oct 1, 2026 comments

Step 1: Create a Google Tag Manager server container

This video shows how to set up a GTM server-side container
Setting up server Google Tag Manager

➡️ Note

Set up server GTM
Set up server GTM
Set up server GTM

Step 2: Create a Stape account to host your server GTM container

Go to stape.io and create an account or log in.
Click Create sGTM container on the main page.
Paste the Container Config data
Stape pricing plans
running

Step 3: Configure a custom tagging server URL

Types of custom domain config

Step 1. Add your custom domain

How to add a custom domain in the Stape admin

Step 2. Add CDN

CDN toggle

Step 3. Select the "How to connect" method

"How to connect" options
Automatic connection via Entri
Manual connection selected

Step 4. Add DNS records (for the manual connection method)

Adding a custom domain with a CNAME record
Adding a custom subdomain with A and AAAA records

Step 5. Verify your domain

"Verify" button
Status "Ready" in the Stape admin

Step 6. Add tagging server URL and update your website script

Server container URL in GTM
Custom Loader
Tracking Score
Domain Settings
Score panel

Step 4: Create a Google Tag inside the web GTM container

Add trigger GA4 tag
Create a Google tag: Configuration settings variable

Step 5: Create Google Analytics: GA4 Event tag

Create a GA4 Event tag

Step 6: Create GA4 client inside Server GTM container

Tag configuration
Trigger configuration

Step 7: Check and debug your setup

Check and debug your setup

Step 8: Set up a Custom GA4 Loader

Stape account
sGTM containers
Custom Loader
Save changes
Google Tag Manager request URL
GA4 request URL

Google Tag Manager server container: real Stape users' problems solved

FAQ

Conclusion

Want to start on the server side?

Try for free

Written by

Ira Holubovska

Content writer

Ira has 10+ years of digital marketing experience, with the last 5 focused on server-side tracking. She understands how and when it works across various digital marketing scenarios.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free