• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

QUESTION Google Customer Review Code

innova

New member
Messages
1
Likes
0
Points
1
#1
Hello,

I would like to integrate the google customer review code in the payment confirmation page in my woocommerce. Can you tell me how to do this please? I have searched everywhere without getting a concrete answer. I'm putting the code below. Thank you.


Here is the 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(
{
// CHAMPS OBLIGATOIRES
"merchant_id": *******,
"order_id": "ORDER_ID",
"email": "CUSTOMER_EMAIL",
"delivery_country": "COUNTRY_CODE",
"estimated_delivery_date": "AAAA-MM-JJ",

// CHAMPS OPTIONNELS
"produits" : [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}]
});
});
}
</script>