> ## Documentation Index
> Fetch the complete documentation index at: https://4f3be72-productmetrics.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://4f3be72-productmetrics.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://4f3be72-productmetrics.manicule.dev/docs/api/mcp.
> Every agent surface: https://4f3be72-productmetrics.manicule.dev/docs/.well-known/llms-manifest.json

# Microsoft Ads conversion tracking (UET Conversions API) and customer lists (/docs/channels/microsoft-ads)

<!-- agent-signals: reading_time_min: 14 · est_tokens: 6504 · updated: 2026-12-02 -->
Related: [Google Ads server-side conversion tracking](/docs/channels/google-ads.md), [Meta Conversions API and Advanced Matching](/docs/channels/meta.md), [ChatGPT Ads conversion tracking (OpenAI Conversions API)](/docs/channels/openai.md)

> Send purchases, add to carts and checkouts to your Microsoft Ads UET tag through the UET Conversions API, with revenue, profit, new customer and LTV as pm_ custom events, and keep six customer lists.

Product Metrics sends each paid order from its server to your **Microsoft Ads (Microsoft Advertising) UET tag** through Microsoft's **UET Conversions API**: `purchase`, `add_to_cart` and `begin_checkout`, plus revenue, profit, new and returning customer and LTV as **`pm_` custom events** you can bid on. It also keeps six **customer lists** in your ad account.

This is **server-side tracking** (Full Signal Tracking). It runs on the same pipeline as [Meta](/docs/channels/meta) and [ChatGPT Ads](/docs/channels/openai), and setup is the same on every store platform.



* **You need:** a **UET tag ID** and its **Conversions API token** from Microsoft Advertising.
* **In the app:** **Tracking → Microsoft Advertising Conversions API → Connect Microsoft Advertising**.
* **What is sent:** `purchase`, `add_to_cart` and `begin_checkout`, plus revenue, profit, new and returning customer and LTV as `pm_` custom events, and six customer lists.

## Set it up with AI



Setting it up with AI takes one prompt and 60 seconds: paste it into your assistant.



