https://github.com/magesuite/google-reviews-feed
This module generates a feed with customer reviews for Google Merchant Center.
Installation
This module is optional.
composer require "creativestyle/magesuite-google-reviews-feed" ^1.0.0
Admin settings
Admin settings can be found in Stores -> Configuration -> MageSuite -> Google Reviews Feed
General settings:
Name | Option | Comment |
---|---|---|
Enabled | Yes/No | enable or disable feed generation |
Publisher name | shop’s name | |
Publisher favicon URL | URL address to shop icon | |
Cron schedule | expression that allows managing how often feed should be generated |
Feed configuration settings:
Name | Option | Comment |
---|---|---|
Filename | generated feed’s filename | |
Path |
| path inside |
GTIN Attribute |
|
Based on the above configuration, the feed will be generated every day at 5:00.
It’s available under: https://your-store-url.com/google-product-reviews/feed.xml
Above URL should be added to Google Merchant Center.
Navigate to Marketing > Reviews and Reviewsfeeds
Click the plus button and provide all necessary data in two steps:
Backend
In progress
Frontend
Integration of google reviews snippet
The integration of the opt-in function is important for Google Customer Reviews. The program and surveys will only be offered on the website if it completed this step. By integrating the opt-in feature, Google can show the Google Customer Reviews opt-in option on a website and send surveys to customers who have signed up for the program.
Read through the Google Customer Reviews guidelines in advance to see if you meet the integration requirements for the opt-in feature:
Your shopping cart and payment pages must be hosted on the same domain
The confirmation page must be hosted on your own domain
<!DOCTYPE HTML> must be added to the top of each web page
Once verified, follow the integration instructions to add the code snippet below to the order confirmation page and adjust the variables as needed. Integrating the snippet is required for Google to show the opt-in for Google Customer Reviews in the shop.
Integration of google reviews logo
Indicate with the logo that the shop participates in the Google Customer Reviews program and includes the seller rating on your website.
First, paste the code snippet at the bottom of any page on your website and adjust the variables as needed. Then, check that the logo and associated text are displayed on your website as expected. Note: If there are no seller ratings, the message "No rating available" will be displayed.
Magesuite integration
In checkout_onepage_success.xml reviews-survey block is included:
<referenceContainer name="before.body.end"> <block class="MageSuite\GoogleCustomerReviews\Block\Survey" name="magesuite.google_customer_reviews.survey" template="MageSuite_GoogleCustomerReviews::survey.phtml"> <arguments> <argument name="view_model" xsi:type="object">MageSuite\GoogleCustomerReviews\ViewModel\Survey</argument> </arguments> </block> </referenceContainer>
The badge block is included on every page (default.xml):
<referenceContainer name="before.body.end"> <block name="magesuite.google_customer_reviews.badge" template="MageSuite_GoogleCustomerReviews::badge.phtml"> <arguments> <argument name="view_model" xsi:type="object">MageSuite\GoogleCustomerReviews\ViewModel\Badge</argument> </arguments> </block> </referenceContainer>