Use your Google Tag Manager to verify WordPress site

Google Webmaster account provides various ways for authorization of self hosted WordPress site. It is recommended to verify the site of all methods so as to be recognized by Google and this makes indexing of webpages better. Today, we will find out how to successfully verify Google Tag Manager container script with Google Webmaster account of your website. In this write up I shall focus on how to install container script inside BIGROCK hosting of a WordPress site.

In order to verify ownership of the WordPress site in Google Webmaster Tools by using Google Tag Manager, there are few prior factors necessary. This writing is suitable for most webhosts including BIGROCK. Here are some prerequisites:

  • A self-hosted WordPress blog
  • Google Webmaster account
  • Container script in Google tag manager
  • This article explains about how to insert container script inside BIGROCK hosting

In subsequent articles, I shall be telling about how to create Google Webmaster account. In this article, I have clearly described about how to create Google Tag Manager container script. Google Tag manager categorizes yours site’s container and present anonymous data to advertisers and marketers to use it and give you advertisement options. Research has shown that how sites which have been using Google Tag Manager container script have been very much fast in getting approval from different advertisement agencies for their sites.

  1. Log in to BIGROCK hosting by WordPress website If you do not have account, then you can purchase one hosting account by going through this link (affiliate link)
  2. Log in to your BIGROCK wordpress hosting account by providing username and password and then click on blue “Login” button.
  3. You reach in BIGROCK dashboard, from its upper top right corner click on “My Account”
  4. You reach for “List of orders”. Here, is the list of purchased domains and hosts. Click its “domain” link corresponding to host name to reach next page.
  5. Then, you reach for your hosting package. Here is “single domain Linux hosting” and from there click on “manage Web Hosting”. Here you will go to “Cpanel” of WebHost. By clicking a new window will open which is “Cpanel” of webhost.
  6. From Cpanel go to “files” then go to “File Manager”
  7. Right click on “File Manager” and then left click on “Open link in new tab”.
  8. In the next window or tab of Web browser “File manager” opens.
  9. Then click on “Public_html” folder of WordPress installation.
  10. On the right side of “File Manager” go to “wp-content”
  11. In the next phase “wp-content” is in the left side of “File Manager” and in its right side files of “wp-content” will be there.
  12. On the right side of “File Manager” choose “themes” folder. Click on the folder icon beside “themes”
  13. In the next windows choose the currently active theme on your WordPress and left click on the currently activated theme folder.
  14. In the next step, from currently activated theme you will reach to contents of the theme folder.
  15. Then reach for “header.php” file from the WordPress theme.
  16. First backs up “header.php” file into your desktop. Double click on the pop icon beside “header.php” and wait for a few seconds to see a popup window to save this file. Save it desktop unless you delete some code then you can restore back it from this back up.
  17. After back up, then select “header.php” and from above select “Code Editor”
  18. In the next step, a popup window of “Code Editor” will appear. Click “Edit”
  19. In the next step after clicking on “Edit” you will find an entire php code of “header.php”
  20. Then scroll down and search for “<body <? php body_class (); ? >>” It is the body segment of php code
  21. Just under above mentioned code paste “Google Tag Manager code snippet” copied from here. (Previous page link)
  22. After copy pasting code under “<body <? php body_class (); ?>>” reach to the upper right of “header. php” segment is to click on “Save Changes”.

In this way, in this tutorial, we learn how to insert Google Tag Manager snippet code for website, into BIGROCK hosting so that in the next step, we will learn about how to verify WordPress website with Google Webmaster tools’s alternative verification method with Google Tag Manager.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *