Your Guide to Implementing Google Optimize
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:
- The classic analytics.js snippet
- The newer, more recent gtag.js snippet
The correct version to use depends on how GA has been implemented on the site:
- Via analytics.js library (hardcoded)
- Via gtag.js (hardcoded)
- 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”.
Comments are closed.