Hi support!
I am having an issue getting the Google Tag Manager BODY tag to read.
The URL of my website is www.hiretimothysolomon.com
Looking on the forum I found your solution to modify a child theme’s functions.php.
I’ve done that (you can find the code below).
The head tag works fine and I but the body does not.
When I inspect the page source I do find it near the top of the body tag.
But when I try to verify that tag manager is working ( with multiple Google tools ) it still tells me that body tag is not set correct.
In the source between the open body tag and the tag manager code is
> <body class="home page-template page-template-template-blank-4 page-template-template-blank-4-php page page-id-18 logged-in admin-bar no-customize-support x-integrity x-integrity-light x-full-width-layout-active x-content-sidebar-active x-navbar-fixed-top-active x-v5_1_0 x-child-theme-active cornerstone-v2_0_5">
> <div id="x-root" class="x-root">
> <!-- Google Tag Manager (noscript) -->
> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NF79R5P"
> height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
> <!-- End Google Tag Manager (noscript) -->
> <div id="top" class="site">
Could this be the issue? Is there away to but the tag manager code before this?
Below is my function.php
/ Add Google Tag Manager Code//
=============================================================================
/THIS CODE WILL BE OUTPUT INSIDE THE tag/
add_action(‘wp_head’,‘my_tracking’, 1);
function my_tracking () { ?>
<?php } function add_google_tag_manager_code(){ ?> <?php } add_action( 'x_before_site_begin', 'add_google_tag_manager_code' ); // End Add Google Tag Manager Code // =============================================================================