{"slug": "shopify-product-structured-data-a-practical-checklist-for-google-and-ai-search", "title": "Shopify Product Structured Data: A Practical Checklist for Google and AI Search", "summary": "A developer published a practical checklist for implementing schema.org product structured data on Shopify stores, covering how to audit existing JSON-LD, use Shopify's built-in Liquid structured_data filter, and hand-write Product and Offer markup with Liquid-filled values. The guide emphasizes that markup removes ambiguity for search engines and AI assistants but is not a ranking switch, and warns against marking up reviews or ratings that shoppers cannot see.", "body_md": "Disclosure: one link near the end of this post is an affiliate link. If you sign up through it I may earn a commission at no extra cost to you. Everything else here works with free tools.\n\nSearch engines and AI assistants both have to work out, from your HTML, what a product is, what it costs, and whether it is in stock. Structured data (schema.org markup, usually JSON-LD) is the most direct way to state those facts in a machine-readable form. It is not a ranking switch, and nobody can promise that markup alone gets a store into a Google rich result or a ChatGPT answer. What it does is remove ambiguity, and on Shopify it is mostly a matter of checking what the theme already does and filling gaps.\n\nBefore writing any Liquid, look at what is on the live page.\n\n`application/ld+json`.`@type` you see: `Product`, `Offer` / `AggregateOffer`, `Organization`, `BreadcrumbList`, `WebSite`.\nCommon findings on real stores:\n\n`structured_data` filter where you can\nRecent Shopify themes (Dawn and most Online Store 2.0 themes based on it) use the built-in Liquid filter:\n\n```\n<script type=\"application/ld+json\">\n  {{ product | structured_data }}\n</script>\n```\n\nPer Shopify's reference, the filter outputs a schema.org `Product` for a product without variants and a `ProductGroup` for one with variants. It generates the markup from the product object, so prices, variants, and availability stay in sync with the admin without you maintaining JSON by hand. Check the current behaviour in the [Liquid filter reference](https://shopify.dev/docs/api/liquid/filters/structured_data) before relying on it, because Shopify updates what the filter emits. If your theme already uses it, the main job is making sure nothing else on the page duplicates it.\n\nSometimes you need fields the filter does not cover, such as a GTIN stored in a metafield, or you are on a theme you cannot easily upgrade. Then write the block yourself and let Liquid fill every value. A minimal starting point:\n\n```\n{%- assign current_variant = product.selected_or_first_available_variant -%}\n<script type=\"application/ld+json\">\n{\n  \"@context\": \"https://schema.org\",\n  \"@type\": \"Product\",\n  \"name\": {{ product.title | json }},\n  \"url\": {{ request.origin | append: product.url | json }},\n  {%- if product.featured_image -%}\n  \"image\": {{ product.featured_image | image_url: width: 1200 | prepend: 'https:' | json }},\n  {%- endif -%}\n  \"description\": {{ product.description | strip_html | strip_newlines | truncate: 500 | json }},\n  \"brand\": { \"@type\": \"Brand\", \"name\": {{ product.vendor | json }} },\n  {%- if current_variant.sku != blank -%}\n  \"sku\": {{ current_variant.sku | json }},\n  {%- endif -%}\n  \"offers\": [\n    {%- for variant in product.variants -%}\n    {\n      \"@type\": \"Offer\",\n      \"sku\": {{ variant.sku | json }},\n      \"price\": {{ variant.price | divided_by: 100.0 | json }},\n      \"priceCurrency\": {{ cart.currency.iso_code | json }},\n      \"availability\": \"https://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}\",\n      \"url\": {{ request.origin | append: variant.url | json }}\n    }{% unless forloop.last %},{% endunless %}\n    {%- endfor -%}\n  ]\n}\n</script>\n```\n\nNotes on this snippet:\n\n`json` filter, so quotes and special characters in titles cannot break the JSON.`variant.price` is in the smallest currency unit, hence `divided_by: 100.0`. Test with a currency that has no minor unit if you sell in one.`cart.currency.iso_code` follows the visitor's presentment currency, which matters if you use Shopify Markets.`image_url` returns a protocol-relative URL, so the snippet adds `https:`. Check the output in the validator.` aggregateRating` or `review` if real reviews are visible on the same page. Marking up ratings that shoppers cannot see is against Google's structured data guidelines.\nProduct markup answers \"what is this item\". Two small blocks answer \"who sells it\":\n\n`url`, and `sameAs` links to your real social profiles.\nKeep these in one snippet included from `theme.liquid` so they are not duplicated per section.\n\nMarkup is useless if the page is blocked. On Shopify you can customise `robots.txt` through the `robots.txt.liquid` template. If you or an app have edited it, open `/robots.txt` on the live store and check that product and collection paths are not disallowed for the crawlers you care about. Some AI assistants use their own user agents; decide deliberately whether to allow them rather than inheriting a rule from a copied template.\n\nAfter deploying:\n\nWhether AI assistants actually mention or cite the store is a separate question from whether the markup is valid. You can check it by hand: keep a dated log of the same buyer-style prompts (\"best [product type] for [use case]\") in ChatGPT, Perplexity, and Gemini and note whether the store appears. If you want a structured snapshot instead, [ZeroRank](https://zerorank.ai/?aff=AoqXkON) (affiliate link) offers free tools including an AI brand visibility report, and paid plans for scheduled tracking across several assistants. Treat any single result as a snapshot, not a ranking: answers change with phrasing and over time.\n\n`/robots.txt` does not block product or collection pages", "url": "https://wpnews.pro/news/shopify-product-structured-data-a-practical-checklist-for-google-and-ai-search", "canonical_source": "https://dev.to/shopstacknotes/shopify-product-structured-data-a-practical-checklist-for-google-and-ai-search-2g66", "published_at": "2026-11-27 02:30:11+00:00", "updated_at": "2026-11-27 02:44:07.865715+00:00", "lang": "en", "topics": ["structured-data", "ai-search", "generative-engine-optimization"], "entities": ["Shopify", "Google", "Dawn", "schema.org", "ChatGPT"], "also_reported_by": [], "takeaway": "On Shopify, use the built-in Liquid structured_data filter to keep Product/ProductGroup markup in sync with prices and availability, and hand-write JSON-LD only for fields the filter misses, escaping every value with the json filter.", "recommendation": {"advice": "Audit your live product pages for existing JSON-LD before writing Liquid, then fill gaps with the structured_data filter or a hand-written block that escapes all values via the json filter.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/shopify-product-structured-data-a-practical-checklist-for-google-and-ai-search", "markdown": "https://wpnews.pro/news/shopify-product-structured-data-a-practical-checklist-for-google-and-ai-search.md", "text": "https://wpnews.pro/news/shopify-product-structured-data-a-practical-checklist-for-google-and-ai-search.txt", "jsonld": "https://wpnews.pro/news/shopify-product-structured-data-a-practical-checklist-for-google-and-ai-search.jsonld"}}