Jump to content

Integracja skryptu Google Customer Reviews


ComGrafPL

Recommended Posts

Witam,

Skrypt należy umieścić w ostatnim etapie zamówienia.

Nie wiem do końca czy to ma być w order-confirmation.tpl czy order-confirmation.tpl.

Próbowałem różnych wariantów i albo nic się nie dzieje, albo biała strona wyskakuje.

Tutaj jest opis googla: https://support.google.com/merchants/answer/7106244

PS: Co wpisać w "estimated_delivery_date": "YYYY-MM-DD", jeśli chciałbym, aby był to jeden dzień? "0000-00-01" ?

 

Quote

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

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

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

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...