Server-side Google Tag Manager
Set up and configure Server-side Google Tag Manager with Hardal
Overview
Server-side Google Tag Manager (sGTM) integration with Hardal enables you to process and route your analytics data through your GTM server container, providing better control over data collection and improved performance.
Prerequisites
Before setting up server-side GTM, ensure you have:
-
A configured Google Tag Manager server container
-
Access to your Hardal dashboard
-
Your GTM server container’s Config Key (see below for how to find it)
Setting up a custom domain for your sGTM container is recommended for better data ownership and reliability.
Finding Your Config Key
Access Server Container
-
Log into Google Tag Manager
-
Select your server container from the container list
-
Ensure you’re viewing the server container (marked with “Server” tag)
Navigate to Admin Settings
-
Click the “Admin” button in the top navigation
-
Select “Container Settings” from the middle column
Locate Config Key
-
Scroll to the “Container Config” section
-
Find the “Container Config Key” field
-
Copy the displayed key value
The Container Config Key is a string of characters unique to your server container. Keep this key secure as it provides access to your container configuration.
Setup Process
Configure Server-side Host
-
Log into your Hardal dashboard
-
Navigate to “Server-side Hosts”
-
Find the “Server-side Google Tag Manager” section
-
Enter your config key to configuration settings
Verify Setup
-
Enable preview mode in your sGTM container
-
Check server container logs for incoming events
-
Monitor for any error messages
Troubleshooting
Common Issues
Need Help?
If you need assistance with your sGTM setup:
-
Contact support: support@usehardal.com
-
Documentation: docs.usehardal.com
-
GTM Documentation: Google Tag Manager Help
Was this page helpful?