• I am very new to WordPress and I was wondering where to add the Google Webmaster Tools verification meta tag code and Google Analytics Tracking Code so it will show up on google better?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’d look at using a plugin to handle these things so you don’t have to modify any files. Search the WordPress Plugin Repository for popular/well-rated plugins that have this functionality.

    Hi iKokomo,
    Meta tags of tools such as WebMaster tools should be placed in your ‘<head>’ tag.
    You can easily add it to your header.php template file.
    I would suggest doing something like this, as it should be placed only on your home-page.

    <?php if ( is_home() ) : ?>
    		<meta name="google-site-verification" content="xxx" />
    	<?php endif; ?>

    For scripts such as Google Analytics Tracking code, you should add them at the bottom of your ‘<body>’ tag, right before it closes with: ‘</body>’.
    The placement in the end of the body tag is done in order to not have this script block other scripts load which are part of your site’s functionality.
    Usually you can find that closing tag to be at your footer.php .

    I tend to disagree with Marios here,
    as for such simple modifications, I think it’s not necessary to install a plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where to add Google Webmaster Tools verification meta tag’ is closed to new replies.