Boost Sales with Google Merchant Automated Discounts – Step-by-Step for WooCommerce

How to enable Google Automated Discounts for WooCommerce via Google Merchant Center.

Important: This strategy involves several mandatory steps that require 4 specific plugins — all of which are available individually or included in the All Access license.

Get expert tracking tips in your inbox

Join 65,000+ marketers and site owners who already get our best guides on Meta Pixels, CAPI, GA4, Google Ads, TikTok & Pinterest tracking, GDPR, and more.

* We don’t spam, and all our emails have an “Unsubscribe” link that works. 

4 key steps with our 4 plugins:

Track Conversion with Card Data (CwCD)

Track Conversion with Card Data (CwCD) with PixelYourSite.

Add COG to WooCommerce

Add Cost of Goods Sold to your products with WooCommerce Cost of Goods.

Add auto_pricing_min_price

Add auto_pricing_min_price to your products with Product Catalog Feed for WooCommerce.

Show the automated discount on the site

Show the prices Google sends you with WooCommerce Smart Prices.

What You Need for Google Automated Discounts

To enable Google Automated Discounts on your WooCommerce store, three things are essential — all of which can be handled using PixelYourSite plugins:

  • Conversion Tracking with Cart Data (CwCD):
    Google needs detailed conversion data that includes cart contents and product prices at the time of purchase. This allows their system to evaluate performance and adjust discounts intelligently. PixelYourSite automatically sends this data with each purchase event.

  • Google Merchant Product Feed with Cost and Min Price:
    Your product feed, submitted to Google Merchant Center, must include two key fields:
    Cost of Goods Sold (COGS): So Google knows your profit margins
    auto_pricing_min_price: The lowest price you’re willing to sell a product for
    These fields are required for Google to calculate and apply optimal discounts through your ads.

  • Support for Dynamic Prices on Your Site:
    When a shopper clicks your ad, Google may apply a discount based on its algorithm. Your WooCommerce store must be able to recognize this and show the discounted price on the product page or cart, exactly as Google instructs. The WooCommerce Smart Prices plugin by PixelYourSite handles this automatically.

Track Conversion with Card Data (CwCD)

Plugin used: PixelYourSite Professional or Free.

Google expects you to send CWD parameters with your conversion events. 

PixelYourSite Professional does it for Google Analytics, Google Ads, and Google Tag Manager. The PixelYourSite Free version will send it for Google Analytics and Google Tag Manager.

Provide the following information on the plugin’s WooCommerce page:

Optional, useful if you submit an item in several Merchant Center accounts and you want to control from which Merchant Center the item’s data, for example, its COGS, should be read.

Go to PixelYourSite > WooCommerce, Track Purchases. Enable “Google Tags Conversion with Card Data (CwCD)”, add the data in the fields, and Save.

aw_merchant_id: This is your Google Merchant Center account ID. To find it, log in to your Google Merchant Center account at https://merchants.google.com. Look in the top-right corner of the page — your 10-digit Merchant ID is displayed there. 

aw_feed_country: This is the 2-letter country code of your primary feed’s target country. In Google Merchant Center, go to Settings > Data Sources, then click on your Primary Feed, Data source setup. Under “Feed label” you’ll see the country or countries assigned to that feed. Use the 2-letter ISO code (e.g., US, GB, RO, DE).

aw_feed_language: This is the 2-letter language code of the feed’s language. In Google Merchant Center, go to Settings > Data Sources, then click on your Primary Feed, Data source setup and look for “Language”.

Code example for Google Tag (Ga4 or Google Ads Conversion):

				
					<!-- Sample Code Conversion -->
<script type="text/javascript">
gtag('event', 'purchase', {
  "send_to": "AW-9999999999/abc123xyz",
  "transaction_id": "1545c34e-691e-4726-aeda-b798df255e9c",
  "value": 53.50,
  "currency": "USD",
<!-- Start of CwCD Parameters -->
  "discount": 1.50,
  "aw_merchant_id": 98765,
  "aw_feed_country": "US",
  "aw_feed_language": "EN",
  "items": [
    {
      "id": "P12345",
      "quantity": 2,
      "price": 12.50
    },
    {
      "id": "P67890",
      "quantity": 1,
      "price": 30.00
    }
  ]
<!-- End of CwCD Parameters -->
});
/* ]]&gt; */
</script>
				
			

