How to add code to your wordpress website header (Google, Facebook, Pinterest etc)

by | Apr 2, 2023 | Facebook Ads | 0 comments

There an increasing need for website owners to have to verify that they own the website they say they own with third-party online software tools like Google Search Console, Google Analytics, Meta and Facebook, or Pinterest.

Verification is the process of proving that you own your site and so third party tools can safely send back and forth data.

Typically website owners are being asked to add code to their website’s header to do this which may be outside of the remit of what the average DIY website builder can do.

So if you’re asking yourself “Where can I add a verification code to my website?” this post will show you a simple way you can do this on WordPress without having to go into your website code, and enable you to verify your website quickly and painlessly.

Check to see if you can add code using your theme

Many WordPress themes and theme builder actually have dedicated areas on their interface in the WordPress admin that allow you to add code to the header of your site.

In the Divi Theme you can add code via the Theme Options >Integrations tab here:

In Elementor you’ll need to use the Custom Code feature to add code to a Page in the Header Element in the display options. More on this right here.

Use a plugin

The other way to add verification code to your website without tinkering with code is to use a plugin.

This may suit you if you don’t have a Theme that gives you the option of doing this.

Insert Headers and Footers by WPBeginner is really easy to use option that adds an interface to add code in the Settings section of your WordPress admin:

You’ll need to keep the plugin running all of the time if you are adding code that needs to be accessed on an ongoing basis like the Facebook pixel or Google Analytics.

Once you’ve added the code, don’t forget to head back to the platform requesting it and make sure it’s working OK.
After that, leave the code in or remove it – once you’ve verified, you’re done!

If you’re really struggling, send a message to one of our team and we’d be happy to help guide you.

More From The Blog

Why Google Ads Work Better When Social Comes First

The most common version of the multi-channel paid media question goes something like this: we are running Google Ads, should we add social? Or: we have been on Meta, should we test Google? The framing treats the channels as alternatives, or at best as parallel tracks...

read more
TikTok Ads: Building Sustainable Acquisition

TikTok Ads: Building Sustainable Acquisition

Most brands approach TikTok advertising in one of two ways. The first is dismissing it entirely as a platform for teenagers doing dances, unsuitable for serious performance marketing. The second is treating it as a trend-chasing exercise, producing reactive content...

read more
Will AI Replace Media Buyers?

Will AI Replace Media Buyers?

There is a version of this conversation that is entirely unhelpful: a list of tasks AI will automate, followed by reassurance that human judgement will always matter, followed by a vague call to "adapt." That is not this post. The honest version is more uncomfortable...

read more

0 Comments

0 Comments

Submit a Comment

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