GOOGLE SHOPPING

WooCommerce Variable Products on Google Shopping: Complete Guide

Learn how to set up variable products with variations for Google Shopping. Handle GTINs, sizes, colors, and ensure each variation appears correctly.

By WooPlugin | Published January 27, 2026 | 10 min read
Clothing store with product variations on display
Photo by Clark Street Mercantile on Unsplash

Variable products are common in WooCommerce—think t-shirts in multiple sizes and colors, or phones with different storage options. But getting variations to work correctly with Google Shopping requires understanding how Google handles product variants. This guide covers everything you need to know.

How Google Handles Product Variations

Google Shopping treats each variation as a separate product listing. A t-shirt available in 3 sizes and 4 colors creates 12 individual listings in Google Merchant Center.

The Item Group ID Concept

Google uses item_group_id to link variations together:

  • All variations of the same product share the same item_group_id
  • Each variation has a unique id
  • Google displays variations together in Shopping results

Example:

iditem_group_idtitlecolorsize
SKU-001-BLK-STSHIRT-001Cotton T-Shirt - Black - SmallBlackS
SKU-001-BLK-MTSHIRT-001Cotton T-Shirt - Black - MediumBlackM
SKU-001-WHT-STSHIRT-001Cotton T-Shirt - White - SmallWhiteS

Setting Up Variable Products in WooCommerce

Step 1: Create the Parent Product

  1. Go to Products → Add New
  2. Select “Variable product” from the Product Data dropdown
  3. Fill in the general product information:
    • Product name (base name without variation details)
    • Description
    • Categories and tags
    • Main product image

Step 2: Create Attributes

Attributes define what varies between your products.

  1. Go to the Attributes tab
  2. Add attributes like:
    • Color
    • Size
    • Material
    • Storage capacity
  3. Check “Used for variations”
  4. Enter all possible values (e.g., Small | Medium | Large)

Step 3: Generate Variations

  1. Go to the Variations tab
  2. Select “Create variations from all attributes”
  3. Click Go and confirm
  4. WooCommerce creates all possible combinations

Step 4: Configure Each Variation

For each variation, set:

  • SKU - Unique identifier
  • Price - Can differ per variation
  • Stock - Individual stock levels
  • Image - Variation-specific image
  • GTIN - Unique barcode (critical for Google Shopping)

GTINs for Variable Products

This is where many stores struggle. Each variation needs its own unique GTIN.

Why Each Variation Needs a GTIN

A black t-shirt in size Small is a different product than a black t-shirt in size Medium. They have different barcodes at retail, and Google treats them as separate products.

Where to Find Variation GTINs

From your supplier:

  • Wholesale catalogs list GTINs per size/color
  • Data feeds from suppliers include variation GTINs
  • Contact manufacturers for product data sheets

From the product:

  • Each size/color has its own barcode on packaging
  • Scan or manually record each variation’s barcode

If you manufacture:

  • Purchase GTINs from GS1 for each variation
  • One base product with 12 variations needs 12 GTINs

Adding GTINs to Variations in WooCommerce

With the Google Shopping for WooCommerce plugin:

  1. Edit the variable product
  2. Go to the Variations tab
  3. Expand each variation
  4. Find the GTIN, Brand, and MPN fields
  5. Enter the unique GTIN for that specific variation
  6. Save changes

GTIN, Brand, and MPN fields in WooCommerce product editor Each variation has its own GTIN, Brand, and MPN fields

What If You Don’t Have GTINs for Variations?

If your variations don’t have individual GTINs:

  1. Set identifier_exists to “No” for those variations
  2. Include MPN (Manufacturer Part Number) instead
  3. Always include the Brand

Note: Products without GTINs may have reduced visibility in Google Shopping.

Required Attributes for Variations

Google requires specific attributes depending on your product category.

Apparel Products

AttributeRequiredExample
colorYesBlack, Navy Blue
sizeYesS, M, L, XL, 32x30
genderYesMale, Female, Unisex
age_groupYesAdult, Kids, Infant
size_typeSometimesRegular, Petite, Plus
size_systemSometimesUS, UK, EU

Electronics

AttributeRequiredExample
colorIf variesSpace Gray, Silver
capacityIf varies128GB, 256GB
materialSometimesAluminum, Plastic

Other Products

AttributeWhen RequiredExample
colorIf product varies by colorRed, Blue
sizeIf product varies by sizeSmall, Large
patternIf product varies by patternStriped, Solid
materialIf significant differentiatorCotton, Polyester

Feed Structure for Variations

When your feed is generated, each variation becomes a separate entry.

Sample Feed Output

