Make sure to check the partner’s website and API documentation for the most up-to-date information and configurations.
Set Up Server-Side GTM
Complete the Server-side Google Tag Manager setup first.
Configure GA4 Client
In your server-side GTM container:
- Go to “Clients” and click the built-in “GA4” client
- Configure settings:
- Default GA4 paths: Enabled
- Default gtag.js paths: Enabled with your GA4 Measurement ID
- Automatically serve dependent scripts: Enabled
- Cookies and Client Identification: JavaScript Managed
- Save configuration
Create GA4 Server Tag
- In server container, go to “Tags” → “New”
- Select “Google Analytics: GA4” tag type
- Enter your GA4 Measurement ID
- Create trigger: “Some Events” where “Client Name equals GA4”
- Save as “GA4 Server Tag”
Configure Web Container
In your client-side GTM container:
- Create new “Google Tag”
- Enter your GA4 measurement ID
- Add configuration parameter:
- Name:
server_container_url - Value: Your Hardal sGTM Tagging URL
- Name:
- Set trigger to “All Pages”
- Save and publish