Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #348666
    Wardo_SD
    Participant

    Hello,

    I am having trouble verifying my site in Google Webmaster tools and was wondering what exactly is the best approach to go about doing that?

    I have tried uploading an HTML file with no success. I also tried adding the code mentioned here into the functions php file and using the webmaster tools verification code, but this ended up crashing the site.

    The code I used was:

    <?php
    add_action(‘wp_head’, ‘add_googleanalytics’);
    function add_googleanalytics() { ?>
    <script>Insert Your Google Analytics Code Here</script>
    <?php } ?>

    The other options require placing a code in the head file, but as I cannot alter the head file, I am unsure of where to place this code.

    Is there a better way to go about accomplishing this?

    Thanks for your time!

    #348682
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Kindly walk-through following thread:

    https://community.theme.co//forums/topic/wherehow-to-install-google-tag-manager-code-using-child-theme/#post-225619

    If you are not comfortable with code changes you can use Verify Google Webmaster Tools plugin, plugin details are:

    1) Plugin name: Verify Google Webmaster Tools
    2) URL: https://wordpress.org/plugins/verify-google-webmaster-tools/

    Let us know how it goes.

    Thanks.

    #348689
    Wardo_SD
    Participant

    The plugin worked perfectly!

    Thanks again for your time!

    #348755
    Zeshan
    Member

    You’re welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-348666 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>