First connect the Product Metrics MCP server ([https://www.productmetrics.io/mcp](https://www.productmetrics.io/mcp); see [Connect your assistant](/docs/mcp/connect)).

**Claude or ChatGPT:** "Send my store's orders to Microsoft Ads with Product Metrics. Check my setup status first, walk me through each open step, and ask me to enter the Conversions API token in the Product Metrics app rather than in this chat."

**Claude Code or Codex:** "Send my store's orders to my Microsoft Ads UET tag with Product Metrics and check that Microsoft Advertising accepts the tag; read the Conversions API token from the MICROSOFT_CAPI_TOKEN environment variable and never print it. Use the Product Metrics MCP server, or the productmetrics CLI with --json and the Product Metrics skills if they are installed (run `productmetrics help agents` first)."

## Prerequisites

* [Before you start](/docs/using/overview): editor or admin access in Product Metrics ([Team](/docs/using/team)).
* **Your store connected** ([pick your platform](#per-platform)). Microsoft Ads can only be added to a property whose store is tracked.
* **A Microsoft Advertising login** that can edit UET tags and conversion goals in your account.

## In the app

### 1. Get your UET tag ID and Conversions API token

This step happens in Microsoft Advertising ([Microsoft's steps](https://learn.microsoft.com/en-us/advertising/guides/uet-conversion-api-integration)). In the **UET** section of your account, create a UET tag or edit an existing one with the pencil icon, select **Save and next**, choose **Use Conversions API** and select **Copy Token**. The tag's ID is in the **Tag ID** column of the UET tag list.

The token is a credential: never paste it into a chat. Product Metrics shows only its last four characters after you save it.

### 2. Add the Microsoft Advertising destination

Go to **Tracking → Microsoft Advertising Conversions API → Connect Microsoft Advertising**. Fill in **UET tag ID** and **Conversions API token**, leave **Send events to Microsoft Advertising** on, and select **Add destination**.



1. **Open Tracking.** Go to **Integrations → Tracking**. Under **Destinations**, select **Microsoft Advertising Conversions API**.

2. **Connect Microsoft Advertising.** You need a **UET tag ID** and its **Conversions API token** from Microsoft Advertising. Select **Connect Microsoft Advertising**, enter them, keep **Send events to Microsoft Advertising** on and select **Add destination**.

3. **Send a test event.** Under **Verify**, select **Send test event**. Microsoft Advertising has no test mode, so the check records no conversion.

4. **Create conversion goals in Microsoft Advertising.** For each value you want to measure, create a **Custom event** conversion goal on the same UET tag with **Action** equal to the event action, for example `purchase` or `pm_order_profit`, and let the value vary. You choose which goal each campaign bids on.

**You should see:** **Checking with Microsoft Advertising…**, then **Microsoft Advertising destination saved**. Under **Verify**, **Send test event** answers **Microsoft Advertising accepted the UET tag ID and token. The check records no conversion.**

To pause and keep your settings, turn off **Send events to Microsoft Advertising**. **Remove destination** deletes the destination and its token.

### 3. Create conversion goals in Microsoft Advertising

This step happens in Microsoft Advertising ([how to create a conversion goal](https://help.ads.microsoft.com/apex/index/3/en/56689)). Microsoft counts an event only once a conversion goal matches it. For each value you want to measure, create a **Custom event** goal on the same UET tag, with **Action** equal to the event action in [What Microsoft Ads receives](#what-microsoft-ads-receives), and choose that the value may vary, so each event counts its own value.

Product Metrics never changes your goals or campaigns. Which goal a campaign bids on is your choice in Microsoft Advertising, under the campaign's **Settings → Conversions → Choose conversion goals for this campaign** ([Microsoft's steps](https://help.ads.microsoft.com/apex/index/3/en/60138)): for example a goal on `pm_order_profit` to bid on profit ([POAS bidding](/docs/bidding/poas/shopify-microsoft-ads)), on `pm_new_customer` to give new customers higher priority ([New customer bidding](/docs/bidding/new-customers/shopify-microsoft-ads)), on `pm_returning_customer` to give repeat buyers higher priority ([Returning customer bidding](/docs/bidding/returning-customers/shopify-microsoft-ads)), or on `pm_revenue_ltv` to bid on lifetime value ([LTV bidding](/docs/bidding/ltv/shopify-microsoft-ads)).

**You should see:** the goals in Microsoft Advertising, recording conversions after your next paid orders.

### 4. Create the customer lists

In the same panel, the **Customer lists** section appears once the UET tag is saved: select **Sign in with Microsoft** (or **Sign in with Google**), choose your **Ad account**, select **Link account**, tick **I accept the Microsoft Advertising Customer Match terms** and select **Create 6 customer lists**. The steps per store: [Customer lists](#customer-lists).

**You should see:** each list **Created**, with its **Search size** and **Audience Network size**.

### 5. Check delivery

Open **Tracking → Microsoft Advertising Conversions API**.

**You should see:** **Conversions API token** read **Accepted by Microsoft Advertising**, **Sending** read **On**, and delivery counts under **Delivery**. An error shows Microsoft's reason.

## Features on Microsoft Ads

| Feature                                                                          | On Microsoft Ads | How                                                                                                                        |
| -------------------------------------------------------------------------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [Server-side tracking](/docs/tracking/server-side/shopify-microsoft-ads)              | Yes              | `purchase`, `add_to_cart` and `begin_checkout` through the UET Conversions API                                             |
| Customer data for matching                                                       | Yes              | Hashed email, phone and customer ID, plus the Microsoft click ID, IP address and user agent                                |
| ROAS                                                                             | Yes              | `purchase` carries revenue; also `pm_order_revenue`                                                                        |
| [POAS bidding](/docs/bidding/poas/shopify-microsoft-ads)                              | Yes              | A Custom event goal on `pm_order_profit`, chosen as the campaign's conversion goal                                         |
| [LTV bidding](/docs/bidding/ltv/shopify-microsoft-ads)                                | Yes              | A Custom event goal on `pm_revenue_ltv` or `pm_profit_ltv`, chosen as the campaign's conversion goal                       |
| [New customer bidding](/docs/bidding/new-customers/shopify-microsoft-ads)             | Yes              | A Custom event goal on `pm_new_customer` or `pm_new_customer_profit`, chosen as the campaign's conversion goal             |
| [Returning customer bidding](/docs/bidding/returning-customers/shopify-microsoft-ads) | Yes              | A Custom event goal on `pm_returning_customer` or `pm_returning_customer_profit`, chosen as the campaign's conversion goal |
| [Customer lists](/docs/tracking/customer-lists/shopify-microsoft-ads)                 | Yes              | Six customer lists, matched on hashed email                                                                                |

## What Microsoft Ads receives

**Standard events**, one per action:

| Store action     | Event action     | Value                                                                                  |
| ---------------- | ---------------- | -------------------------------------------------------------------------------------- |
| Paid order       | `purchase`       | Order revenue: products and shipping, minus refunds known at the time. Never negative. |
| Add to cart      | `add_to_cart`    | The value your storefront reports, when it has one                                     |
| Checkout started | `begin_checkout` | The value your storefront reports, when it has one                                     |

Each event lists its products: product ID, quantity and price per unit. A paid order also carries the order's transaction ID.

**Custom events**, one per value, each with its own value:

| Conversion                 | Event action                   |
| -------------------------- | ------------------------------ |
| New customer revenue       | `pm_new_customer`              |
| New customer profit        | `pm_new_customer_profit`       |
| Returning customer revenue | `pm_returning_customer`        |
| Returning customer profit  | `pm_returning_customer_profit` |
| Order revenue              | `pm_order_revenue`             |
| Order profit               | `pm_order_profit`              |
| Revenue LTV                | `pm_revenue_ltv`               |
| Profit LTV                 | `pm_profit_ltv`                |

* **Profit** needs a complete contribution margin, so activate your costs under **Tracking → Profit tracking**. A loss-making order is sent with value 0.
* **New and returning customer** events need the order classified as new or returning ([how](/docs/concepts/new-and-returning-customers)).
* **LTV** needs a recognised customer and sends what this order adds to the customer's lifetime value, so Microsoft's sum over a customer's orders is their lifetime value.

**Customer data.** With marketing consent, each event includes the shopper's hashed email (normalised the way Microsoft asks), phone number and your shop's customer ID (all SHA-256), plus IP address and user agent. With ad storage consent it also carries the **Microsoft click ID** (`msclkid`) and the UET visitor ID. Product Metrics sends only what the order already has.

**Consent.** An event is only sent with marketing consent (ad user data); the `pm_` events also need analytics. Each event tells Microsoft whether the shopper allowed ad storage. See [Consent](/docs/using/consent).



**For developers: click ID and visitor ID**

The SDK writes these only for a property with a Microsoft Advertising destination, and only with ad storage consent. When the UET tag has already set them, Product Metrics reads and keeps its values.

| Cookie        | Where it comes from                                                       | Kept     | Sent as       |
| ------------- | ------------------------------------------------------------------------- | -------- | ------------- |
| `_uetmsclkid` | The `msclkid` on the landing URL when a visitor lands from a Microsoft ad | 90 days  | `msclkid`     |
| `_uetvid`     | A random visitor ID, when the UET tag hasn't set one                      | 390 days | `anonymousId` |

## Customer lists

Product Metrics keeps the same six lists as in Google Ads and Meta (All customers, First-time buyers, Second-time buyers, Loyal, High-value and Lapsed customers) as **customer lists** in your Microsoft Advertising account ([Microsoft's Customer Match](https://about.ads.microsoft.com/en-gb/solutions/audience-targeting/customer-match)), and moves each customer between them after every paid order.

|                  | Microsoft Ads                                                                                  |
| ---------------- | ---------------------------------------------------------------------------------------------- |
| **Matched on**   | Hashed email only. A customer without an email address isn't added.                            |
| **Membership**   | 390 days                                                                                       |
| **Terms**        | Microsoft Advertising Customer Match terms, ticked in the app                                  |
| **Sign-in**      | **Sign in with Microsoft** or **Sign in with Google**, then **Link account**                   |
| **Good to know** | Microsoft Advertising uses a list once it has 300 members, and counts its size within 48 hours |

Existing customers are added too. A customer joins only with ad user data and ad personalisation consent; leaving never needs consent. A refund keeps the customer on the lists, and a privacy request that deletes their data removes them. Steps per store: [Shopify](/docs/tracking/customer-lists/shopify-microsoft-ads), [WooCommerce](/docs/tracking/customer-lists/woocommerce-microsoft-ads), [Magento](/docs/tracking/customer-lists/magento-microsoft-ads), [Lightspeed](/docs/tracking/customer-lists/lightspeed-microsoft-ads), [Shopware](/docs/tracking/customer-lists/shopware-microsoft-ads), [any website (Cloudflare)](/docs/tracking/customer-lists/cloudflare-microsoft-ads). How the lists work: [Customer lists](/docs/features/customer-list).

## Limits

* **7 days.** Product Metrics sends events up to 7 days old. An order paid more than a week after checkout isn't sent, and historical orders are not imported as conversions.
* **Refunds.** Later refunds and cancellations don't revise Microsoft Advertising events.
* **One identifier needed.** Microsoft takes an event only with at least one of hashed email, phone or customer ID, the click ID or the visitor ID. An event with none of them isn't sent.
* **Retries.** When Microsoft limits the rate or doesn't answer, Product Metrics retries the event on its own.

## Running the UET tag as well

You can keep the UET tag in the browser. Pass it the same event action and the same event ID as `event_id`, so Microsoft counts each event once.

* **purchase** uses the order transaction ID.
* **add_to_cart** and **begin_checkout** need your developer to pass the event ID Product Metrics returns to the UET call.



For developers: `ProductMetrics.addToCart()` and `ProductMetrics.beginCheckout()` return an `eventId`; pass it to the UET tag as `event_id`:

```js
const { eventId } = await ProductMetrics.addToCart({ items })
window.uetq.push('event', 'add_to_cart', { event_id: eventId })
```

## Per platform

Microsoft Ads works the same on every platform. The only differences are where consent and costs come from:

| Platform                                              | Difference for Microsoft Ads                                                                                                                                                                         | Guides                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **[Shopify](/docs/platforms/shopify)**                     | Choose **Shopify Customer Privacy** under **Configure consent**, unless your store uses another banner.                                                                                              | [Tracking](/docs/tracking/server-side/shopify-microsoft-ads) · [Customer lists](/docs/tracking/customer-lists/shopify-microsoft-ads) · [POAS bidding](/docs/bidding/poas/shopify-microsoft-ads) · [New customer bidding](/docs/bidding/new-customers/shopify-microsoft-ads) · [Returning customer bidding](/docs/bidding/returning-customers/shopify-microsoft-ads) · [LTV bidding](/docs/bidding/ltv/shopify-microsoft-ads)                         |
| **[WooCommerce](/docs/platforms/woocommerce)**             | No differences.                                                                                                                                                                                      | [Tracking](/docs/tracking/server-side/woocommerce-microsoft-ads) · [Customer lists](/docs/tracking/customer-lists/woocommerce-microsoft-ads) · [POAS bidding](/docs/bidding/poas/woocommerce-microsoft-ads) · [New customer bidding](/docs/bidding/new-customers/woocommerce-microsoft-ads) · [Returning customer bidding](/docs/bidding/returning-customers/woocommerce-microsoft-ads) · [LTV bidding](/docs/bidding/ltv/woocommerce-microsoft-ads) |
| **[Magento](/docs/platforms/magento)**                     | Magento's cookie restriction notice does not grant consent. Choose a supported banner, or have your developer pass the visitor's choices to Product Metrics; otherwise nothing is sent to Microsoft. | [Tracking](/docs/tracking/server-side/magento-microsoft-ads) · [Customer lists](/docs/tracking/customer-lists/magento-microsoft-ads) · [POAS bidding](/docs/bidding/poas/magento-microsoft-ads) · [New customer bidding](/docs/bidding/new-customers/magento-microsoft-ads) · [Returning customer bidding](/docs/bidding/returning-customers/magento-microsoft-ads) · [LTV bidding](/docs/bidding/ltv/magento-microsoft-ads)                         |
| **[Lightspeed](/docs/platforms/lightspeed)**               | No differences.                                                                                                                                                                                      | [Tracking](/docs/tracking/server-side/lightspeed-microsoft-ads) · [Customer lists](/docs/tracking/customer-lists/lightspeed-microsoft-ads) · [POAS bidding](/docs/bidding/poas/lightspeed-microsoft-ads) · [New customer bidding](/docs/bidding/new-customers/lightspeed-microsoft-ads) · [Returning customer bidding](/docs/bidding/returning-customers/lightspeed-microsoft-ads) · [LTV bidding](/docs/bidding/ltv/lightspeed-microsoft-ads)       |
| **[Shopware](/docs/platforms/shopware)**                   | No differences.                                                                                                                                                                                      | [Tracking](/docs/tracking/server-side/shopware-microsoft-ads) · [Customer lists](/docs/tracking/customer-lists/shopware-microsoft-ads) · [POAS bidding](/docs/bidding/poas/shopware-microsoft-ads) · [New customer bidding](/docs/bidding/new-customers/shopware-microsoft-ads) · [Returning customer bidding](/docs/bidding/returning-customers/shopware-microsoft-ads) · [LTV bidding](/docs/bidding/ltv/shopware-microsoft-ads)                   |
| **[Any website (Cloudflare)](/docs/platforms/cloudflare)** | Website orders carry no product costs, so profit uses your **Product cost fallback (%)**.                                                                                                            | [Tracking](/docs/tracking/server-side/cloudflare-microsoft-ads) · [Customer lists](/docs/tracking/customer-lists/cloudflare-microsoft-ads) · [POAS bidding](/docs/bidding/poas/cloudflare-microsoft-ads) · [New customer bidding](/docs/bidding/new-customers/cloudflare-microsoft-ads) · [Returning customer bidding](/docs/bidding/returning-customers/cloudflare-microsoft-ads) · [LTV bidding](/docs/bidding/ltv/cloudflare-microsoft-ads)       |

## Troubleshooting

| Problem                                                                       | Fix                                                                                                                                                                  |
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"Microsoft rejected this Conversions API token for that UET tag"**          | The token is wrong or no longer valid. Copy the token again from the UET tag (**Use Conversions API**), select **Edit** and paste it into **Conversions API token**. |
| **"This Conversions API token has no access to that UET tag"**                | The token belongs to another UET tag, or the UET tag ID is wrong. Copy the token from the same UET tag.                                                              |
| **"Set up tracking for this store before connecting Microsoft Advertising."** | The property has no tracked store yet. Connect your store first: [choose your platform](/docs/platforms/overview).                                                        |
| **"The shopper did not consent to marketing, so the event was not sent"**     | Expected for shoppers who declined marketing cookies. If it happens for every event, check that **Configure consent** names the banner your store actually shows.    |
| **"The event was more than 7 days old, so it was not sent."**                 | The order was paid more than a week after checkout. Nothing to fix.                                                                                                  |
| **Events are delivered, but no conversions show in Microsoft Advertising**    | Microsoft counts an event only once a conversion goal matches it. Create a **Custom event** goal on the same UET tag with **Action** equal to the event action.      |
| **A profit event never arrives**                                              | Profit is only sent once the order has a complete contribution margin. Activate your costs under **Tracking → Profit tracking**, then place another test order.      |
| **A customer list problem**                                                   | See [Troubleshooting customer lists](/docs/tracking/customer-lists/shopify-microsoft-ads#troubleshooting).                                                                |

## FAQ

### Can I bid on profit in Microsoft Ads?

Yes, like in Google Ads and Meta. Create a Custom event conversion goal on `pm_order_profit` with a value that may vary, and choose it as the goal your campaign bids on. Profit is sent once the order has a complete contribution margin. Steps per platform: [POAS bidding on Shopify in Microsoft Ads](/docs/bidding/poas/shopify-microsoft-ads).

### Are new customers sent to Microsoft Ads?

Yes: `pm_new_customer` and `pm_new_customer_profit` for new customers and `pm_returning_customer` and `pm_returning_customer_profit` for returning ones, beside revenue, profit and lifetime value. You choose which goal a campaign bids on: [New customer bidding on Shopify in Microsoft Ads](/docs/bidding/new-customers/shopify-microsoft-ads) and [Returning customer bidding on Shopify in Microsoft Ads](/docs/bidding/returning-customers/shopify-microsoft-ads).

### Can I bid on lifetime value (LTV) in Microsoft Ads?

Yes. Create a Custom event conversion goal on `pm_revenue_ltv` or `pm_profit_ltv` and choose it for the campaign. Each carries what the order adds to the customer's lifetime value: [LTV bidding on Shopify in Microsoft Ads](/docs/bidding/ltv/shopify-microsoft-ads).

### Do I need to remove the UET tag from my store?

No. Microsoft counts an event once when the UET tag and Product Metrics send the same event action and event ID, and `purchase` uses the order transaction ID.

### Does Microsoft Ads get customer lists?

Yes. Product Metrics keeps six customer lists in your Microsoft Advertising account, matched on hashed email, and updates them after every paid order.

## Where next



* [Server-side tracking on Shopify for Microsoft Ads](/docs/tracking/server-side/shopify-microsoft-ads): the step-by-step guide for one store
* [Customer lists from Shopify in Microsoft Ads](/docs/tracking/customer-lists/shopify-microsoft-ads): six customer lists, updated after every paid order
* [POAS bidding on Shopify in Microsoft Ads](/docs/bidding/poas/shopify-microsoft-ads): bid on profit with `pm_order_profit`
* [ChatGPT Ads](/docs/channels/openai): the same pipeline, through the OpenAI Conversions API
* [Google Ads](/docs/channels/google-ads): send the same orders as eight conversion actions
* [Consent](/docs/concepts/consent): what each consent choice lets through

On the website: [Full Signal Tracking](https://www.productmetrics.io/server-side-tracking), [POAS](https://www.productmetrics.io/glossary/poas), [pricing](https://www.productmetrics.io/pricing)
