Skip to content
Back to blog

WooCommerce to Google Merchant Center Feed Setup

Set up a WooCommerce product feed for Google Merchant Center: where each field lives in WooCommerce, the core GTIN and brand fields, and four ways to sync.

Alex DiazFounder, SnowPipeMay 8, 20269 min read
woocommercegoogle-shoppinggoogle-merchant-centerproduct-feedsguide

WooCommerce does not hand you a Google Shopping feed. Product data is spread across wp_posts, wp_postmeta, taxonomies and whatever custom fields the last developer added, and Google Merchant Center expects one clean row per variation with a brand, a valid GTIN and a price that matches the live page.

This guide covers where WooCommerce keeps each field Google asks for, how to map them, and the four ways to keep the feed current. Two of those fields changed recently: WooCommerce core now has its own GTIN field and its own brand taxonomy.

SnowPipe has a WooCommerce connector in beta. Its limits are listed near the end, and you can try it free.

How WooCommerce stores product data

  • wp_posts holds the product (title, description, slug, status). Variations are stored here too, as the product_variation post type with the parent product as post_parent.
  • wp_postmeta holds most of the rest: _regular_price, _sale_price, _sku, _stock, _stock_status, the image references, and any Advanced Custom Fields values.
  • Taxonomies hold categories (product_cat), tags (product_tag), brands, and global attributes such as pa_color and pa_size.
  • Variation attributes are postmeta on the variation, with keys like attribute_pa_color.

Two fields have moved into core since most feed guides were written:

  • GTIN. WooCommerce 9.2 added a field labeled "GTIN, UPC, EAN or ISBN" on products and variations. It is stored as _global_unique_id and exposed in the REST API as global_unique_id.
  • Brands. Brands became a core feature, enabled for everyone in WooCommerce 9.6, using the product_brand taxonomy.

Older stores still have these in a plugin's meta key or taxonomy, so find out where yours are before you map anything.

Step 1: What Google Merchant Center requires

Google's product data specification is the full list, and the plain-English walkthrough explains each attribute. The minimum for a WooCommerce store:

Required fields

FieldNotes
idA stable unique ID, max 50 characters. Use the variation ID for variable products and the post ID for simple ones.
titleUp to 150 characters, plain text. Append the variation's attributes ("Acme Hoodie, Black, Large").
descriptionUp to 5,000 characters. Remove shortcodes and HTML.
linkThe public product URL on your verified domain.
image_linkA public image URL. At least 500 x 500 pixels from January 31, 2027 (100 x 100, or 250 x 250 for clothing, until then).
availabilityin_stock, out_of_stock, preorder or backorder.
price19.99 USD: a number, a space and the ISO 4217 code.
brandRequired for all new products except books, movies and music. Max 70 characters.

gtin is strongly recommended whenever the manufacturer assigned one. mpn is required when there is no GTIN.

Required for apparel

In Brazil, France, Germany, Japan, the UK and the US:

FieldSource in WooCommerce
colorVariation attribute attribute_pa_color, or the global attribute pa_color.
sizeVariation attribute attribute_pa_size. Required for clothing and shoes.
genderUsually missing. Derive it from the category or store it in a custom field.
age_groupSame. One of adult, kids, toddler, infant, newborn.
item_group_idThe parent product's post ID, on every variation.

Worth sending

FieldWhy
google_product_categoryOptional. Google assigns one from its taxonomy if you do not, and its choice is often a broad parent category.
product_typeYour own category path, useful for grouping products in campaigns.
sale_price and sale_price_effective_dateNeeded to show a strikethrough price.
additional_image_linkUp to 10 more images, from the gallery meta key _product_image_gallery.

Step 2: Map WooCommerce fields to Google's format

Google fieldWooCommerce sourceGotcha
idPost ID (simple) or variation post ID (variable)Do not change it later. A new id is a new product to Google.
titlepost_titleAppend variation attributes for variable products.
descriptionpost_contentRun strip_shortcodes() and then wp_strip_all_tags(). The second one alone leaves shortcodes such as [vc_row] in the text, and the first only removes shortcodes that are still registered.
linkget_permalink($post_id)On a multi-currency store, the URL must show the currency you send in price.
image_linkFeatured image (_thumbnail_id)Use the variation's own image when it has one.
price_regular_priceWooCommerce stores a bare decimal. Append the currency.
sale_price_sale_price, when today is inside _sale_price_dates_from and _sale_price_dates_toA sale scheduled for next week is not active yet.
availability_stock_statusinstock, outofstock and onbackorder map to in_stock, out_of_stock and backorder.
brandThe core product_brand taxonomy, a brand plugin's taxonomy, or a custom fieldDepends on when the store was built.
gtin_global_unique_id, or the meta key of an older GTIN pluginCore field since WooCommerce 9.2.
mpn_sku, only if the SKU is the manufacturer's part numberGoogle treats MPN and SKU as different things.
google_product_categoryA custom field, or assigned by a toolCategory names in a store rarely match Google's taxonomy.
product_typeThe product_cat chain, parent to childClothing > Hoodies > Pullover
color, size, material, patternVariation attribute meta (attribute_pa_color and so on)The meta holds the slug. Send the label: cobalt-blue becomes Cobalt Blue.
item_group_idpost_parent of the variationSame value on every variation of the product.

