Server-side Google Tag Manager
Process and route data through GTM server-side container
Overview
The Google Tag Manager server-side host allows you to process and route your Hardal analytics data through your GTM server container.
Prerequisites
-
Client-side Google Tag Manager
-
Server-side Google Tag Manager for Container Config Key
Configuration
-
Go to your Hardal dashboard
-
Navigate to Server-side Host
-
Select “Server-side Google Tag Manager”
Host Settings
Available Features
-
Custom client configuration
-
Event filtering and transformation
-
Multiple endpoints support
-
Advanced routing rules
-
Preview mode for testing
Client Configuration
In your GTM server container:
-
Create a new Client
-
Set Client Name to match your Hardal configuration
-
Configure Client Fields:
-
clientId
-
timestamp
-
page_location
-
page_title
-
event_name
-
Tag Configuration
Example GA4 tag setup:
Best Practices
-
Use proper event validation
-
Set up monitoring
-
Configure error handling
-
Implement proper security measures
-
Use preview mode for testing
-
Monitor server resources
Testing
-
Enable preview mode in host settings
-
Use sGTM preview mode to debug
-
Check server container logs
-
Verify data in connected platforms
Was this page helpful?