Server-side Google Tag Manager
Coming Soon!
Create a Server-Side Container
Log in to your Google Tag Manager
Click "Create Container" → Select "Server" as the target platform
Name the container and finish creation
Provision a Tagging Server
Automatic (Recommended)
Use the GTM UI to set up on Google Cloud Run automatically
Configure a Custom Domain (Recommended) [optional] When you first set up a tagging server, it is hosted on a domain provided by the cloud provider. When you use the default endpoint, it delivers data to the server container, but runs in a third-party context. To unlock the benefits of a first-party context, such as more durable cookies, your tagging server and your website have to run on the same domain.
Use a subdomain like
metrics.yourfunneldomain.com
Update your DNS records to point to your tagging server
In GTM: Admin > Container Settings > Add URL → Add the custom domain
Add Server-Side Tags
Recommended:
Conversion Linker (All Pages)
Input your Conversion ID and Label from Google Ads
Trigger on appropriate events (e.g., "purchase", "sign_up")
Set Up Clients in the Server Container
The GA4 client is pre-installed to handle GA4 events
If you're using a GTM Web Container, add a "GTM Web Container" client and enter your container ID
Go to AnalyticsMania, to get an in-depth tutorial
Validate and Test
Use Tag Assistant to preview and test your server container
Confirm tags are firing correctly
Check for any errors in the console
Go Live
Publish the server container
Remove any duplicate tracking tags from your web container to avoid duplication
Configure CheckoutChamp
Go to the funnel > Settings > Tracking Pixels
add the custom domain from Step 3, if configured
otherwise, add the GTM generated server URL
Default URL format using Cloud Run:
https://[GOOGLE_CLOUD_PLATFORM_PROJECT_ID]-[GOOGLE_CLOUD_REGION_ID].a.run.app
Save
Publish the funnel

Last updated