How to Set Up Google Optimize With ExactMetrics

Connect Google Optimize with Google Analytics in just a few steps with ExactMetrics.

Using Google Optimize allows you to experiment using A/B testing, Multivariant testing, Redirect testing or Personalization of a page for targeted visitors. Depending on your goals, using these experiments can help determine what works best on your WordPress site for your visitors.


  1. You are a Pro license user (Purchase or upgrade if needed).
  2. The ExactMetrics Google Optimize addon is installed and activated.

Step 1: Create a New Google Optimize Account

Navigate to and click the Get Started button.


You will be prompted to provide an Account Name. Within an account, you will be able to run experiments on domains that you own. You may use your name or company name (e.g. ExactMetrics).

You will also be given options to share and contribute anonymous data for a better Google Optimize experience.

Once you’ve agreed to the Optimize Terms of Service for your country, click the Next button.


Then, you’ll be prompted to provide a Container Name. Your configuration of experiments and settings will be stored within the container. You will usually have one account and then have one or more containers, depending on your needs. You may use the domain name of your site (e.g.

Once you’ve entered a name, you may click Create to continue.


Step 2: Create An Experiment

Find and click Create Experiment to:

  • Label your first experiment.
  • Input the website where you will conduct the experiment.
  • Pick between three different experiment types.


Step 3: Link Your Optimize Account to Google Analytics

Next, connect your new Optimize account to your Google Analytics account. Visit the Accounts page in Google Optimize, and choose a container.


On the right, under Container Setup, look for “Link to Google Analytics” and click on the Link Property button.


From here, you’ll be able to choose the Google Analytics property that contains the site where you’ll be running your experiments.


Step 4: Add Optimizer to Your Website

Lastly, you’ll just need to configure ExactMetrics on your website.

In the Optimize accounts page find and copy your Container ID (format should be GTM-XXXXXXX or OPT-XXXXXXX).


On your website, navigate to the WordPress dashboard, click into ExactMetrics » Settings » Conversions.


Under Google Optimize, insert in your container ID in the Google Optimize Container ID field.

While A/B testing or multivariant testing is enabled on your website, original page content may appear briefly before loading a page variation. However, enabling Google Optimize Async Page Hide Compatibility reduces the risk of page flickering.

This also allows users with slow connections to have an optimized experience when an experiment is enabled on your site. The Optimize container will only load within the set timeout, meaning users who are having trouble loading your site, will not get further disruption by the experiment loading a variation of the content.

Once you’re ready to continue, click Save Changes.


Step 5: Start An Experiment

Back on Optimize, the last step is to simply click the Start button within your experiment.

You did it! Google Optimize is now configured for your WordPress site.