
In shortThis tutorial sets up server-side Google Tag Manager on Stape.io, a managed host, and sends GA4 through it. You create the containers, map a subdomain, point the GA4 Google tag at it, test and publish.
What you need before you start
- A Stape.io account
- A Google Tag Manager account
- A GA4 property
- Access to your domain's DNS records
Steps covered in the video
- Create a container in Stape.io.
- Create a server-side GTM container.
- Map the server subdomain in your DNS manager.
- Add the subdomain to the server container and to the website container, through the GA4 Google tag.
- Test a GA4 page view.
- Publish both containers.
Common questions
Why use my own subdomain?
Data sent to a subdomain of your site (for example data.yoursite.com) is treated as first-party by browsers, so cookies last longer and fewer requests get blocked.
Resources
Recorded in August 2024. Some screens may look different today.
Related videos
19:46Install Google Tag Manager server-side on Google Cloud
Run your own tracking server on Google Cloud Run, step by step.
September 2024
17:13Map a custom subdomain to server-side GTM on Google Cloud with a Load Balancer
Put your Cloud Run tracking server behind your own subdomain, the robust way.
September 2025
10:45Build a server-side GTM tag template that sends data to any endpoint
Send conversions to a platform with no ready-made GTM tag.
September 2024