Jump to content

Integrate googles survey opt-in module on squarespace to collect google reviews

Recommended Posts

Good afternoon all,

So this has been driving me mad for a little while and I can't seem to get this to work

So i've put this on my order confirmation page but its not displaying the survey opt in module?

I thought it was something to do with the date, so removed all and just put in a date. The survey opt in module still doesn't work.

I've put this coding on my advanced settings - ORDER CONFIRMATION PAGE!


<!-- BEGIN GCR Opt-in Module Code -->
<script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer></script>
<script>// <![CDATA[
var currentTime = new Date()
var day = currentTime.getDate() + 10
var month = currentTime.getMonth() + 1
var year = currentTime.getFullYear()
var final =(day + "/" + month + "/" + year)

  window.renderOptIn = function() {
    window.gapi.load('surveyoptin', function() {
      window.gapi.surveyoptin.render(
        {
          // REQUIRED FIELDS
          "merchant_id": "****",
          "order_id": "{orderId}",
          "email": "{customerEmailAddress}",
          "delivery_country": "UK",
          "estimated_delivery_date": "final",
        });
    });
  }
</script>




Any ideas what may be wrong? anybody else got the google merchant survey opt in module on their Squarespace to collect reviews?

Link to comment
  • Replies 0
  • Views 827
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.