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>
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>