How to Configure Google Optimize on Magento 2

Vanessa Updated: November 23, 2021


The Most Popular Extension Builder for Magento 2

With a big catalog of 234+ extensions for your online store

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

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service

Vanessa is a content executive at Mageplaza. Cooking and reading books are her passion. Her particular hobby is travelling, helping her discover all around. She is an energetic marketer with the hope of making her words magical.

Explore Our Products:

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