Push the limits of your Adobe Commerce store with MagePal Extension

Take your Adobe Commerce store to new heights with the power of MagePal extensions. Our expertly crafted code and rigorous testing ensure seamless integration with Adobe Commerce, giving you the freedom to focus on growing your business, not debugging. Upgrade your store's potential with MagePal.

Integrate Google Opt-in Survey with Magento 2

Please Note: The settings below require our Datalayer for Google Tag Manager for Magento and some features also require our Enhanced Ecommerce or Google Analytics 4 extensions..

The survey opt-in module lets customers take part in the Google Customer Reviews (GCR) program and also transmits the necessary transaction information to Google. This module is required on all order confirmation pages to participate in Google Customer Reviews

Purchase Page / Order Confirmation Page
Tag Configuration
  Tag type : Custom Html

Trigger Configuration
  Trigger: All Custom Events
  Event Name : purchase


<script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script>

require(['DataLayerPurchaseApi'], function (dataLayerPurchaseApi) {
    var expectedDeliveryDays = 5;
    var getDeliveryDate = function() {
        var deliveryDate = new Date(new Date().getTime()+(expectedDeliveryDays*24*60*60*1000));
        return deliveryDate.getFullYear() + '/' + ('0' + deliveryDate.getMonth()).slice(-2) + '/' + ('0' + deliveryDate.getDay()).slice(-2);
    var purchase = dataLayerPurchaseApi();
    window.renderOptIn = function() {
       window.gapi.load('surveyoptin', function() {
             "merchant_id": "MERCHANT_ID",
             "order_id": purchase.getOrderId(),
             "email": purchase.getEmail(),
             "delivery_country": purchase.getCurrencyCode(),
             "estimated_delivery_date": getDeliveryDate(),

Total Downloads


years experience with Magento


Magento / Adobe Commerce Extensions

Shop with confidence

With millions of downloads worldwide, install with confidence knowing that our extensions will just work.

Learn More About MagePal Extension

Is your Magento store ready for the future? Say hello to the new Google Analytics 4, which is built from the ground up with all-new features and advanced machine learning technology.

GA4 Extension


Related Extensions

Take your online store to the next level with MagePal Magento 2 extensions - More features, More sales, More success.

Catalog Hover Image for Magento

Quickly previewing alternative product images on your category list page.

HTML Minifier for Magento2

Minification is the process of removing all unnecessary characters and spacing from your source code without changing its functionality.

Order Shipment Tracking

Providing your customer with a beautiful and functional order package tracking without leaving your site.