Skip to main content

Google review integration

More
8 years 6 months ago #289112 by RG
Google review integration was created by RG
-- HikaShop version -- : 3.3.0

Is there a build in integration for google customer review?

support.google.com/adwords/answer/2375474?hl=en

Best regards,

RG

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #289118 by nicolas
Replied by nicolas on topic Google review integration
Hi,

No. From what I can understand, you need to be advertising on google and then reviews are compiled from different sources to make your rating.
Potentially, you could add Google Customer Reviews on your website:
support.google.com/merchants/answer/7124018
But I'm not sure what is necessary for that or if there is a need to do anything in HikaShop for that.

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #289611 by RG
Replied by RG on topic Google review integration
Hey Nicolas,

I need to implement this code on the succesfull payment page and fill in the right variables. What is the best procedure to do this? The payment plugin is responsible for showing the succesfull payment page? How can I get those variables? Are they in the session?
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 FIELDS "merchant_id": 108196171, "order_id": "ORDER_ID", "email": "CUSTOMER_EMAIL", "delivery_country": "COUNTRY_CODE", "estimated_delivery_date": "YYYY-MM-DD", // OPTIONAL FIELDS "products": [{"gtin":"GTIN1"}, {"gtin":"GTIN2"}] }); }); } </script>

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #289614 by nicolas
Replied by nicolas on topic Google review integration
Hi,

If you have a "return URL" filled in your payment method, then it's on that page that you want to add your code.
If you don't, then it's either in the "end" or the "after_end" view file of the "checkout" view.
You can check that by doing a checkout with the "Display view files" setting activated in the HikaShop configuration. In these view files, you can find all the details of the order in $this->order so no need to look into the session.
You can do a var_dump of that variable to check what it contains.

Please Log in or Create an account to join the conversation.

Time to create page: 0.164 seconds
Powered by Kunena Forum