Integrate The Google Survey Opt-In Module



Integrating the Google survey opt-in module into your webstore is easy to install using a custom script.

  1. From the Neto dashboard, navigate to Setup & Tools > All settings & tools.

  2. Click on Analytics & 3rd Party Scripts tab and click Custom Scripts.

  3. Click the Add New button.

  4. Name the script Google opt-in survey.

  5. Scroll down to the Scripts section and click on the Purchase Confirmation (Thank You Page) tab.


  6. Insert the following script:

  7. 
    <script src="https://apis.google.com/js/platform.js?onload=renderOptIn"
      async defer>
    </script>
    
    <script>
      window.renderOptIn = function() { 
        window.gapi.load('surveyoptin', function() {
          window.gapi.surveyoptin.render(
            {
              // REQUIRED
              "merchant_id": MERCHANT_ID,
              "order_id": "ORDER_ID",
              "email": "CUSTOMER_EMAIL",
              "delivery_country": "COUNTRY_CODE",
              "estimated_delivery_date": "YYYY-MM-DD",
    
              // OPTIONAL
              "opt_in_style": "OPT_IN_STYLE"
            }); 
         });
      }
    </script>
    

  8. Save Changes. The opt-in survey will now appear once an order is complete on the Thank You page.


  • Last Modified: 25/05/2017 Neto Version: 6.10