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

Jimmyrobby85

Member
  • Content Count

    1
  • Joined

  • Last visited

  1. 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?
×
×
  • Create New...