gtmIsDebugMode — GTM Variable Template for GTM
When to Use This
GTM Utilities
Access GTM-specific APIs: dataLayer, debug mode, container settings.
GTM Configuration
This is what you'll see when you open this variable in Google Tag Manager.
Read-only Preview
gtmIsDebugMode
This function takes no parameters.
Related Variables
Same category: GTM
Under the Hood
📜 View Implementation Code
/**
* Checks if the container is in debug mode.
*
* @returns {boolean} True if the container is running in debug mode, false otherwise.
*
* @framework ggLowCodeGTMKit
*/
const getContainerVersion = require('getContainerVersion');
return getContainerVersion().debugMode;
___WEB_PERMISSIONS___
[
{
"instance": {
"key": {
"publicId": "read_container_data",
"versionId": "1"
},
"param": []
},
"isRequired": true
}
]🧪 View Test Scenarios (1 tests)
✅ Untitled test 1