- Most Shopify themes build breadcrumbs from the path a visitor took, so the same product shows a different trail, or none, depending on how someone arrived.
- Shopify has no built-in collection hierarchy, so default breadcrumbs stop at one collection level.
- The fix is a fixed path per product and collection, stored in a metafield, that the theme shows and the schema repeats.
- BreadcrumbList structured data tells search engines and AI systems where a page sits in your catalogue; check it with Google’s Rich Results Test.
Breadcrumbs are the small trail above a product, such as Home › Bath › Vanity units › Product. They help shoppers move up a level, and they tell search engines and AI systems how your catalogue is organised. On Shopify they often do not work as they should: the trail changes with the visitor’s path, it stops at one collection, and the schema behind it does not always match. This guide explains why and how to fix it.
Why Shopify breadcrumbs do not work for multi-level stores
Default Shopify breadcrumbs follow a simple pattern: Home › Collection › Product. That works for a flat catalogue with one level of collections. Most stores have more: a department, a category and a product type. For example:
Home › Bath › Bathroom furniture › Vanity units › Oak vanity unit 80 cm
Shopify cannot build this by default, for two reasons.
Problem 1: breadcrumbs based on the visitor’s path
Many themes take the collection from the URL. When a shopper opens a product from a collection, the URL looks like /collections/vanity-units/products/oak-vanity and the breadcrumb shows that collection. Open the same product from “Best sellers” and the breadcrumb shows Best sellers. Arrive straight from Google or from your sitemap at /products/oak-vanity and there is no collection at all: the trail is just Home › Product.
Search engines mostly arrive the direct way. So the version Google reads is often the poorest one, and it can differ from visit to visit.
Problem 2: no collection hierarchy
Shopify collections are flat. A collection cannot have a parent collection, and a product can be in many collections without one being the main one. Your navigation menu can be nested, but it is built for browsing: the same collection often appears in several places, under “Sale”, “New” and its own department. Using the menu as the source of the breadcrumb therefore gives inconsistent trails.
- Trail depends on how the visitor arrived
- One collection level at most
- Often missing on direct visits and for crawlers
- Schema may show Home › Product only
- Same trail on every visit
- As many levels as your catalogue needs
- Visible to crawlers on the canonical URL
- Schema matches the visible trail
How search engines and AI tools read your catalogue
Product structured data describes one item: what it is, what it costs and whether it is in stock. For broader searches, such as “oak vanity units” or “standing desks”, search engines and AI assistants also need to know which products belong to which category, and how categories relate to each other.
Without clear signals they guess from URLs, menus and surrounding text, or they treat your product and collection pages as unrelated pages. A consistent breadcrumb, visible on the page and repeated in BreadcrumbList structured data, states the hierarchy outright.
What breadcrumb schema communicates
BreadcrumbList is a type from schema.org. It lists each level of the trail in order, with a name and a URL. For a product in a home office store it says: Electric standing desks is part of Standing desks, which is part of Desks, which is part of Home office.
- Relevance across a category. A store that clearly shows depth in one product group signals organised, thorough coverage of that group.
- Clearer search results. On desktop, Google can show the trail in the result instead of a long URL. Since January 2025 Google no longer shows breadcrumbs in mobile results, but the structured data is still read and supported.
- Better context for AI answers. Assistants that read your pages can place a product in the right category instead of inferring it.
Structured data does not guarantee rankings or citations. It removes guesswork; the content still has to be good. See does schema markup help AI visibility? for what studies and the search engines themselves say.
How to build hierarchical breadcrumbs in Shopify
The reliable approach is to decide the trail once per product and per collection, store it, and let the theme read it. You can do this with a metafield and a few lines of theme code, or with an app that does the same.
- Draw your hierarchy
Write down departments, categories and product types, two to three collection levels below Home for most stores. Each product gets one main path, even if it sits in several collections.
- Create a metafield definition
In the Shopify admin settings, open the metafield definitions for products and add one such as custom.breadcrumb of type “List of collection references”. Add the same for collections if collection pages need a parent trail.
- Fill in the path
On each product, pick the collections in order: department, then category, then product type. Use bulk editing or a CSV import for large catalogues.
- Show the trail in the theme
Add a breadcrumb snippet to the product and collection templates that reads the metafield, so the trail is the same however the visitor arrived.
- Output matching schema
Generate BreadcrumbList JSON-LD from the same metafield, so what Google reads matches what visitors see. Remove any older breadcrumb schema the theme or an app adds, so there is only one.
- Test
Paste a product URL into Google’s Rich Results Test. BreadcrumbList should show without errors, with the levels in the right order.
A sketch of the theme code, for a developer to adapt to your theme:
{%- assign trail = product.metafields.custom.breadcrumb.value -%}
<nav aria-label="Breadcrumb"><ol class="breadcrumbs">
<li><a href="{{ routes.root_url }}">Home</a></li>
{%- for c in trail -%}<li><a href="{{ c.url }}">{{ c.title }}</a></li>{%- endfor -%}
<li aria-current="page">{{ product.title }}</li>
</ol></nav>
<script type="application/ld+json">
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [
{"@type": "ListItem", "position": 1, "name": "Home", "item": "{{ shop.url }}"}
{%- for c in trail -%},
{"@type": "ListItem", "position": {{ forloop.index | plus: 1 }}, "name": {{ c.title | json }}, "item": "{{ shop.url }}{{ c.url }}"}
{%- endfor -%},
{"@type": "ListItem", "position": {{ trail.size | plus: 2 }}, "name": {{ product.title | json }}}
]}
</script>Options compared
| Option | Levels | Same trail every visit | Effort |
|---|---|---|---|
| Theme default | One | No | None |
| Built from the main menu | Up to menu depth | Mostly | Developer, once |
| Metafield path + snippet | Any | Yes | Developer once, then per product |
| Breadcrumb app | Any | Yes | App setup, often a monthly fee |
Whichever you choose, keep the data in your store (metafields) rather than only inside an app, so the breadcrumbs survive if you change apps or themes.
What ROASaurus does and does not do here
ROASaurus does not edit your theme or add structured data to your store. It reads Google Search Console under Website › Search, where you can watch clicks and impressions for your collection and product pages before and after a breadcrumb change. For a full checklist of the other technical work, see Shopify SEO step by step. Before a busy season, the Black Friday tracking checklist covers the tracking side of your store.
Next step
Sources
- Google Search Central: Breadcrumb (BreadcrumbList) structured data
- Google Search Central blog: Simplifying the visible URL element on mobile search results
- Schema.org: BreadcrumbList
- Shopify developer docs: Metafields