Shopping cart

How to Configure Google Optimize on Magento 2

How to Configure Google Optimize

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

It comes to the end of the tutorial: How to Configure Google Optimize on Magento 2.

Posted by vanessa in Start. November 23, 2018

Please leave comments if you have any questions, feedbacks.

Comments for How to Configure Google Optimize on Magento 2

People also searched for

  • magento 2
  • google optimize
  • 2.1.x, 2.2.x, 2.3.x