diff --git a/src/Frontend/Frontend.php b/src/Frontend/Frontend.php index a99b672..2c95916 100644 --- a/src/Frontend/Frontend.php +++ b/src/Frontend/Frontend.php @@ -225,6 +225,10 @@ public static function get_body_script(): void { $domain = Options::init()->get( 'general', 'sgtm_domain' ) ? Options::init()->get( 'general', 'sgtm_domain' ) : 'www.googletagmanager.com'; $gtm_id = Options::init()->get( 'general', 'gtm_id' ); + if ( empty( $gtm_id ) ) { + return; + } + echo ''; }