Free Sign up
Member Login

How To Install Google Optimize on a Custom-Built Site


Google Optimize is a powerful and free A/B testing tool.In this step-by-step tutorial, you’ll be walked through the exact process you need to install Google Optimize on a custom-built website site. You’ll learn the process you need to make installation seamless. Plus, how to verify the tracking code is installed properly and working. 


To install Google Optimize on a custom-built website, including in the theme header of WordPress, you’ll need to be comfortable with code, or hire a developer who can install code for you. That’s because you’ll be installing the code directly in the header section of your website.

It’s also important to note that hard coding Google Optimize into the theme of your site’s theme is not recommended. If your theme updates, or drastically changes, your Optimize installation will be lost.

However, for some websites, installation into the theme is the only option.


Here are step-by-step instructions on how to install Google Optimize in the header area of your website theme:

Note, these instructions show a theme header for a WordPress site, but should apply to most custom websites.

These installation instructions show Google Optimize installation using the default synchronous code. You can learn more about the benefits and drawbacks of synchronous code here.

Verifying the installation:

Once you’ve completed installing Google Optimize within the theme header, you’ll want to verify the installation works. Here are step-by-step instructions showing how to confirm the installation works.

Notify of
1 Comment
Newest Most Voted
Inline Feedbacks
View all comments
2 years ago

great post

Other Posts You Might Enjoy

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram