I am trying to install Google Tag Manger on my site and found this solution:
add_action('wp_head', 'add_header_code');
function add_header_code(){
?>
<!-- Add the Google Tag Manager here -->
<?php
};
Which works but it does not address the GTM code that needs to be injected immediately after the opening <body>
tag. Has anyone figure out a way to do this? Thanks!