1. Home
  2. Knowledge Base
  3. Fields & Mapping
  4. Add Cost of Goods Sold to Google Shopping Feed

Add Cost of Goods Sold to Google Shopping Feed

When you run Google Shopping campaigns, the default reports show you revenue, clicks, and conversions. What they don’t show you is the number that really matters: profit. To understand how much you actually make on each sale, you need to track the Cost of Goods Sold (COGS) alongside your product data.

By adding COGS to your Google Shopping feed, Google can calculate your gross profit (revenue minus cost) and display profit-based metrics in your Ads account. This opens the door to smarter bidding, better budget allocation, and the ability to focus on the products that bring in the highest margins, not just the most sales.

Here, you’ll learn how to add COGS to your product feed. We’ll cover the setup step by step, so you can start making decisions based on profit, not just revenue.

Prerequisites

Before you can add COGS to your feed, make sure the following pieces are in place:

  1. Google Global Site Tag Installed
    Add the global site tag (gtag.js) to your site and ensure you’re tracking purchases. Without this, Google can’t measure profit.
  2. Google Merchant Center and Google Ads Linked
    Confirm that your Merchant Center is linked to Google Ads. This allows product and cost data to flow between accounts.
  3. Conversions with Cart Data (CwCD) Enabled
    Set up Conversions with Cart Data in Google Ads. This ensures that Google tracks not only the conversion value, but also product details like price and quantity.

Once you’ve covered these prerequisites, you’re ready to add the COGS field to your products and include it in your Shopping feed.

Enabling the Cost of Goods Sold Field

To record product costs inside, you’ll first need to enable the WooCommerce Cost of Goods Sold option from the Experimental Features section. This unlocks a dedicated input field on each product page where you can enter your cost data.

To Enable the COGS Field:

  1. Go to WP Admin → WooCommerce → Settings → Advanced → Features
  2. Scroll down to the Experimental Features section.
  3. Check the box labeled Cost of Goods Sold.
  4. Click Save changes at the bottom of the page.

Once enabled, you’ll see a new Cost of Goods Sold field on each product’s edit screen.

By enabling this field, you’re setting up the foundation for more accurate profit reporting. Once mapped in your feed, this data can be pushed to Google Merchant Center and used in Google Ads to measure gross profit, not just revenue.

How It Works

  • For simple products, you can enter the cost directly under the product data panel.
  • For variable products, each variation will have its own COGS field. This ensures that you can accurately track costs for different product sizes, colors, or configurations.
  • The parent product will also display a COGS field, but note that variation-level costs override it when applicable.

Map the Field in Your Feed

Once you’ve added the Cost of Goods Sold field to your products, the next step is to map it in your product feed so Google Merchant Center can use it.

  1. Go to your feed’s Edit page from the Product Feed Pro (or Elite) → Manage Feeds screen
  2. Navigate to the Field Mapping step.
  3. Scroll to the bottom of the mapping list
  4. Click the “+ Add Field Mapping” button
  5. Select Google’s official Cost of Goods Sold (COGS) (cost_of_goods_sold) attribute from the dropdown
  6. Map it with the Cost of Goods Sold (COGS) option
  7. Enter your site’s default currency (for example, USD, GBP, or EUR).
  8. If your store runs multiple currencies, make sure you set the currency code according to the feed you’re creating.
  1. Click Save to confirm the mapping.
  2. Refresh the feed to see the changes

Including COGS in your Google Shopping feed might seem like an extra step, but it unlocks one of the most powerful insights you can get: profit-level visibility. Once it’s live, your ads stop being blind to costs and start optimizing for real growth.

Need More Help?

If you require any additional assistance, please don’t hesitate to create a new ticket to contact our support team.

Please note that the ticket support system is exclusive to Product Feed ELITE users.

If you’re using only the Product Feed Pro plugin, feel free to open a new topic in the WordPress.org forum.

Was this article helpful?

Related Articles

Complete Your Purchase
AdTribes WooCommerce Product Feed

The best WooCommerce product feed plugin

  • AdTribes Pty Ltd
    ABN: 40 675 636 816
Product