0

If I put this code in Wordpress Footer.php the Google analytic code is visible in Footer when viewed in Browser inspect -

<?php if(of_get_option('google_analytics')):?><script><?php echo of_get_option('google_analytics'); ?></script><?php endif;?>

But when I put the same code in wordpress <head></head> in header.php

Then google analytic code is not visible in head in Browser inspect whats the issue?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.