Insights

How To Install Google Optimize

Why Should I Install Google Optimize?

Google Optimizetakes the guesswork out of website updates. Rather than jumping into new changes based on hunches, Optimize lets you test changes and show the hard data behind what site updates point users in the direction of your desired outcomes.

Optimize has some serious benefits:

  • Guides website updates to base decisions and changes on user actions and data
  • Direct integration with Google Analytics to tie your A/B tests to your main website goals
  • Easily identify user segments andaudiences
  • Opportunity to upgrade toOptimize 360

但是等等…有more.

Google Optimize integrates beautifully with the Google Marketing Platform, and when married with Google Ads, Google Tag Manager, and Google Analytics, Optimize is a vastly powerful tool. With the relationship between the Google Marketing Platform, Optimize makes it easy to install, experiment, and report.

If you’re wondering whether Google Optimize or Google Optimize 360 is right for your business needs, checkthis articleto get a full breakdown before installing.


Google Optimize Installation Instructions

Installation with Google Tag Manager

Overview

In order to run experiments in Google Optimize, the Google Optimize code must be installed on your site on all pages. This only needs to be installed once, then most experiments can be set up within the interface. While there is a pre-baked Google Optimize tag in Google Tag Manager, Seer recommends to reduce page load latency by using the process laid out below.

创建你的优化账户

If you do not already have a free Google Optimize Account, you cansign up for one for freeorcontact Seerfor a premium Google Optimize 360 Account.

Order of On Page Tracking Code

These code elements should be placed as high in the page as possible to reduce latency. Tracking elements should be placed in this order:

  1. Any dataLayer snippets used for tracking or testing
  2. Page-hiding snippet
  3. GA code with Optimize, but no pageview
  4. Google Tag Manager container snippet

Page-Hiding Snippet

Seer recommends using the page-hiding snippet as it eliminates or reduces the risk of a page flicker. Install the page hiding snippet as high in the as possible but below dataLayer snippets and above the Google Tag Manager snippet already installed. Note that we are using the Optimize container ID in this snippet.

  • Again, note that “GTM-XXXXX” in this snippet will be your Optimize container ID,NOTa Google Tag Manager container ID.

capture 1

  • The Optimize Container ID can be found in the “Container setup” right sidebar in Google Optimize, highlighted with the red box above.

GA Code with Optimize

This initializes GA with Optimize, but does not fire a pageview, as that will be handled within Google Tag Manager. Note again that the container ID is for the Optimize container.

SIGN UP FOR NEWSLETTER

We love helping marketers like you.

注册for our newsletter to receive updates and more: