02 / Structured Data|5 min read|Updated 2026-12-01

Fixing Shopify Variant Blindness: Complete ProductGroup JSON-LD Guide

1 in 5 multi-variant Shopify stores only emit JSON-LD for a single default variant, hiding sizes and colorways from AI shopping filters. Copy-paste Liquid ProductGroup snippet inside.

Key Findings & Takeaways

  • Theme Variant Blindness happens when a Shopify theme emits a single Product Offer for selected_or_first_available_variant instead of iterating over product.variants.
  • Google Merchant Center, Gemini, and ChatGPT Shopping officially recommend Schema.org ProductGroup with hasVariant and variesBy for multi-size and multi-color apparel and footwear.
  • Always include live per-variant SKU, price, availability, and gtin12/gtin13 barcode inside each hasVariant node.

What Theme Variant Blindness looks like in live Shopify stores

During our 35-store benchmark audit, 20% of multi-variant DTC brands suffered from Variant Blindness. On flagship footwear, apparel, and supplement pages carrying 12 to 54 live Shopify variants, the rendered HTML JSON-LD exposed 0 or 1 variant offer.

Human shoppers using the browser UI can still click dropdowns and buy Size 10 in Forest Moss. AI crawlers reading the static server-rendered HTML cannot execute client-side swatch scripts, so those hidden colorways and sizes never appear when buyers filter by size or color.

Production-ready Shopify Liquid ProductGroup snippet

Create a dedicated snippet (snippets/skucite-product-group.liquid) and render it inside theme.liquid on product templates. This non-destructive pattern stays isolated from your theme code and automatically updates whenever Shopify inventory or prices change:

snippets/skucite-product-group.liquid
1{%- if template.name == 'product' -%}
2<script type="application/ld+json">
3{
4 "@context": "https://schema.org",
5 "@type": "ProductGroup",
6 "@id": "{{ shop.url }}{{ product.url }}#product-group",
7 "productGroupID": "{{ product.id }}",
8 "name": {{ product.title | json }},
9 "description": {{ product.description | strip_html | truncate: 500 | json }},
10 "url": "{{ shop.url }}{{ product.url }}",
11 "brand": {
12 "@type": "Brand",
13 "name": {{ product.vendor | default: shop.name | json }}
14 },
15 "variesBy": [
16 {%- for option in product.options -%}
17 {%- assign opt = option | downcase -%}
18 {%- if opt contains 'color' or opt contains 'colour' -%}"https://schema.org/color"
19 {%- elsif opt contains 'size' -%}"https://schema.org/size"
20 {%- else -%}"https://schema.org/pattern"{%- endif -%}
21 {%- unless forloop.last -%},{%- endunless -%}
22 {%- endfor -%}
23 ],
24 "hasVariant": [
25 {%- for variant in product.variants -%}
26 {
27 "@type": "Product",
28 "sku": {{ variant.sku | default: variant.id | json }},
29 {%- if variant.barcode.size == 13 -%}"gtin13": {{ variant.barcode | json }},{%- endif -%}
30 {%- if variant.barcode.size == 12 -%}"gtin12": {{ variant.barcode | json }},{%- endif -%}
31 "name": {{ product.title | append: ' - ' | append: variant.title | json }},
32 "offers": {
33 "@type": "Offer",
34 "url": "{{ shop.url }}{{ variant.url }}",
35 "priceCurrency": {{ cart.currency.iso_code | json }},
36 "price": "{{ variant.price | divided_by: 100.0 }}",
37 "availability": "https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}"
38 }
39 }{% unless forloop.last %},{% endunless %}
40 {%- endfor -%}
41 ]
42}
43</script>
44{%- endif -%}

How to validate your ProductGroup markup

After publishing the snippet, inspect a multi-variant product URL in both Google Rich Results Test and the free SkuCite 15-second auditor. Confirm that schemaOffersCount matches your total live Shopify variant count and that no Ghost Price Drift exists between your live cart price and your JSON-LD offer price.

Frequently Asked Questions

Will adding a ProductGroup JSON-LD block conflict with my existing Shopify theme schema?

Modern search engines and AI shopping agents merge multiple JSON-LD graph nodes by canonical URL or @id. However, for the cleanest graph, avoid conflicting prices between an older theme Product block and your new ProductGroup block.

Does ProductGroup JSON-LD slow down Shopify storefront loading speed?

No. Liquid renders the JSON-LD script server-side at Shopify's edge with 0 ms of client-side JavaScript execution or layout shift.