Google Merchant adding Customer Reviews

Can someone please let me know if adding customer reviews is even possible with a Wix site?
This is the info that it gives on adding in the code. It doesn’t look like wix populates some of the variables that are required.
Thank you for any help in this matter!

Important: Opt-in integration is a required step for Google Customer Reviews. The program won’t work on your site and surveys will not be offered unless this step has been completed. The opt-in integration lets Google display the Google Customer Reviews opt-in on your site and offer surveys to customers who have opted in to the program.
Before getting started, verify that you have reviewed the Google Customer Reviews policies and completed the integration requirements for the opt-in:
Your shopping cart and checkout pages must be hosted on the same domain.
The confirmation page must be hosted on your own domain

must be added to the top of every webpage

Once verified, follow the integration instructions to add the code snippet below to your order confirmation page and customize the variables as needed. The snippet integration will allow Google to display the Google Customer Reviews opt-in on your website.

<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 FIELDS
          "merchant_id": xxxxxxxx,
          "order_id": "ORDER_ID",
          "email": "CUSTOMER_EMAIL",
          "delivery_country": "COUNTRY_CODE",
          "estimated_delivery_date": "YYYY-MM-DD",

          // OPTIONAL FIELDS
          "products": [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}]
        });
    });
  }
</script>
1 Like

What are the optional fields for as it doesn’t mention any reference in the tutorial supplied about adding additional fields like you have done.

The only bit that was mentioned for the optional part was about the adding the opt-in style for the customer:

// OPTIONAL
"opt_in_style": "OPT_IN_STYLE"

Nothing mentioned about your additional fields line:

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

Also, what about adding the:

<!DOCTYPE html>

Plus, having a search around you can find answers…

https://support.zendesk.com/hc/en-us/community/posts/360029399014

Note also, that Wix won’t provide support for html codes:
https://support.wix.com/en/article/guidelines-and-limitations-of-the-html-code-and-embed-a-site-elements

I don’t now how to make the integration. How do I change these parameters?
“order_id”: " ORDER_ID ",
“email”: " CUSTOMER_EMAIL ",
“delivery_country”: " COUNTRY_CODE ",
“estimated_delivery_date”: " YYYY-MM-DD ",

same topic somewhere else, they closed it =(

Has anyone managed to even insert the Google code by just using hardcoded values rather than dynamic to see if it will at least show the Opt-in popup?

I find the way to show the opt-in popup but I can’t configure the variables: email, orderID

In this link, someone integrates Google Customer Review into Woocomerce store. I really don’t know why anybody can help us for an integration into Wix.

So did you use hardcoded values in order to display the popup and where did you add the Google code? Was it within a html iframe in the thank you page?

@richard50620


Yes. I pasted this code; but I can’t get dynamic values.

Unfortunately, I decided to migrate to another platform. I don’t really know why I didn’t receive any help to solve this simple problem from any Master or any member of Corvid or Wix. I hope you get more lucky than me.

We also started on a new one … good luck for everyone!

how we could check whether google review has been integrated correctly?

So, is the only solution to migrate to another platform? Where anyone able to manage this?

funny, according to WIX this entry here is the one where a working solution should stand :frowning:

here is the “solution” from wix :smiley:

Although I can’t guarantee a solution to the problem, you can try the following once to retrieve order details on the thank you page.

  1. Use the getOrder function on the thank you page to retrieve order information.
  2. Use trackEvent to send tracking events to the external service.

Here you can see an example tutorial where Google Analytics was used as an example.

Please note that we don’t provide coding / code debugging solutions, but give guidance and point you to articles and APIs that will help you learn and achieve your goals.

For more information on Velo by Wix, check out the resources below:

Take the free Code Academy course here
About Velo by Wix - what Velo is and what features it has.
Onboarding to Velo by Wix - introduction to Velo with short tutorials.
Best practices for creating a Velo website.

You can also read our documentation and examples to get a better understanding of what can be done with Velo.

To share a coding problem or question with other Velo experts, we highly recommend visiting our Velo by Wix community website following these guidelines.