Technical Definition & Architecture

In consumer packaged goods, cosmetics, and grocery sectors, shoppers frequently evaluate pricing based on standardized units such as per ounce, liter, or 100 grams. UnitPriceSpecification allows retailers to display both total purchase price and standardized unit pricing in search results.

The structure uses referenceQuantity to describe unit volume (such as 100 ML or 1 KG) and priceType to differentiate between one-time purchases and recurring subscription fees. Google uses this information to present transparent comparative values in search carousels.

For Shopify merchants selling subscriptions or bulk consumables, adding UnitPriceSpecification within the main Offer block clarifies true pricing metrics for algorithmic search filters.

Syntax Example for Shopify JSON-LD

"priceSpecification": {
  "@type": "UnitPriceSpecification",
  "price": "24.00",
  "priceCurrency": "USD",
  "unitCode": "MLT",
  "unitText": "100 ml",
  "referenceQuantity": {
    "@type": "QuantitativeValue",
    "value": "100",
    "unitCode": "MLT"
  }
}
Automate Schema Compliance Across Your Catalog

Keep your Shopify products verified and compliant with Google Merchant Center standards. Smart Schema renders complete, valid JSON-LD server-side with zero theme code edits.

Start 14-Day Free Trial

Frequently Asked Questions

Is UnitPriceSpecification mandatory for all Shopify products?

It is not strictly required for standard retail goods, but it is highly recommended for cosmetics, food, beverages, and bulk goods where unit price comparisons are customary.

Related Implementation Guide

See our in-depth tutorial on how to implement and troubleshoot this property:

Shopify Subscription Product Schema Guide