How To Add Robots.txt in Shopify For Google Merchant Center?

Here is a guide on how to add the correct user-agents in your robots.txt file in Shopify, for the purpose of Google Merchant Center.

First login to Shopify and edit your theme code.

Edit Shopify Theme

If you already have added a robots.txt or you see a robots.txt file in the template section, ignore the following step.

Add a robots.txt file by going to the template section and click on add a new template

Add A Shopify Robots.txt File

At the top of the file hit enter so you have 1 clear line, and paste the following code below and click on save.

User-agent: Googlebot
Disallow: /admin/
Allow: /
User-agent: Googlebot-image
Disallow: /admin/
Allow: /
User-agent: Storebot-Google
Disallow: /admin/
Allow: /
Add Google User Agents in Shopify

🙋Questions or Need Help?
Do you have a question or need specialist support? Get in touch! I’m happy to help you optimize your Google Shopping listings for the best performance.

Subscribe
Notify of
guest
8 Comments
Newest
Oldest Most Voted
Jil
Jil
9 months ago

Hello, how can I add a template with the new interface please ?

jordan c
Reply to  Emmanuel Flossie
2 months ago

hi, you’ve referred me to this after a consultation, but it’s outdated. just as a heads up. i’ll look to figure it out, but others might need it.

TSD
TSD
11 months ago

what does the disallow mean? and could you also share how to use url inspection for any product page url?

Narcis
Narcis
1 year ago

Hi Emanuel,
Why is it necessary to add Robots.txt in Shopify for Google Merchant Center?
Thank you very much.

8
0
Would love your thoughts, please comment.x
()
x