Many services, such as Google Adsense and Mailchimp, ask you to add code to the site header in order to verify your website, add content, or integrate some features. This guide will show you how to place this code on your website.
If you wish to verify your site or domain with Google Search Console, Bing, Pinterest, Yandex, or Facebook Business, you do not need to follow the steps in this guide. Instead, visit Tools → Marketing → Traffic and scroll down to Site verification services to access special tools to safely add the code without manipulating site files directly.
This section of the guide applies to sites with the WordPress.com Business or Commerce plan. If your site has one of our legacy plans, this feature is available on the Pro plan.
To integrate your site with many popular services, you’ll often be asked to add some code to your site’s header, between
</head> tags, or in the theme editor or HTML header. The code helps that service recognize and communicate with your website. They ask you to add the code to the header because the code will be present on every page of your site.
The instructions from that service may vary, but the steps below should work in most cases.
To add the code to your website header, take the following steps:
The steps above will work with any tool that requires you to add code to the header of your site. Popular services that require this include: