Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Jimmyrobby85

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

Question

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?

Edited by Jimmyrobby85

Share this post


Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...