How to Configure Google Optimize on Magento 2

Vanessa Updated: November 23, 2019


How to Configure Google Optimize on Magento 2

Google Optimize is a new Google site testing platform. It allows you to quickly and easily check the page design as well as to change the content. Besides that, it will monitor the performance of the test and will tell you which version is the best. This is a great free platform for customers.

Integrate this tool into your Magento 2 store to experience the great things that it brings.

To get the best results, in today’s article we will guide how to configure Google Optimize on Magento 2.

How to configure Google Optimize on Magento 2

To configure Google Optimize on Magento 2, follow 3 steps:

Step 1: Install Mageplaza Google Tag Manager

Get Container ID for setting Magento


Setup in Magento

  • Log in to Magento Admin > Mageplaza > Google Tag Manager > Settings


  • Choose Yes to enable the module.
  • Enter Container ID from Google into Google Tag ID field.

Some Related links:

Step 2: Create a new tag

  • Click on New Tag in the GTM account and change the name of the tag


  • Choose Tag Configuration > Google Optimize


  • Enter your Google Analytics Tracking ID and your Optimize container ID


  • Click on more settings and configure the fields to set and advanced configurations as your Google analytics tags
  • Select Save this tag without adding triggers.

Step 3: Configure Google Analytics Page

Open Google Analytics Page View tag, then edit Tag Configurations > Advanced Settings > Tag Sequencing. Next, click on Fire a Tag Before GA Pageview tag fires box and choose your Google Optimize tag as a Setup Tag.


Finally, choose Savethe Google Analytics Pageview tag. And remember repeating this process on any other tags as relevant. In this step, select Save to finish the process of the configuration this tag.

Related Topics

Vanessa is content marketing at Mageplaza. Vanessa is a content marketing creator at Mageplaza. As an ordinary customer, already had a special interest in online shopping, and up to now, has spent more than two years discovering online distribution channels as well as E-commerce platforms.

Comments for How to Configure Google Optimize

People also searched for


Stay in the know

Get special offers on the latest news from Mageplaza.

Earn $10 in reward now!

Earn $10 in reward now!

go up