Google Avaliações do Consumidor
Last updated
Was this helpful?
Last updated
Was this helpful?
( 1 ) - Integrar o módulo da função de permissão da pesquisa;
→ Abra as configurações gerais da Loja e insira o código abaixo na área Tag-Sucesso ( página do pedido finalizado ), alterando o código com o seu MERCHANT_ID
;
<!-- BEGIN GCR Opt-in Module Code --> <script src="https://apis.google.com/js/platform.js?onload=renderOptIn" async defer> </script> <script> const dateEstimated = new Date(); dateEstimated.setDate(dateEstimated.getDate() + 7); let dataAtualFormatada = (dateEstimated.getFullYear().toString()) + "-" + (dateEstimated.getMonth()+1).toString() + "-" + (dateEstimated.getDate()); console.log(dataAtualFormatada); window.renderOptIn = function() { window.gapi.load('surveyoptin', function() { window.gapi.surveyoptin.render( { // REQUIRED "merchant_id": "MERCHANT_ID", "order_id": "{{%orderid%}}", "email": "{{%customer_email%}}", "delivery_country": "BR", "estimated_delivery_date": dataAtualFormatada, // OPTIONAL "opt_in_style": "CENTER_DIALOG" }); }); } </script> <!-- END GCR Opt-in Module Code --> <!-- BEGIN GCR Language Code --> <script> window.___gcfg = { lang: 'pt-BR' }; </script> <!-- END GCR Language Code -->
( 2 ) - Integrar o código do selo;
Para adicionar o selo in-line do Google Avaliações do Consumidor:
( 2.1 ) - Cole a linha a seguir antes da tag de fechamento "body" ou na Tag-Geral da loja.
<script src="https://apis.google.com/js/platform.js" async defer></script>
( 2.2 ) - Cole a linha a seguir no HTML do local da página em que o selo aparecerá.
<g:ratingbadge merchant_id=MERCHANT_ID></g:ratingbadge>
Substitua MERCHANT_ID
pelo seu próprio ID no Merchant Center.