> Site index: https://usehardal.com/llms.txt
> Every content route also serves markdown at <url>.md

# What Is the Universal Commerce Protocol (UCP)?

The Universal Commerce Protocol (UCP) is an open standard from Google and retail partners for agentic product discovery, checkout, and orders.

Source: https://usehardal.com/glossary/universal-commerce-protocol

---

The Universal Commerce Protocol (UCP) is an open-source standard that defines a shared language between AI consumer surfaces, shopping agents, merchants, and payment providers. Announced by Google in January 2026 with retail and commerce partners including Shopify, Etsy, Wayfair, Target, and Walmart, UCP replaces custom one-off integrations with a unified interface for discovery, cart building, identity linking, checkout, and order management.

With UCP, a shopper can move from product research to checkout inside an AI surface such as Google AI Mode or Gemini while the business stays the Merchant of Record.

## How does the Universal Commerce Protocol work?

UCP organizes commerce capabilities using reverse-domain identifiers (such as `dev.ucp.shopping.checkout` and `dev.ucp.shopping.fulfillment`) tied to published JSON schemas. A merchant publishes a business profile advertising its supported protocol version and capabilities, and an agent or platform negotiates active capabilities at runtime.

- **Transport bindings.** UCP runs over standard HTTP REST (`POST /checkout-sessions` with `Idempotency-Key` and `UCP-Agent` headers), [Model Context Protocol (MCP)](https://usehardal.com/glossary/model-context-protocol), and Agent2Agent (A2A) transports.
- **Identity linking.** OAuth 2.0 flows allow returning customers to apply loyalty status, member pricing, and saved addresses safely.
- **Payment interoperability.** Modular payment handlers connect to Google Pay, wallets, and the Agent Payments Protocol (AP2) using signed mandates rather than exposing raw card numbers.
- **Order lifecycle and attribution.** In the `2026-08-25` specification, checkout sessions accept an optional `attribution` object for campaign, click, and source markers, which UCP copies onto the created order as a read-only snapshot alongside `adjustments` for returns and refunds.

## A concrete example

A shopper asks Gemini to order running shoes from a UCP-enabled retailer. The platform discovers the retailer's UCP profile, negotiates `dev.ucp.shopping.checkout`, and creates a checkout session via `POST /checkout-sessions` with a `UCP-Agent` header pointing to the platform's profile URL and an `attribution` object carrying campaign parameters.

Once the shopper confirms payment via Google Pay and AP2 mandates, the retailer's backend receives the order directly. Because no browser thank-you page loaded on the store's website, client-side pixels miss the conversion unless the retailer records the order server-side with its protocol version and `attribution` snapshot.

## Common measurement pitfalls

- Relying on browser tags to count UCP orders. Checkout inside an AI interface skips the store's client-side confirmation page, leaving [GA4](https://usehardal.com/destinations/google-analytics-4) and browser pixels blind.
- Assuming `attribution` is always populated. UCP defines `attribution` as optional; when a calling platform leaves it empty, analytics systems cannot reconstruct the original prompt or ad click.
- Dropping `UCP-Agent` and spec versions at collection time. Storing only a flattened channel name hides which platform initiated the order and makes re-mapping harder when UCP schemas update.
- Ignoring post-order `adjustments`. Reporting gross checkout value without syncing UCP refunds and cancellations inflates net revenue and misleads [value-based bidding](https://usehardal.com/glossary/value-based-bidding).

## How Hardal helps

Hardal is the first-party data and agentic analytics platform. It captures UCP and backend orders server-side, preserves raw `UCP-Agent` and `attribution` payloads alongside consent state, and routes verified conversions to Google, Meta, and TikTok without needing a browser thank-you page. To see how UCP compares with ACP, MCP, and AP2 in a measurement stack, read [Agentic Commerce Protocols: MCP, ACP, UCP and AP2 Explained](https://usehardal.com/blog/agentic-commerce-protocols-mcp-acp-ucp-ap2) and [Agentic commerce](https://usehardal.com/glossary/agentic-commerce).
