# Shopify SEO: What You Can Control, and What You Can't

Canonical: https://figment.so/blog/shopify-seo

You control page titles, meta descriptions, URL handles and image alt text. Shopify generates the sitemap, ships a working robots.txt, and adds canonical tags and structured data in standard themes.

**You control the words: page titles, meta descriptions, URL handles, and image alt text. Shopify controls the plumbing: it generates your sitemap.xml, ships a working robots.txt by default, and adds canonical tags and basic structured data in standard themes without code from you.** The two overlap only where Shopify offers an escape hatch, such as a `robots.txt.liquid` template for developers. The sources are Shopify's help center and developer docs.

## What SEO fields can I edit in Shopify without code?

You can edit the page title, meta description, and URL handle of every product, collection, page, and blog post. Each has a **Search engine listing preview** section with an "Edit website SEO" or pencil-icon option. Shopify's guidance on writing them: "Use a unique, descriptive title. Include your most important target keywords for each page near the beginning of the title. Enter a title that is 60 characters or fewer" ([Shopify Help Center, "Adding keywords for SEO to your Shopify store"](https://help.shopify.com/en/manual/promoting-marketing/seo/adding-keywords)). The admin field allows up to 70 characters for a title and recommends 160 for the description, but Shopify warns that text beyond those limits is cut off in search results.

For your homepage, add a title and meta description from **Online Store > Preferences**, in the **Social sharing image and SEO** section.

## What can I change about a Shopify URL handle?

You can change the handle, which is the part of the URL after the prefix, but not the prefix. Shopify's fixed prefixes are not configurable: you cannot redirect or restructure `/products`, `/collections`, or `/collections/all`, which Shopify calls "fixed Shopify paths" ([Shopify Help Center, "Creating and managing URL redirects"](https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect)). Pages and blog posts have the same fixed folders, `/pages/` and `/blogs/`.

Shopify's instructions for a page: "In the URL handle field, you can change part of the web address. It can't contain any spaces. You can enter dashes (-) between separate words instead of spaces" ([Shopify Help Center, "Creating and editing pages"](https://help.shopify.com/en/manual/online-store/add-edit-pages)). Blog posts work the same way through the same panel ([Shopify Help Center, "Adding and managing blog posts"](https://help.shopify.com/en/manual/online-store/blogs/writing-blogs/working-with-blog-posts)).

When you change a handle, Shopify offers "a pre-selected option to Create a URL redirect, and the old web address redirects to the new web address" (both sources above, identical wording). The checkbox is on by default, so the old URL stays protected unless you clear it.

## Does Shopify generate my sitemap and robots.txt automatically?

Yes, both. On the sitemap: "All Shopify stores automatically generate a sitemap.xml file that contains links to all your products, primary product image, pages, collections, and blog posts" ([Shopify Help Center, "Finding and submitting your sitemap"](https://help.shopify.com/en/manual/promoting-marketing/seo/find-site-map)). It lives at your domain root, such as `example.com/sitemap.xml`, and updates when you add a product, page, collection, image, or blog post. Your only job is to submit it to Google Search Console once, which the same help page explains step by step.

On robots.txt: "All Shopify stores have a default robots.txt file that's optimal for Search Engine Optimization (SEO)" ([Shopify Help Center, "Editing robots.txt.liquid"](https://help.shopify.com/en/manual/promoting-marketing/seo/editing-robots-txt)). The default already disallows crawling of your admin, cart, checkout, account, and duplicate filtered-collection URLs, so most stores never need to change it.

If you do need to change it, Shopify's documented route is a `robots.txt.liquid` file in your theme's Templates folder: "You can use Liquid to add or remove directives from the robots.txt.liquid template. This method preserves Shopify's ability to keep the file updated automatically in the future, and is recommended" (same source). Shopify's own support team does not support this customization, and Shopify warns "Incorrect use of the feature can result in loss of all traffic". Treat it as a developer task, and delete the custom template if you want the current default file back.

## Does Shopify add canonical tags for me?

Yes, for the page types that matter most. Shopify's theme documentation says: "You can specify a canonical URL for a given page using the global Liquid canonical_url object" ([Shopify.dev, "Add SEO metadata to your theme"](https://shopify.dev/docs/storefronts/themes/seo/metadata)). In a standard theme that object is already wired into `theme.liquid`, which is why a product reachable through more than one collection path does not usually cause duplicate-content problems.

You only touch this on a custom page template a developer built without the theme's head markup. The `canonical_url` object still exists, but you must add it to that template's `<head>` section yourself.

## Does Shopify add structured data automatically?

Yes, for product, collection, and article pages. Shopify says: "Your Shopify store's theme automatically includes microdata (also known as structured data) in its code. This special HTML markup helps search engines better understand and display your content in search results. For example, product pages include microdata about prices, availability, and reviews, which can appear as rich snippets in search results. All current Shopify-supported themes and themes from the Theme Store include this functionality by default, so you don't need to add any additional code" ([Shopify Help Center, "Finding and submitting your sitemap"](https://help.shopify.com/en/manual/promoting-marketing/seo/find-site-map)). Whether Google shows a rich snippet is Google's choice, and neither Shopify nor a theme can guarantee it.

## How do I redirect a page or hide it from search engines?

For redirects, you can only redirect a broken (404) URL, and several path prefixes are permanently off-limits. Our [guide to Shopify redirects](/blog/shopify-redirects) covers those rules, the export and import flow, and the redirect caps.

To keep a published page out of search results, Shopify documents an unlisted product status or a `seo.hidden` metafield set to `1`. Both remove a product or page from the sitemap and internet search without unpublishing it ([Shopify Help Center, "Hiding a page from search engines"](https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines)). This is also the recovery path if a page is indexed by mistake, or if you want a page reachable only by direct link.

## How do I write good alt text in Shopify, and where do I set it?

Keep it brief and descriptive. Shopify says: "Keep your alt text brief and descriptive. The maximum length is 512 characters, but 125 or less is recommended" ([Shopify Help Center, "Adding alt text to media"](https://help.shopify.com/en/manual/products/product-media/add-alt-text)). For product images, open the product's media page, click the image, then click Add alt text. For collection and blog post featured images, use the Edit image option under the image ([Shopify Help Center, "Adding keywords for SEO to your Shopify store"](https://help.shopify.com/en/manual/promoting-marketing/seo/adding-keywords)). Shopify also supports bulk alt text uploads through a CSV file, which is the practical route for an existing catalog.

## Who controls each SEO element in Shopify?

| Element | Who controls it | Where |
| --- | --- | --- |
| Page title, meta description | You | Search engine listing preview, per product/page/post |
| URL handle | You (within a fixed prefix) | Same panel; redirect offered automatically on change |
| `/products`, `/collections` prefixes | Shopify, fixed | Not editable |
| Sitemap.xml | Shopify, automatic | Root of your domain |
| Default robots.txt | Shopify, automatic | Editable only via a developer-added `robots.txt.liquid` |
| Canonical tags | Shopify, automatic in-theme | Available as `canonical_url` for custom templates |
| Structured data (product/article) | Shopify, automatic in-theme | No code needed on supported themes |
| Image alt text | You | Per-image, or bulk via CSV |
| Hiding a page from search | You | Unlisted status or `seo.hidden` metafield |

Shopify covers the technical floor. Your SEO work is the content layer: clear titles, real meta descriptions, sensible URL handles, and alt text that describes the image. None of it promises a specific ranking.
