4.3
This page details the changes and new features introduced in Google Tag Manager for WHMCS version 4.3.X.
4.3.0
- Release date:
2026-02-19 - Release type:
Feature Release
Google Tag Manager for WHMCS v4.3.0 introduces support for custom GTM domains, enabling advanced server-side tracking configurations with improved reliability and privacy compliance.
New Features
Custom GTM Domain Support
This release introduces the ability to configure custom domains for Google Tag Manager container loading, specifically designed for server-side GTM deployments.
Key capabilities:
- Configure custom domain in admin panel for GTM container loading
- Support for server-side Google Tag Manager with custom domain infrastructure
- Automatic domain validation with protocol stripping and format checking
- Seamless fallback to default
www.googletagmanager.comwhen not configured - Full backwards compatibility with existing installations
Benefits:
- Improved Tracking Reliability: Bypass ad blockers and tracking prevention mechanisms that commonly block
googletagmanager.com - Same-Origin Cookies: Better cookie handling with same-origin benefits when GTM runs on your domain
- Enhanced Data Collection: Reduce data loss from browser privacy features and extensions
- Brand Consistency: Keep all tracking infrastructure under your domain
How to use:
- Set up your server-side Google Tag Manager infrastructure with custom domain
- Navigate to Addons → Google Tag Manager in WHMCS admin
- Enter your custom domain in the Custom Domain (Optional) field (e.g.,
gtm.example.com) - Save configuration
The module will now load GTM scripts from your custom domain instead of Google's default domain.
Documentation:
Technical details:
- Automatic HTTPS protocol enforcement for all GTM URLs
- Domain validation: strips protocols, rejects paths, validates hostname format
Admin UI Improvements
- Added Custom Domain (Optional) field in Tag Manager configuration page
- Help text explaining server-side GTM usage
- Real-time domain format validation with user-friendly error messages
- Example placeholder showing correct format (
gtm.example.com)
Validation & Security
- Automatic protocol stripping (
http://andhttps://) from user input - Hostname format validation using regex pattern
- Path component rejection to prevent misconfiguration
- Empty value handling for fallback to default domain
- HTTPS enforcement for all generated GTM URLs
Documentation
- New comprehensive guide: Custom GTM Domain for Server-Side Tracking
- Updated Module Configuration with custom domain section
- Updated Tag Manager Overview with advanced features section
Compatibility
- Compatible with WHMCS 8.6+
- Compatible with PHP 7.4, 8.0, 8.1, 8.2
- Works with both client-side and server-side GTM configurations
- No breaking changes - fully backwards compatible
Migration Notes
Upgrading from v4.2.x:
- No migration required
- Existing installations continue working unchanged
- Custom domain is optional - defaults to
www.googletagmanager.com - To enable custom domain: simply configure it in admin panel after upgrade
For Server-Side GTM Users:
Before configuring custom domain in WHMCS, ensure:
- Server-side GTM container is deployed and running
- Custom domain DNS is configured (CNAME or A record)
- Valid SSL certificate is installed for custom domain
- GTM server is accessible via your custom domain
See Custom Domain Documentation for complete setup instructions.
Known Limitations
- Single custom domain per installation (multi-domain setups not supported)
- Custom paths not supported (only domain/subdomain configuration)
- DNS and SSL configuration must be handled externally
- Requires server-side GTM infrastructure for custom domain feature
Deprecations
No deprecations in this release.
Bug Fixes
No bug fixes in this release (feature-only release).
Release Type: Minor (Feature Addition)
Breaking Changes: None
License Requirements: Available in all license types