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

How to integrate google Customer Reviews survey opt-in module?

Question

I have to add this:

<!-- BEGIN GCR Opt-in Module Code -->

<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

         "products":[{"gtin":"GTIN1"}, {"gtin":"GTIN2">}],

         "opt_in_style": "OPT_IN_STYLE"

       });

    });

 }

</script>

<!-- END GCR Opt-in Module Code -->

 

 

To the confirmation page, but I'm missing dynamic values for the " "estimated_delivery_date" and gtin1 and gtin2.

 

I figure order id one can use the tag squarespace provides {orderId}  as well as email address.

 

But I can't find other values anywhere, not even customer service knows.

 

Can someone help me?

 

I am trying to collect seller reviews and product reviews so I can show these badges  on shopping ads from google ads.

 

Has anyone done this or have they used a review aggregator? Or is there another service which will accomplish this?

 

THanks!

 

Amber

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

I came on here to ask the exact same question. I'm having a lot of difficulty having it show up on my page. The GCR badge shows up without a problem, but the survey isn't popping up. 

Share this post


Link to post
  • 0

I'm trying to do this as well. Has anyone been successful with implementing this?

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...