Step 3: Pick a sync method

Option A: Manual CSV export

WooCommerce has a built-in product exporter under Products. Export, reshape the file to Google's columns, and upload it to Merchant Center.

It is free and it goes stale immediately. Price and stock changes do not reach Google, and products expire from Merchant Center 30 days after the last upload. Use it for a one-off test.

Option B: Google for WooCommerce

Google for WooCommerce is the official plugin (its slug is still google-listings-and-ads), published by WooCommerce. It connects your store to Merchant Center and syncs the catalog.

Its attribute mapping lets you write rules that map your global attributes to Google attributes, and its GTIN page covers the core GTIN field. The limit is the source: rules work from global attributes, and an attribute created on a single product cannot be used.

For a store that uses the core fields, start here.

Option C: A feed plugin

Plugins such as Product Feed PRO, CTX Feed and Google Product Feed build an XML or CSV file that Google fetches on a schedule.

Each has its own mapping screen, and the same plugin can feed other channels. The file is built by your own WordPress server, so on a large catalog the build takes longer and competes with the storefront for resources. Google sees changes only at the next fetch.

Option D: An external feed service

A service outside WordPress reads the catalog through the WooCommerce REST API, transforms it, and writes to Google's Merchant API or hosts a file.

The feed build does not run on your server, and one source can supply several channels. It costs a monthly fee and needs REST API keys. What these services read varies, so check variations and custom meta before you commit.

Common WooCommerce to Merchant Center errors

Mismatched price or availability

Google crawls the product page and compares it with the feed. A multi-currency plugin, a page cache or a customer-specific price can make the page show a different number than the one you sent.

Check the canonical product URL in a private window, in the currency you send. On a multi-currency store, build one feed per currency and target each to its country. The disapproved products guide covers the other causes.

Limited performance due to missing value: GTIN

The GTIN is missing, or it is somewhere the feed does not read. On WooCommerce 9.2 or later, look at the product's "GTIN, UPC, EAN or ISBN" field first. Older stores may have it in _sku, in a GTIN plugin's meta key or in an ACF field.

Map the key your store uses to gtin. If the product has no GTIN, send brand and mpn. Set identifier_exists to no only when it has no GTIN and no brand and MPN pair, as Google's rule says. The missing GTIN guide has more.

A category that is too broad

google_product_category is optional and Google assigns one automatically. The automatic choice is often a parent category, and some rules (apparel, for example) only apply once Google knows the exact one. Store the Google category ID in a custom field for the products where it matters. The category lookup tool finds the ID.

Promotional overlay on image

A theme or a sale-badge plugin has drawn "20% OFF" into the image file. Google's image requirements rule out promotional text, watermarks and borders. Render badges in CSS over the image and keep the file clean.

Variations are not grouped

Each variation is sent without an item_group_id, so Google treats them as unrelated products. Set it to the parent's post ID on every variation, and check it again after you add a variation.

Where SnowPipe's WooCommerce connector stands

SnowPipe is an Option D service. Its production path is Shopify to Google Merchant Center. The WooCommerce source is in beta, which means it is built and tested but no merchant runs it in production yet.

Today the connector:

  • Connects with a REST API consumer key and secret.
  • Reads each product's core fields: name, description, regular and sale price, SKU, stock status, categories, tags, weight, dimensions and the main image.
  • Syncs to Merchant Center through Google's Merchant API on an hourly or daily schedule, with the price format, required fields and GTIN check digit validated before export.
  • Runs outside WordPress, so a sync does not use your server's cron.

It does not yet read variations, the core GTIN field, brands, or custom meta and ACF fields. A variable product comes through as its parent only. Until that changes, it suits catalogs of simple products, and Google for WooCommerce or a feed plugin is the better choice for a variable-product store.


Want to try the beta on your store?

Try SnowPipe free: connect your WooCommerce store and see what the connector reads before you rely on it. Or book a 15-min demo and I'll walk you through your specific setup.

Ready to automate your product feeds?

Connect your store and sync to Google, Facebook, and more — in minutes. No credit card required.