> ## Documentation Index
> Fetch the complete documentation index at: https://9e63279-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://9e63279-productmetrics.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://9e63279-productmetrics.manicule.dev/docs/api/mcp.
> Every agent surface: https://9e63279-productmetrics.manicule.dev/docs/.well-known/llms-manifest.json

# Shopware returning customer bidding in Meta (/docs/bidding/returning-customers/shopware-meta)

<!-- agent-signals: reading_time_min: 8 · est_tokens: 3265 · updated: 2026-11-17 -->
Related: [Shopify returning customer bidding in Google Ads](/docs/bidding/returning-customers/shopify-google-ads.md), [WooCommerce returning customer bidding in Google Ads](/docs/bidding/returning-customers/woocommerce-google-ads.md), [Magento returning customer bidding in Google Ads](/docs/bidding/returning-customers/magento-google-ads.md), [Lightspeed returning customer bidding in Google Ads](/docs/bidding/returning-customers/lightspeed-google-ads.md), [Shopware returning customer bidding in Google Ads](/docs/bidding/returning-customers/shopware-google-ads.md), [Returning customer bidding in Google Ads on any website with Cloudflare](/docs/bidding/returning-customers/cloudflare-google-ads.md)

> Send repeat orders from Shopware to Meta as PMReturningCustomer through the Meta Conversions API with Advanced Matching, and optimise a campaign on a custom conversion.

Each paid Shopware 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](/docs/tracking/enhanced-conversions/shopware-meta), so Meta can match it to the person who clicked.



* **Store:** [Shopware](/docs/platforms/shopware). The plugin, with one sales channel paired by a token.
* **Channel:** [Meta](/docs/channels/meta). Your pixel ID and a Conversions API access token.
* **Result:** Meta optimises on repeat orders through a custom conversion on `PMReturningCustomer`.

## Prerequisites

* **Your Shopware sales channel connected**: Shopware 6.7 (this plugin build supports 6.7.14.0) with PHP 8.2+, an administrator who can upload extensions, Shopware's scheduled tasks and message workers running, and the channel's public HTTPS address under **Sales Channels → your channel → Domains**. You pair one sales channel with a one-time token; it reads **Active** before you link your property. See [Shopware](/docs/platforms/shopware).
* **For the profit event**, your additional costs must be active and the order's costs complete.

## In the app

### 1. Connect Shopware and Meta

Install the Product Metrics plugin and pair one sales channel with a one-time token ([Shopware](/docs/platforms/shopware)). 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](/docs/channels/meta)).

Connect your store, step by step:



1. **Open Ecommerce platforms.** Go to **Integrations → Ecommerce platforms** and select **Connect** on **Shopware 6**.

   ![Ecommerce platforms under Integrations, listing the supported store platforms with a Connect button on Shopware 6.](/docs/_assets/b9dd8ce181beb76f3d219f10f87e3a54557d5a0b598ac58719538c290eb0d83c)

2. **Start the setup.** The Shopware 6 page lists three steps: connect your store, install and pair the extension, and link a property. Select **Connect Shopware 6**.

   ![The Shopware 6 page under Integrations → Ecommerce platforms: 0 of 3 steps done, step 1 Connect your store with the Connect Shopware 6 button, then Install and pair the extension and Link a property.](/docs/_assets/1d2e336872369d71a3fbe9a627af58d0d0b96f8cf852036761b74a7cd33e0ef4)

