Snippets: How To Properly Add Google Tag Manager Code

// Add Google Tag Manager Code after opening body tag
add_action( 'wpex_outer_wrap_before', function() { ?>
    YOUR CODE HERE
<?php } );

Snippet Type: PHP

Posted Under: SEO

All PHP snippets should be added via a child theme's functions.php file.