Microsoft Ads conversion tracking (UET Conversions API) and customer lists
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 and ChatGPT Ads, and setup is the same on every store platform.
A UET tag ID and its Conversions API token from Microsoft Advertising.
Tracking → Microsoft Advertising Conversions API → Connect Microsoft Advertising
Purchases, add to carts and checkouts, plus pm_ custom events and six customer lists.
Set it up with AI
Connect your assistant
First time? Add the Product Metrics MCP server to your assistant, then paste the prompt below.
In Claude, choose Add custom connector; in ChatGPT, Settings → Apps & Connectors. Paste this URL:
https://www.productmetrics.io/mcpClaude Code: run this in your terminal.
claude mcp add --transport http product-metrics https://www.productmetrics.io/mcpSetting it up with AI takes one prompt and 60 seconds: paste it into your assistant.
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.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.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).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: editor or admin access in Product Metrics (Team).
- Your store connected (pick your 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). 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.
Open Tracking
Go to Integrations → Tracking. Under Destinations, select Microsoft Advertising Conversions API.
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.
Send a test event
Under Verify, select Send test event. Microsoft Advertising has no test mode, so the check records no conversion.
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). 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, 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: for example a goal on pm_order_profit to bid on profit, or on pm_new_customer to give new customers higher priority.
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.
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 | 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 | Yes | A Custom event goal on pm_order_profit |
| LTV bidding | Yes | A Custom event goal on pm_revenue_ltv or pm_profit_ltv |
| New customer bidding | Yes | A Custom event goal on pm_new_customer or pm_new_customer_profit |
| Returning customer bidding | Yes | A Custom event goal on pm_returning_customer or pm_returning_customer_profit |
| Customer lists | 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).
- 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.
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), 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, WooCommerce, Magento, Lightspeed, Shopware, any website (Cloudflare). How the lists work: Customer lists.
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.
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 | Choose Shopify Customer Privacy under Configure consent, unless your store uses another banner. | Tracking · Customer lists |
| WooCommerce | No differences. | Tracking · Customer lists |
| 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 · Customer lists |
| Lightspeed | No differences. | Tracking · Customer lists |
| Shopware | No differences. | Tracking · Customer lists |
| Any website (Cloudflare) | Website orders carry no product costs, so profit uses your Product cost fallback (%). | Tracking · Customer lists |
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. |
| “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. |
FAQ
Can I bid on profit in Microsoft Ads?
Yes. 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.
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.
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
The step-by-step guide for one store.
Six customer lists, updated after every paid order.
The same pipeline, through the OpenAI Conversions API.
Send the same orders as eight conversion actions.
What each consent choice lets through.
On the website: Full Signal Tracking, POAS, pricing