Jump to content

Google Customer Reviews Problem


SeizeTheDay

Recommended Posts

Hello to everyone. I trying to add google customer reviews codes to order-confirmation-tpl but code does not appear on order confirmation page. Where am I doing wrong? Thanks for your help.

The code I'm trying to implement is:

<!-- GCR Katılım Modülü Kodu BAŞLANGICI -->
<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(
        {
          "merchant_id": 119470194,
          "order_id": "{$id_order}",
          "email": "{$customer->email}",
          "delivery_country": "$country",
          "estimated_delivery_date": "2017-12-05",
          "opt_in_style": "CENTER_DIALOG"
        }); 
     });
  }
</script>
<!-- GCR Katılım Modülü Kodu SONU -->

<!-- GCR Dil Kodu BAŞLANGICI -->
<script>
  window.___gcfg = {
    lang: 'tr'
  };
</script>
<!-- GCR Dil Kodu SONU -->

 

Link to comment
Share on other sites

  • 3 weeks later...

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