GTM Kit lets you override the settings stored in the database with constants defined in wp-config.php. This is handy when you copy a production database into a staging or local environment and want to point GTM somewhere else without editing the database row.
Constants support is opt-in. You must set GTMKIT_ON to true before any other constant is honoured. Keeping constants off on production avoids the extra config lookups; keeping the master switch in one place makes it easy to disable all overrides at once.
// Master switch. True activates constants support; false turns it off.
define( 'GTMKIT_ON', true );
// The GTM container ID.
define( 'GTMKIT_CONTAINER_ID', 'GTM-XXXXXXX' );
// Or true, in which case the saved option is ignored.
define( 'GTMKIT_CONTAINER_ACTIVE', false );
// Log debug messages to the browser console.
define( 'GTMKIT_CONSOLE_LOG', false );
// Do not limit purchase tracking to once per order. Handy during development.
define( 'GTMKIT_WC_DEBUG_TRACK_PURCHASE', true );
define( 'GTMKIT_EDD_DEBUG_TRACK_PURCHASE', true );