1. What Is Google Customer Reviews?
Google Customer Reviews is a free official Google program. After a buyer places an order on your Shopify store, Google automatically shows a modal asking if they would like to review their purchase experience. Once your store collects 100 verified reviews in a country, Google awards you official Seller Rating Star Badges on your Google Ads and Shopping listings.
2. Copy-Paste Code: Shopify Order Status Page (Checkout)
Go to Shopify Admin > Settings > Checkout > Order status page scripts (or Customer Events) and paste the following snippet:
{% if first_time_accessed %}
<!-- BEGIN Google Customer Reviews Opt-in -->
<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": "YOUR_GMC_ACCOUNT_ID",
"order_id": "{{ order.order_number }}",
"email": "{{ order.email }}",
"delivery_country": "{{ order.shipping_address.country_code }}",
"estimated_delivery_date": "{{ 'now' | date: '%s' | plus: 604800 | date: '%Y-%m-%d' }}"
});
});
}
</script>
<!-- END Google Customer Reviews Opt-in -->
{% endif %}
3. Adding the Floating Google Reviews Badge
To display the floating badge on your storefront, paste this in layout/theme.liquid before the closing </body> tag:
<script src="https://apis.google.com/js/platform.js" async defer></script>
<g:ratingbadge merchant_id="YOUR_GMC_ACCOUNT_ID" position="BOTTOM_RIGHT"></g:ratingbadge>
4. Zero Speed Penalty Guarantee
Because this script is served directly from Google's lightning-fast CDN with async defer, it loads with zero speed penalty and saves you over $600/year in third-party review app subscriptions.