With this snippet, you can implement Google Customer Reviews in your WooCommerce store.
In order to make this snippet work, you will need to get your merchant ID from your Google Merchant Center.
The snippet consists of three parts:
(1) action to add the Google Customer Reviews language code to your store. Use this to ensure the opt-in will use the same language as your store. Available language codes can be found at https://support.google.com/merchants/answer/7106244
(2) action to add the GCR opt-in to your checkout confirmation page. This will result in an opt-in overlay on WooCommerce’s thank-you page. Your customers will be able to opt-in to Google Customer Reviews emails.
(3) action to embed the Google Customer Reviews badge on your store. This will show the GCR logo with your current rating. The default positioning is in the bottom right. Find more about positioning options at https://support.google.com/merchants/answer/7105655