Google Optimize is a powerful, and free, A/B testing and optimization tool.In this step-by-step tutorial, you’ll be walked through the exact process you need to install Google Optimize on a standard Shopify website site. Note, Shopify Plus is not covered in this tutorial. You’ll learn the process you need to make installation seamless. Plus, how to verify the tracking code is installed properly and working. Considerations:
On April 27, 2020, Google Optimize released a new Java Script (JS) installation snippet. As a result, the method for installing Google Optimize within Shopify changed.
With the updated Google Optimize snippet, this installed method no longer works.
You must now install Google Optimize in the theme header; this method is not preferred because the installation could get lost, or altered, if the theme is modified. However, it’s now the only option, unless you use a plugin.
Here are step-by-step video instructions for installing the updated Google Optimize installation snippet within a Shopify theme: