You can use Google Optimize testing tool to offer a great website experience to your visitors.

Merkle’s Nazifa Begum has published a step-by-step guide on correctly implementing Google Optimize for your website.

Nazifa says, “There are a couple of ways to implement Optimize. It can either be implemented via GTM, or it can be hardcoded straight onto the site. As best practice – and to provide the best experience for your users – it is strongly recommended that the Optimize snippet is hardcoded on the site.

The Optimize snippet is just a modified version of the Google Analytics tracking code to load the Optimize plugin.

There are currently 2 versions of the Optimize Snippet:

  1. The classic analytics.js snippet
  2. The newer, more recent gtag.js snippet

The correct version to use depends on how GA has been implemented on the site:

  1. Via analytics.js library (hardcoded)
  2. Via gtag.js (hardcoded)
  3. Via GTM (using a Tag manager)

In this article, we’ll dive into the best practice implementation of hardcoding the Optimize snippet onsite, and how to approach this depending on your setup”.

CRO Best Practice – Implementing Google Optimize

Merkle Blog

Sharing is caring