In order to integrate Google Optimize properly, we’ve prepared a module, that simplifies configuration and https://github.com/magesuite/google-optimize-integration
This modules provides simple integration of Google Optimize and anti flickering scripts.
After providing a Google Optimize container ID, it automatically puts initialization and (optionally) anti-flickering scripts in proper order and place of the DOM.
Add this to your project’s composer.json:"creativestyle/magesuite-google-optimize-integration": ^1.0.0
...
Table of Contents |
---|
Prereuquisites
Google Tag Manager for Magento 2 by MagePal
The module requires free Google Tag Manager for Magento 2 by MagePal, because the most of our projects use
...
it’s dataLayer integration and we have to place Google Optimize scripts in relation to dataLayer initialization.
Google Optimize container configured
Installation
Info |
---|
This module is optional |
Code Block |
---|
composer require "creativestyle/magesuite-google-optimize-integration" ^1.0.0 |
Detailed information and User Manual
This module allows integration of the Google Optimize script, as described in the official documentation:
...