3. **Enter your shop URL.** Enter the **Shopware 6 store URL** (your storefront's HTTPS address) and select **Create connection**. Check the hostname under **Confirm Shopware 6 hostname** and copy the one-time pairing token.

   ![The Connect Shopware 6 dialog: an empty Shopware 6 store URL field and the Cancel and Create connection buttons.](/docs/_assets/ed4eca2cb9a6025bf76a12160d04e478e1d7ca8f4b2888c70149f2e58a583b8a)

4. **Install the plugin.** Select **Setup guide** for how to install the Product Metrics plugin in Shopware, pair it with the token and choose the sales channel.

   ![The Shopware 6 setup guide panel in Product Metrics: Download Word document, Before you begin (Shopware administration access, workspace access and a property, the sales channel's public HTTPS URL, running scheduled tasks and message workers), then setup steps 1 Create the Shopware connection and 2 Confirm the hostname and copy the token.](/docs/_assets/933688cce7a95acf180ea7f0bfefe3b1e8988ccf03a05bca024291927c72d04b)

Then add the Meta destination:



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

2. **Open the Meta panel.** The panel lists the events Product Metrics sends and what you need: a **Pixel or Dataset ID** and a Conversions API access token from Events Manager. Select **Connect Meta**.

   ![The Meta Conversions API panel, Not configured: Product Metrics sends AddToCart, InitiateCheckout and Purchase from the server to your Meta pixel, with hashed customer data when the shopper consented to marketing, plus revenue, profit, new and returning customer, and LTV events, which also need analytics consent. You need a Pixel or Dataset ID and a Conversions API access token from Events Manager. A Connect Meta button.](/docs/_assets/588444f715d3715f2be502402cee6218f721840965f4655380f205de3a834a9f)

3. **Add the Meta destination.** Choose the store, enter the **Pixel or Dataset ID** and the **Access token**, and optionally a **Test event code**. Keep **Send events to Meta** on and select **Add destination**.

   ![The Add Meta destination dialog for the example store Northwind Outfitters: empty Pixel or Dataset ID, Access token and Test event code (optional) fields, each with where to find it in Events Manager, the Send events to Meta switch on, and the Cancel and Add destination buttons.](/docs/_assets/a946724528c7a47f16adc5a3c1fd5e75b1f9b498c20142415a3e07e2cf4f656e)

   *Example data.*

4. **Create custom conversions in Meta.** In Events Manager, create a custom conversion for each Product Metrics event you want to measure, using the event names listed in the panel.

   ![The Set up custom conversions in Meta section of the Meta Conversions API panel: the steps in Events Manager, then a table of each conversion and its event: New customer revenue PMNewCustomer, New customer profit PMNewCustomerProfit, Returning customer revenue PMReturningCustomer, Returning customer profit PMReturningCustomerProfit and Order revenue PMOrderRevenue.](/docs/_assets/8d13436ae8d16e27fcb8fb31e6e842bead9c4d5d6afdb6dcd0b921af7e846079)

**You should see:** in Product Metrics, the store reads **Active** after **Verify connection**; Meta accepted the test event.

### 2. Check how Shopware decides returning customers

Product Metrics looks for an earlier paid order from the same customer **in the same sales channel**: by customer account, or by guest email. If it finds one, the customer is **returning**. If not, they are **new**.

* **Per sales channel.** One installation tracks one sales channel, and history is read within it. A customer who bought through another sales channel is new in this one.
* **Guests are matched by email.** A guest who orders twice with the same email is returning on the second order.
* **Paid only.** An order is sent once Shopware marks it paid, and only earlier paid orders count.

Check a few recent orders before you bid on them. Ask your assistant: "Were my last 20 Shopware 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.

1. Choose **Custom conversions → Create custom conversion** and select your pixel.
2. Choose the event **`PMReturningCustomer`** (or **`PMReturningCustomerProfit`** to optimise on profit).
3. Add the event parameter rule **`pm_purpose` equals `CUSTOMER_RETURNING`** (or `CUSTOMER_RETURNING_PROFIT`).
4. Choose **Purchase** as the category. Use the event's value and currency; leave the fixed conversion value unset.



> **Warning:** 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 the banner you chose under **Choose your consent banner**.

Through the same sales channel, place a second paid order with the same customer account or guest email. 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

1. **Classification.** The order check from step 2 shows your test order as returning. Shopware syncs orders within a few minutes.
2. **Event.** In Events Manager, **`PMReturningCustomer`** arrives with `pm_purpose` = `CUSTOMER_RETURNING` and `customer_type` = `RETURNING`.
3. **Custom conversion.** It shows activity after the next repeat order.
4. **Delivery.** **Tracking → Meta Conversions API** says **Meta destination saved**, and **Sending** reads **On** without "Test mode".

## Set it up with AI



Paste the prompt 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:** "Set up returning customer bidding for my Shopware 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."

**Claude Code or Codex:** "Set up returning customer bidding for my Shopware 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."

## How it works on Shopware

|                                  | On Shopware                                                                                             |
| -------------------------------- | ------------------------------------------------------------------------------------------------------- |
| **Where the history comes from** | Same sales channel, account or guest email                                                              |
| **Sent for**                     | Every paid order after the first                                                                        |
| **Meta event (`pm_purpose`)**    | `PMReturningCustomer` (`CUSTOMER_RETURNING`), `PMReturningCustomerProfit` (`CUSTOMER_RETURNING_PROFIT`) |
| **Value**                        | The order's revenue, or its profit; a loss is sent as 0                                                 |
| **Refunds**                      | Later refunds don't change the event                                                                    |
| **Past orders**                  | Not imported; Meta rejects events older than 7 days                                                     |

## Troubleshooting

| Problem                                       | Fix                                                                                                                                                |
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **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

### Does a customer of another sales channel count as returning?

No. One installation tracks one sales channel and history is read within it.

### Are Shopware guest repeat orders sent to Meta?

Yes. Guests are matched by email, so a second order with the same 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 the banner you chose under **Choose your consent banner**.

### What does PMReturningCustomerProfit send for a loss?

0. A repeat order that makes a loss is sent with a profit of 0.

## Where next



* [Returning customer bidding](/docs/features/returning-customer-bidding): the feature on every platform and channel
* [Returning customer bidding on Shopware in Google Ads](/docs/bidding/returning-customers/shopware-google-ads): the same feature on the other channel
* [New customer bidding on Shopware in Meta](/docs/bidding/new-customers/shopware-meta): the other side of the split
* [Shopware](/docs/platforms/shopware): set-up and troubleshooting
* [Meta](/docs/channels/meta): set-up and troubleshooting
* [New and returning customers](/docs/concepts/new-and-returning-customers): how a customer is recognised
* [Conversion values](/docs/concepts/conversion-values): what each conversion carries

On the website: [repeat purchase rate](https://www.productmetrics.io/glossary/repeat-purchase-rate), [LTV-adjusted ROAS](https://www.productmetrics.io/glossary/ltv-adjusted-roas), [Product Metrics for Shopware](https://www.productmetrics.io/platforms/shopware)

Developers: do the same with the [CLI](/docs/cli/commands#destinations) or the [API](/docs/api/destinations/set-meta).
