Help removing redundant Google tag from theme.liquid

Topic summary

A user found a redundant Google tag in their theme.liquid file and was unsure whether to remove an adjacent “MerchantWidget Code” section that references gstatic.com/shopping/merchant/merchantwidget.js.

Clarification provided:

  • The script is Google’s Merchant Center widget, not directly part of the redundant tag
  • It enables Google Shopping features including:
    • Product ratings/reviews
    • “Buy on Google” buttons
    • Shopping cart integration
    • Product availability displays
    • Direct checkout through Google

Resolution:
The user can keep the widget if they want to maintain Google Shopping ecosystem integration, or remove it if those features aren’t needed. The question was resolved with this explanation.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

I have located a redundant google tag in my theme.liquid code and need to remove it. Directly below it though is a section of code “BEGIN MerchantWidget Code”. I think it might be related to the google tag as it has a line

src=”https: //www. gstatic. com/ shopping/merchant/merchantwidget.js” but I’m not sure. Should I remove the entire merchant widget section along with the google tag script or leave it?

Hello @Maya9 ,

I hope you are well!

This is Google’s Merchant Center widget script - it enables Google Shopping features directly on your website, such as:

1.) Product ratings and reviews
2.) “Buy on Google” buttons
3.) Shopping cart integration
4.) Product availability displays
5.) Direct checkout through Google

The product will appear at - Google Shopping - Shop Online, Compare Prices & Where to Buy

If you want to stay in Google’s shopping ecosystem, you can keep it or else, you can remove the code.

1 Like

Thank you for the explanation!

If my answer is helpful, please mark it as a answer and like my reply. You’re welcome :slight_smile:

1 Like