Guides

How to install Google Optimize in Shopify for optimal performance

Posted by Cameron Shaw on

How to install Google Optimize in Shopify for optimal performance

Background & Motivation Google Optimize is the new A/B and optimization testing platform, released by Google in April 2017 to the public (coming out of a private beta for Optimization360). Google Optimize requires an additional module be added to a standard GA tracker in order to detect when experiments should be run, and inject the code necessary to change the page to the variant of the experiment. So, the timeline looks like this: [Page Load]...[GA ready]...[Optimize ready: experiment [y/n]].. if(y) { add code, then: show }, else { show } Generally the Optimize code is added to the page a...

Read more →