Adding Scripts with the Webmaster Tools Page
You can add functionality to your site by inserting JavaScript, HTML, or other code snippets on the Webmaster Tools page. For example, adding a meta tag to your site could provide useful information for search engines that could improve your page ranking. Other scripts can provide search engines with geo-location information, which can also help customers in your area to find you when they are searching. There are many pre-created scripts available on the Internet, or, if you are experienced in writing scripts, you can write your own.
Keep in mind the following when inserting scripts:
- Scripts are applied to all pages of your site. You cannot choose to insert a script on some pages, and not others.
- Third-party analytics tools such as Google Analytics code should be inserted on the Site Statistics page, not the Webmaster Tools page.
- The Webmaster Tools page is primarily intended for running "hidden" scripts. Adding scripts that insert visible objects on the page may cause visually undesirable results.
- Scripts are inserted either between the <header></header> tags in your site source code, or between the <body></body> tags. If you are using a precreated script, review the documentation about the script to see if the script must be inserted in a particular location.
- You can insert more than one script into the header and body sections of your site. However, some scripts may conflict with other scripts. Always preview your site and test it thoroughly before publishing updates that include scripts.
To add scripts to your site, do the following:
- Log in to your Site Builder account.
- Click Site Design > Webmaster Tools on the menu bar.
- Enter or paste the script into the appropriate text box.
- Click Submit.
- Click Preview to ensure that the script is not causing unforeseen issues. Although the effects of the script may not be visible or functional in the preview, if the script is preventing your site from loading, this fact will be evident in the preview.
- Click Publish to update your site immediately.