<item>
  <g:id>SKU-001-BLK-S</g:id>
  <g:item_group_id>TSHIRT-001</g:item_group_id>
  <g:title>Cotton T-Shirt - Black - Small</g:title>
  <g:color>Black</g:color>
  <g:size>S</g:size>
  <g:gtin>012345678901</g:gtin>
  <g:availability>in_stock</g:availability>
  <g:price>29.99 USD</g:price>
</item>
<item>
  <g:id>SKU-001-BLK-M</g:id>
  <g:item_group_id>TSHIRT-001</g:item_group_id>
  <g:title>Cotton T-Shirt - Black - Medium</g:title>
  <g:color>Black</g:color>
  <g:size>M</g:size>
  <g:gtin>012345678902</g:gtin>
  <g:availability>in_stock</g:availability>
  <g:price>29.99 USD</g:price>
</item>

How the Plugin Handles This

The Google Shopping for WooCommerce plugin automatically:

  1. Uses the parent product SKU as item_group_id
  2. Uses variation SKU as unique id
  3. Pulls variation-specific GTIN, price, stock, image
  4. Appends variation attributes to the title
  5. Includes color, size, and other attributes in the feed

Common Mistakes with Variable Products

1. Using Parent GTIN for All Variations

Wrong: Entering one GTIN on the parent product and expecting it to apply to all variations.

Right: Enter unique GTINs on each individual variation.

2. Missing Variation Images

Wrong: Only setting the main product image, leaving variations without images.

Right: Upload specific images for each color/style variation. Sizes don’t necessarily need different images.

3. Inconsistent Attribute Values

Wrong: Using “Sm”, “Small”, and “S” interchangeably.

Right: Use consistent attribute values: always “S” or always “Small”.

4. Not Including Required Attributes

Wrong: Selling apparel without gender and age_group.

Right: Always include all required attributes for your product category.

5. Duplicate SKUs

Wrong: Multiple variations with the same SKU.

Right: Every variation needs a unique SKU that becomes its unique id in the feed.

Troubleshooting Variation Issues

”Missing value: GTIN” on Variations

Cause: GTIN not set on individual variations.

Fix:

  1. Edit product → Variations tab
  2. Expand each variation
  3. Add GTIN to each one

”Invalid value for item_group_id”

Cause: The parent product doesn’t have a SKU set.

Fix: Set a SKU on the parent variable product (not just on variations).

Variations Not Appearing in Feed

Cause: Variations might be out of stock or disabled.

Fix:

  1. Check stock status on each variation
  2. Ensure variations are enabled (not set to “Disabled” in dropdown)
  3. Verify each variation has a price

Wrong Image Showing

Cause: Variation image not set.

Fix: Upload images specifically to each variation, especially for color variants.

Best Practices

Title Optimization

Include variation details in titles:

Good: “Nike Air Max 90 Men’s Running Shoe - White/Black - Size 10”

Avoid: “Nike Air Max 90” (no variation details)

Image Strategy

  • Use variation-specific images for visual differences (colors, patterns)
  • Main product image can be used for non-visual variations (sizes)
  • Minimum 800x800 pixels
  • Show the specific color/variant in the image

Stock Management

  • Keep variation stock accurate
  • Out-of-stock variations automatically marked in feed
  • Consider hiding out-of-stock variations from your store

Pricing Variations

Different variations can have different prices:

  • Size XL might cost more
  • Premium colors might have upcharge
  • Ensure feed reflects actual variation prices

FAQ

Q: Do I need a GTIN for every single variation?

Ideally, yes. Each variation is a distinct product with its own barcode. If variations don’t have GTINs, set identifier_exists to “No” for those specific variations.

Q: How many variations can a product have?

WooCommerce can handle hundreds of variations, and Google will accept them all. However, for usability, consider if customers really need 100+ options or if you should split into separate products.

Q: What if my variations have the same price?

That’s fine. Set the same price on each variation. Google still treats them as separate products.

Q: Do variations inherit the parent Brand?

With the Google Shopping for WooCommerce plugin, you can set Brand on the parent or individual variations. If set on parent, it typically applies to all variations unless overridden.

Q: Can I exclude certain variations from the feed?

Yes. You can set specific variations to “Out of stock” to exclude them, or use Pro features for advanced filtering rules.


Need to add GTIN fields to your WooCommerce variations? Google Shopping for WooCommerce adds free GTIN, Brand, and MPN fields to both parent products and individual variations.

Ready to sell on Google Shopping?

Get our free plugin with GTIN, Brand, and MPN fields. No product limits, no paywalls for essential features.