In today’s hyper-competitive e-commerce landscape, acquiring traffic is only half the battle. Once a user lands on your WooCommerce store, the deciding factor between an abandoned cart and a completed purchase is often a single element: Trust.

Customers are increasingly cautious about where they enter their credit card information. One of the most powerful ways to instantly establish credibility and differentiate your brand from competitors is by displaying the Top Quality Store badge (awarded via Google Merchant Center’s Shopping Experience Scorecard). Stores that earn and display this badge often see immediate lifts in click-through rates (CTR) and on-site conversion rates.

Here is a comprehensive guide on how to earn this coveted badge and the technical steps to properly implement it within your WooCommerce architecture.

Part 1: How to Earn the “Top Quality Store” Badge

The Top Quality Store badge is not something you can simply buy; it must be earned by providing exceptional customer service and transparent operations. Google awards this badge based on metrics tracked in your Google Merchant Center (GMC) account.

1. Opt Into the Shopping Experience Scorecard First, you must tell Google you want to be evaluated.

  • Log in to your Google Merchant Center account.

  • Navigate to the Growth tab on the left-hand menu and click on Shopping Experience Scorecard.

  • Follow the prompts to opt into the program.

2. Meet the Strict Performance Metrics Google will monitor your store across several key vectors compared to other merchants in your category. To achieve the “Top Quality” tier, you must excel in:

  • Delivery Speed: Consistently fast shipping times.

  • Shipping Cost: Offering free or highly competitive shipping rates.

  • Return Cost: Offering free or low-cost returns.

  • Return Window: Providing a generous return window (e.g., 30+ days).

  • Store Rating: Maintaining high customer reviews via Google Customer Reviews.

Once Google collects enough data and your store meets the threshold for “Excellent” across these metrics, you will be awarded the Top Quality Store status and provided with the badge code.

Part 2: How to Install the Badge in WooCommerce

Once you have earned the badge, Google will provide you with a specific JavaScript snippet and an HTML <div> tag to display the badge on your storefront.

Because the badge needs to render globally (or specifically in high-trust areas like the bottom right of the screen or on the checkout page), you must inject this code securely into your WooCommerce theme.

Here are the two best methods to do this without breaking your site.

Method A: Using a Code Snippet Plugin (Recommended for Managers)

If you prefer not to edit your theme files directly, utilizing a lightweight snippet management plugin is the safest route.

  • Step 1: Install and activate a plugin like WPCode (formerly Insert Headers and Footers).
  • Step 2: From your WordPress dashboard, navigate to Code Snippets > Add Snippet.
  • Step 3: Select “Add Your Custom Code (New Snippet)”.
  • Step 4: Title the snippet “Google Top Quality Store Badge”.
  • Step 5: In the Code Type dropdown, select HTML Snippet.
  • Step 6: Paste the JavaScript integration code provided by Google Merchant Center into the code box.
  • Step 7: Scroll down to the Insertion section. Set the Location to Site Wide Footer (or Site Wide Header, depending on Google’s specific code instructions for your account)
  • .Step 8: Toggle the snippet from “Inactive” to Active and click Save.

Note: Depending on the exact badge format Google provides, you may also need to place the specific <div id="gts-badge"></div> code inside a WooCommerce widget (like your footer widget) via Appearance > Widgets.

Method B: Injecting via functions.php (For Developers)

For a cleaner implementation that doesn’t rely on third-party snippet plugins, you can inject the code directly via your child theme’s functions.php file.

Step 1: Access your site files via SFTP or your hosting File Manager.Step 2: Navigate to wp-content/themes/your-child-theme/functions.php.Step 3: Add the following PHP hook to inject the JavaScript right before the closing </body> tag:

PHP

add_action('wp_footer', 'finestshops_add_google_quality_badge');
function finestshops_add_google_quality_badge() {
    // Only show on the front end
    if ( !is_admin() ) {
        ?>
        <!-- Paste your Google Merchant Center Badge JS Code Below -->
        <script src="https://apis.google.com/js/platform.js?onload=renderBadge" async defer></script>
        <script>
          window.renderBadge = function() {
            var ratingBadgeContainer = document.createElement("div");
            document.body.appendChild(ratingBadgeContainer);
            window.gapi.load('ratingbadge', function() {
              window.gapi.ratingbadge.render(ratingBadgeContainer, {
                "merchant_id": "YOUR_MERCHANT_ID",
                "position": "BOTTOM_RIGHT"
              });
            });
          }
        </script>
        <!-- End Google Badge Code -->
        <?php
    }
}

(Make sure to replace "YOUR_MERCHANT_ID" with your actual Google Merchant Center ID).

Step 4: Save the file and clear your WooCommerce and server caches. Visit your live site in an incognito window to verify the badge is displaying correctly in the bottom corner of your screen.

Need Help Implementing This?

Modifying core theme files and ensuring third-party scripts don’t slow down your site’s Time to First Byte (TTFB) requires a delicate touch. If implemented incorrectly, JavaScript snippets can block page rendering and hurt your Core Web Vitals.

If you need any help pulling the correct code from Google, securely installing the badge, or optimizing your site speed after adding third-party scripts, contact FinestShops.com support. Our dedicated e-commerce engineering team handles all custom development and technical integrations so you can focus entirely on growing your business.

To Your Success!

Anton Pachkine @ FinestShops.com

Are you a wholesaler?

Watch this short video about eCommerce optimization for wholesalers

eCommerce Optimization

"WooCommerce Optimization" Guide & Newsletter

For retailers, wholesalers & manufacturers who want to 10X online revenue without wasting a fortune.

Get 5 Proven UX Fixes to Increase Store's Average Order Value (AOV)