Platforms · Shopify

SEO and GEO checks for Shopify stores

Shopify handles robots.txt, sitemaps and canonicals for you. What still goes wrong in a store, from duplicate product titles to an editable robots.txt.liquid, and where to fix it.

What Shopify does for you

  • Every store has a default robots.txt, generated by Shopify.
  • A sitemap.xml is generated automatically at the root of each domain.
  • Themes print a canonical for each page, and product pages reached through a collection point to the product’s own URL.
  • Hreflang tags are added automatically for international domains and subfolders.

What still goes wrong

  • Empty or repeated titles and descriptions: fill in the search engine listing for each product, collection and page. On pages, it is under “Search engine listing preview” › “Edit website SEO”.
  • A password-protected store: crawlers see only the password page until you remove the password.
  • Theme or app scripts that add a second set of structured data, so a product has two conflicting prices or ratings.
  • Product text loaded by an app after the page renders, which crawlers that do not run JavaScript cannot read.
  • Old URLs that return 404 after you rename products. Add URL redirects in the admin.

Editing robots.txt

Shopify’s default robots.txt suits most stores. To change it, you add a robots.txt.liquid template to your theme. Edit it only for a clear reason, for example to allow or block a specific AI crawler, and keep Shopify’s default rules in place.

templates/robots.txt.liquid: keep the defaults, add one ruleliquid
{% for group in robots.default_groups %}
  {{- group.user_agent }}
  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}
  {%- if group.sitemap != blank %}
    {{ group.sitemap }}
  {%- endif %}
{% endfor %}

User-agent: GPTBot
Disallow: /

Questions

Should I block anything in robots.txt?

Usually not. The default already blocks cart, checkout and filtered collection URLs that should not be crawled.

Why does my product appear under several URLs?

Collection paths link to the same product. Shopify themes set the canonical to the product URL, which is the right behavior.

Which page should I scan?

A product page and a collection page tell you more than the home page, because that is where most templates differ.