Build a product variants SEO policy: color/size parameterization, canonical to parent,…
- User
Build a product variants SEO policy: color/size parameterization, canonical to parent, structured data aggregation, and faceted crawl rules.
Assistant
Build a product variants SEO policy: color/size parameterization, canonical to parent, structured data aggregation, and faceted crawl rules.
The user wants an "SEO policy" for product variants. This policy needs to cover four specific areas:
Target Audience: Developers, SEO specialists, and Product Managers implementing an e-commerce platform. Tone: Professional, directive, technical, and actionable.
Section 1: Color/Size Parameterization (URL Structure)
?color=red&size=m) vs. distinct paths (e.g., /product/red-shirt-m).domain.com/product/t-shirt?color=red&size=m) or clearly defined sub-paths. Let's stick to the parameter approach as it scales better for crawl budget on massive sites, or a hybrid where the "parent" is the "base".Section 2: Canonicalization (Canonical to Parent)
rel="canonical" to the main parent product page (or a "representative" variant like "All Colors" or the default configuration).Section 3: Structured Data (Schema.org)
Product schema. Include offers as an aggregation or a list of offers (offers for specific variants).hasVariant or a list of Offer objects).ItemPage structure. The best way is usually a list of offers within the Product node.Section 4: Faceted Crawl Rules (Crawl Budget & Indexation)
color=red+blue&size=m+L&sort=price.robots.txt, meta name="robots", x-robots-tag, Sitemaps.robots.txt: Block generic filter parameters (price, sort, pagination beyond page 1 usually).?color=red.Structure of the Output: I will structure this as a formal "Technical SEO Policy Document."
Self-Correction during drafting:
?color=red to /product, the ?color=red page won't rank for "Red Shirt". Is this what the user wants? The prompt says "canonical to parent". Yes. I will adhere to this. Note: I should add a small "Note" that for some aggressive SEO strategies, people canonical to the specific color page, but for this policy, I will enforce the "Parent" rule as requested.sku, gtin, and offers. The "Aggregation" part implies showing the parent product schema with all offers listed.Let's write the document.
Refining the Schema part: Google supports two main ways for variants:
offers (one for each variant) or use hasVariant. Offers array is usually safer for Rich Snippets (Price/Availability).Refining Faceted Rules:
Faceted navigation is usually on Category pages (Listing pages).
Product Variant parameters are on Product Detail pages (PDP).
I need to clarify that ?color=red on a PDP is a variant. ?color=red on a Category page is a Facet.
Let's assemble. This document outlines a technical SEO policy for managing Product Variants (e.g., Color, Size) in an e-commerce environment.
Policy Objective: To consolidate link equity, prevent duplicate content, maximize crawl efficiency, and optimize for rich results (Google Shopping/Image Search).
Policy: Use URL parameters for variants rather than distinct sub-folders or separate product IDs, unless the variants constitute a "significant content difference" (e.g., drastically different descriptions/reviews).
https://domain.com/product-parent-slug?attr_color=red&attr_size=mediumcolor, size).Exception: If a variant has distinct user-generated content (UGC) like reviews specific to that SKU, or a significantly different description, consider a "Silo" approach (separate URL). For this policy, we assume standard variants and proceed with Parameterization.
Policy: All variant URLs must canonicalize to the Parent (Root) Product URL to consolidate ranking signals.
/product): rel="canonical" points to itself (Self-Referential)./product?color=red): rel="canonical" points to /product (the Parent).Policy: Implement Product structured data on the Parent URL that aggregates offers for all variants to maximize Rich Snippet eligibility (price ranges, availability).
Product object.offers array.{
"@context": "https://schema.org/",
"@type": "Product",
"name": "Cotton T-Shirt",
"image": ["tshirt-white.jpg", "tshirt-red.jpg"],
"offers": [
{
"@type": "Offer",
"url": "https://domain.com/product?color=white",
"priceCurrency": "USD",
"price": "15.00",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
},
{
"@type": "Offer",
"url": "https://domain.com/product?color=red",
"priceCurrency": "USD",
"price": "15.00",
"availability": "https://schema.org/OutOfStock"
}
]
}
Policy: Strict control over how parameters are handled in robots.txt and internal linking to prevent "Crawl Budget Waste" on infinite loops (e.g., filtering by size, then color, then price).
Block generic filtering and sorting parameters that do not create valuable indexable pages.
User-agent: *
Disallow: /*?sort=
Disallow: /*?order=
Disallow: /*?price_min=
Disallow: /*?q=
NoIndex, Follow via the X-Robots-Tag HTTP header or Meta Robots tag.https://domain.com/product).?color=red) in the sitemap. Including a URL in a sitemap implies you want it indexed, which conflicts with the Canonical-to-Parent policy.| Component | Action Item |
|---|---|
| URL Structure | Use ?color=x&size=y. Maintain strict parameter order. |
| Canonical Tags | All variants rel="canonical" to the Parent URL. |
| Hreflang | (If applicable) Point all language variants to the canonical version of that language. |
| Schema | Parent page contains an array of Offer objects for all SKUs. |
| Robots.txt | Disallow sorting/search parameters. Allow facet parameters (Color/Size). |
| Meta Robots | Apply noindex, follow to Faceted Search result pages (Category + Filter). |
| Sitemaps | List Parent URLs only. |