WooCommerce returning customer bidding in Meta
Send repeat orders from WooCommerce to Meta as PMReturningCustomer through the Meta Conversions API with Advanced Matching, and optimise a campaign on a custom conversion.
Each paid WooCommerce order reaches Product Metrics, which checks the customer’s history and, for every repeat order (not once per customer), sends the custom events PMReturningCustomer (the order’s revenue) and PMReturningCustomerProfit (its profit) to your pixel through the Meta Conversions API. Meta can only optimise on a custom event through a custom conversion, which you create once. Each event carries hashed customer data for Advanced Matching, so Meta can match it to the person who clicked.
Prerequisites
- Your WooCommerce store connected: a WordPress administrator login, WordPress 6.4+ and PHP 8.1+ with WP-Cron running, and the shop at the root of an HTTPS domain (no subfolder, no custom port). You install the Product Metrics plugin, connect it with a one-time setup token, choose your paid order statuses and link the store to your property. See WooCommerce.
- For the profit event, your additional costs must be active and the order’s costs complete.
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/mcpPaste the prompt into your assistant.
Set up returning customer bidding for my WooCommerce store in Meta with Product Metrics. Check my setup status first, walk me through each open step, and give me the link when I need to click something.Set up returning customer bidding for my WooCommerce store in Meta with Product Metrics. Check my setup status first, walk me through each open step, and give me the link when I need to click something.Set up returning customer bidding for my WooCommerce store in Meta with Product Metrics. 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), and tell me when a step needs me in a browser.Set up returning customer bidding for my WooCommerce store in Meta with Product Metrics. 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), and tell me when a step needs me in a browser.In the app
1. Connect WooCommerce and Meta
Install the Product Metrics plugin, paste the one-time token and choose your paid statuses (WooCommerce). Then add your Pixel or Dataset ID and a Conversions API access token under Tracking → Meta Conversions API → Connect Meta and send a test event (Meta).
You should see: the plugin says Store connected successfully. and Webhooks: 2 of 2 active; Meta accepted the test event.
2. Check how WooCommerce decides returning customers
Product Metrics looks for an earlier paid order from the same customer in WooCommerce: by customer account, or by billing email for guest orders. If it finds one, the customer is returning. If not, they are new.
- Paid means the statuses you chose. Only orders in the statuses selected under Paid order statuses (usually Processing and Completed) are sent, and only those count as earlier orders.
- Guests are matched by billing email. A guest who orders twice with the same billing email is returning on the second order.
- Unpaid, failed and cancelled orders don’t count, as long as you left those statuses unselected.
Check a few recent orders before you bid on them. Ask your assistant: “Were my last 20 WooCommerce orders from new or returning customers?”
You should see: whether the order counts as new, returning or unknown.
3. Create the custom conversion
This step happens in Meta Events Manager.
- Choose Custom conversions → Create custom conversion and select your pixel.
- Choose the event
PMReturningCustomer(orPMReturningCustomerProfitto optimise on profit). - Add the event parameter rule
pm_purposeequalsCUSTOMER_RETURNING(orCUSTOMER_RETURNING_PROFIT). - Choose Purchase as the category. Use the event’s value and currency; leave the fixed conversion value unset.
Meta lists an event only after it has received it once. Custom events need marketing and analytics consent, so place a test order with both accepted in OneTrust, Cookiebot, Usercentrics or Osano (clear any full-page cache after changing it).
Place a second order with the same customer account or billing email, and pay so it reaches one of your paid statuses. Use a test event code to see it under Test events, then remove the code.
You should see: the custom conversion is listed under Custom conversions in Events Manager.
4. Optimise your campaign on it
In your retention campaign, choose the returning customer custom conversion as the conversion event and optimise on its value. Meta then gives buyers who look like your repeat customers higher priority.
You should see: the ad set’s conversion event is your returning customer custom conversion.
5. Check it works
- Classification. The order check from step 2 shows your test order as returning. With Verify with next paid order on, the plugin’s Live order delivery reads Verified once the order arrives.
- Event. In Events Manager,
PMReturningCustomerarrives withpm_purpose=CUSTOMER_RETURNINGandcustomer_type=RETURNING. - Custom conversion. It shows activity after the next repeat order.
- Delivery. Tracking → Meta Conversions API says Meta destination saved, and Sending reads On without “Test mode”.
Troubleshooting
Orders count as neither new nor returning
Product Metrics could not tell from the order history (step 2). Those orders still go to Meta as revenue and profit, just not as new or returning.
FAQ
Is a WooCommerce guest’s repeat order sent to Meta?
Yes. Guests are matched by billing email, so a second order with the same billing email is sent as PMReturningCustomer.
Why can’t I select PMReturningCustomer in Events Manager yet?
Meta lists PMReturningCustomer only after it has received it once, and custom events need marketing and analytics consent. Place a test order with both accepted in OneTrust, Cookiebot, Usercentrics or Osano, and clear any full-page cache after changing it.
Are past WooCommerce orders sent to Meta?
No. Meta rejects events older than 7 days, so Product Metrics sends orders from the moment tracking is live.
What does PMReturningCustomerProfit send for a loss?
- A repeat order that makes a loss is sent with a profit of 0.
Where next
- Returning customer bidding: the feature on every platform and channel.
- Returning customer bidding on WooCommerce in Google Ads: the same feature on the other channel.
- New customer bidding on WooCommerce in Meta: the other side of the split.
- WooCommerce and Meta: set-up and troubleshooting.
- New and returning customers and Conversion values
- On the website: repeat purchase rate, LTV-adjusted ROAS, Product Metrics for WooCommerce