add_filter( 'script_loader_tag', 'ignore_cookiebot_for_sitekit', 10, 3 ); function ignore_cookiebot_for_sitekit( $tag, $handle, $src ) { if ( strpos( $handle, 'google_gtagjs' ) !== false || strpos( $handle, 'googlesitekit' ) !== false ) { // Nur hinzufügen, wenn das Attribut noch nicht vorhanden ist if ( strpos( $tag, 'data-cookieconsent=' ) === false ) { $tag = str_replace( '