How to add specific meta tags to head of cart and checkout pages in woocommerce?

If your goal is to put it in the <head>IM INSIDE THE HEAD</head> tag than just put it inside the head tag in the theme_header.php or header.php of your theme – if it’s not a child theme.

Place this snippet of code directly above the closing </head> tag in your header.php file.

<?php
if ( is_checkout() || is_cart() ) {
  // Add meta tag here
echo '<meta name="yo:active" content="false">';
}
?>

Should work fine for you.