Code example for Google Tag Manager Data Layer:

				
					dataLayer.push({
event: ”purchase”,
ecommerce: {
    transaction_id: ”T_12345,
    value: 7.77,
    tax: 4.90
    shipping: 5.99,
    currency: “USD”,
    coupon: “SUMMER SALE”,
    aw_merchant_id: “12345”
    aw_feed_country: ‘US”
    aw_feed_language: “EN”
    items: [
    {
    item_id: “SKU_12345”,
    item_name: “Stan and Friends Tee”,
    affiliation: “Google Merchandise Store”,
    coupon: “SUMMER_FUN”,
    discount: 2.22,
    index: 0,
    item_brand: “Google”,
    item_category: “Apparel”,
    item_category2: “Adult”,
    item_category3: “Shirts”,
    item_category4: “Crew”,
    item_category5: “Short sleeve”,
    item_list_id: “related_products”,
    item_list_name: “Related Products”,
    item_variant: “green”,
    location_id: “ChIJIQBpAG2ahYAR_6128GcTUEo”,
    price: 9.99,
    quantity: 1
    }]
				
			

Add the Cost of Goods Sold to your WooCommerce products

Plugins used: WooCommerce Cost of Goods, Product Catalog Feed for WooCommerce

The impressions volume for opted-in products with valid COGS needs to cover at least 20% of your current inventory impressions. Using our WooCommerce Cost of Goods plugin, you can add it in various ways:

Global Rule

Recommended if you want a fast setup and if your products have a similar cost. 

As a percent or fixed value for all your products: go to WooCommerce > Settings > Cost of Goods by PixelYourSite. Look for the Global Rule, and add your values

Category rule

A fixed value or percent. Recommended if the cost varies based on product category. 

Product or variation level

A fixed value or percent. Recommended if the cost of your products varies a lot and you must track exact values. 

Export – Import Products or Categories

You can also export your products or categories in a CSV format, add the COGS values, and import them back. 

The plugin will take the COGS values in this order: Variation – Product – Category – Global Rule.

Add the COGS to your Google Merchant product feed

In the Product Catalog Feed for WooCommerce plugin, edit your Google Merchant feed and enable the “Cost of goods sold” option. Update the feed and regenerate it. 

The feed plugin will detect the COGS and send it to Google Merchant. 

Add auto_pricing_min_price to your WooCommerce products

Plugin used: Product Catalog Feed for WooCommerce

The impressions volume for opted-in products with valid minimum prices needs to be at least 20% of your current inventory impressions.

This value tells Google how low they can go with their discounts.

The Product Catalog Feed for WooCommerce lets you add it in various ways:

Global Rule:

Recommended if your products have similar COGS.

Go to Product Catalog Feed for WooCommerce, expand the Global Settings, and look for “Google Automated Discounts”. Add the rule as a percent. 

Feed Rule:

Edit a Google Merchant rule, make sure the “Cost of goods sold” option is enabled, and add the rule as a percent:

Category Rule:

Edit a product category and look for the auto_pricing_min_price (percent).

Product or variation Rule:

Edit a product, click on Product Catalog, and look for the auto_pricing_min_price (percent).

Update the feed:

Once you have auto_priceing_min_price in place, make sure the Google Merchant feed has the “Cost of goods” option enabled and regenerate the feed. 

With this step, your product data for Google Merchant is ready. Both COGS and auto_priceing_min_price will be present for your products. 

Recommended: Initiate a Refresh for your feed inside your Google Merchant account. 

  • Access Data Sources: In your Merchant Center account, navigate to Settings & tools > Data sources.
  • Select Feed: Choose the specific product feed you want to update.
  • Initiate Refresh: Click on the refresh icon (usually represented by a circular arrow).

Enable Google Dynamic Discounts on your WooCommerce site

Plugin used: WooCommerce Smart Prices

Your site must detect when Google applies an automated discount and update the displayed product price accordingly. The discounted price will be shown as the product’s sale price.

Open the WooCommerce left-side menu and click on Smart Prices. Go to Google Automated Discounts. Add your Google Merchant ID, enable Google Automated Discounts, scroll the page, and save.

To find your Google Merchant ID, log in to your Google Merchant Center account. The Merchant ID is typically displayed in the top-right corner of the dashboard, next to your account name. Alternatively, you can find it under Account settings > Business information within the Merchant Center.

Available Options:

Session Timeout (in minutes): Defines how long the Google discounted prices will be remembered during a browsing session.

Cart Timeout (in hours): Defines how long the Google discounted prices will be retained for products added to the cart.


Important: Google requires a minimum of 30 minutes for session timeout and 48 hours for cart timeout.

Variation Discount Inheritance: If enabled, the Google discounted price will apply to all variations of a product—but only if all variations share the same base price.

Google Merchant GAD Setup

The final and most important step is to enable Google Automatic Discounts inside Google Merchant. 

Navigate to your Google Merchant account, open Settings, and click on add-ons. 

Click Setup and follow the instructions. 

It’s possible that Google show “No impressions covered from inventory” warnings. If you completed the previous steps, it means you need to wait until Google gets the new product data. This can take a few days, depending on your traffic. 

Manual verification of the discounted price experience on your online store:

Google will offer a few testing links. Click on them, and check if the discounted prices are displayed correctly. The WooCommerce Smart Prices plugin must be configured on the site. 

Google Review

Once the required product data is received by Google and the conversion setup is complete, the “Submit for review”button will become active.

Use it to request a full end-to-end review after you’ve validated your URL integration. Make sure the sale price discounts are displayed consistently using the provided product test links.

Google typically takes 2–3 business days to complete the review. Any outstanding issues or required actions will be shown here once the review is finished.

Don’t stop here!

Subscribe to get more tips on tracking, analytics, and GDPR.

We’ll send you practical guides on Meta Pixel, CAPI, GA4, Google Ads, TikTok, Pinterest, GDPR compliance, and more, right to your inbox.

* We don’t spam, and all our emails have an “Unsubscribe” link that works.