> For the complete documentation index, see [llms.txt](https://help.openloyalty.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.openloyalty.io/playbook/sample-setups/sample-product-analytics/finding-products-that-lose-money-on-points.md).

# #1 Finding products that lose money on points

Use Product Analytics to find products whose margin turns negative once the cost of points is subtracted, then lower the reward for those products only.

{% hint style="info" %}

### Business case

A bestseller can look healthy in a sales report and still lose money once you count the points it earns. Because the points cost isn't shown next to the product's margin, the loss usually goes unnoticed until someone reviews a spreadsheet months later.

Product Analytics shows each product's **loyalty cost** next to its margin, and the **margin after loyalty** tells you which products still make money once the loyalty program is paid for. When you find one that loses money, you can lower its reward and leave the rest of the catalog alone.

**💡 Useful for** protecting margin on low-margin bestsellers (electronics, groceries, promotional items) without cutting rewards across the whole program.
{% endhint %}

### 🧩 Worked example

Your program gives **10 points per $1 spent**, and one point costs your business **$0.01**, so every sale carries a 10% loyalty cost.

| Wireless headphones (SKU `HP-100`) | Per item sold |
| ---------------------------------- | ------------- |
| Price                              | $100          |
| Product cost (unit cost)           | $92           |
| **Gross margin**                   | **$8** (8%)   |
| Points earned: 100 × 10            | 1,000 points  |
| **Loyalty cost**: 1,000 × $0.01    | **$10**       |
| **Margin after loyalty**           | **−$2**       |

Every pair of headphones sold through the loyalty program loses $2. The more popular the product, the larger the loss.

The fix is to reward these headphones with fewer points. With **5 points per $1**, the loyalty cost drops to $5 and the margin after loyalty becomes **+$3**. Every other product still earns 10 points per $1.

{% hint style="info" %}
**How many points can a product afford?** Divide the product's gross margin % by the cost of one point. For the headphones: 8% ÷ $0.01 = 8 points per $1 to break even. Choose a value below that to keep a profit.
{% endhint %}

***

### ✅ Before you start

Product Analytics needs three pieces of data. Without them, the margins are shown as unknown.

* A **product catalog** imported with each product's category, brand and `unit_cost`. See [Importing Your Catalog](https://help.openloyalty.io/integrations-and-data-exchange/product-catalog/importing-your-catalog).
* A **cost per unit** on the points wallet, which is what one point costs your business. See [Cost per unit](https://help.openloyalty.io/members-and-activity/wallets/wallet-types-and-configuration#cost-per-unit).
* Campaign effects in **Standard** mode, so that points are attributed to the products they were earned on. Whole-receipt rewards are spread across every product on the receipt. See [Targets in effects](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/creating-campaigns/transaction-item-filters#in-effects).

Your role also needs the **Product catalog** and **Home** (view) permissions.

***

### 🛠️ Step by step

{% stepper %}
{% step %}

### Step 1: Open the Products list

Go to **Modules › Product catalog** and open the **Products** tab. Set the filters:

* **Date range:** a period long enough to show a trend, for example the last 90 days.
* **Wallet:** your points wallet.

<figure><img src="https://3202191049-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYxbcM03fnO79kn9uY8G%2Fuploads%2Fgit-blob-396d8baefa8f246bfcea3e64718e3d9c40d3c170%2Fplaybook-product-analytics-products-tab.png?alt=media" alt="Product catalog analytics, Products tab: SKUs with revenue, gross margin, loyalty cost and margin after loyalty"><figcaption></figcaption></figure>

*👉 Learn more:* [Product Analytics](https://help.openloyalty.io/integrations-and-data-exchange/product-catalog/product-analytics)
{% endstep %}

{% step %}

### Step 2: Find the products that lose money

Compare the **Gross margin** and **Margin after loyalty** columns. Look for:

* a **negative Margin after loyalty**: the product loses money on every loyalty sale;
* a large gap between the two columns: the points take most of the product's margin.

To narrow the list, filter by **Categories** or **Brands**. Click a product to open its details. **Top tiers**, **Top segments** and **Top channels** show where the loyalty cost comes from, for example a tier with a points multiplier.

In our example, the headphones (`HP-100`) show a margin after loyalty of −2%.

{% hint style="warning" %}
An empty margin means some sales lack a product cost or some points lack a cost per unit. Fill in the missing data before acting on that product.
{% endhint %}
{% endstep %}

{% step %}

### Step 3: Add a lower-reward rule for the product

Open the campaign that awards the points (for example, your "10 points per $1" campaign) and go to the **Rules & Effects** step. Add a new rule for the headphones:

* **Targets:** click **+ Add target**, then **Add attribute** › SKU, **Condition:** In, value `HP-100`. **Target name:** Headphones HP-100.
* **Effect:** Add units to the points wallet in **Standard** mode:
  * **Applies to:** Headphones HP-100
  * **Calculate by:** By value
  * **Units:** 5

*👉 Learn more:* [Creating Campaigns](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/creating-campaigns) and [Transaction Item Filters](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/creating-campaigns/transaction-item-filters)
{% endstep %}

{% step %}

### Step 4: Make the new rule win

As soon as the campaign has two rules, the **Rule resolution** card appears next to them.

* Select **Priority wins**, so each product is rewarded only by the first matching rule.
* Move the headphones rule **above** the general rule with the **↑** button.

<figure><img src="https://3202191049-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYxbcM03fnO79kn9uY8G%2Fuploads%2Fgit-blob-4e281517d67695bc9d84daaefdf2176fb16391fa%2Fplaybook-product-analytics-rule-resolution.png?alt=media" alt="Rule resolution card with the Priority wins and Sum all options"><figcaption></figcaption></figure>

The headphones now earn 5 points per $1 from the first rule, and the general rule rewards every other product in the basket.

{% hint style="warning" %}
With **Sum all** (the default), the two rules add up and the headphones would earn 15 points per $1, which makes the problem worse.
{% endhint %}

*👉 Learn more:* [Rule Limits and Rule Resolution](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/rule-limits-and-rule-resolution)
{% endstep %}

{% step %}

### Step 5: Save and test

Save the campaign. Then go to **Campaigns › Direct**, click **Campaign simulator** and run a **Purchase** with the headphones and one other product in the **Basket**. The headphones should earn 5 points per $1 and the other product 10. The simulator also shows the loyalty cost of the basket.

*👉 Learn more:* [Campaign Simulation](https://help.openloyalty.io/campaigns/campaigns/campaign-simulation)
{% endstep %}

{% step %}

### Step 6: Check the result

Product Analytics is refreshed once a day, overnight. After a few weeks of sales, go back to the **Products** tab and check that the headphones' **Margin after loyalty** is positive.

The new reward applies to new purchases only. Past sales keep the points they earned.
{% endstep %}
{% endstepper %}

***

### 💡 Actionable tips

* Margins move with supplier prices and promotions, so review the **Products** tab every month and after each pricing change.
* To keep the headline reward, cap it with a per-rule limit, for example at most 5 rewarded pieces per member. See [Rule Limits and Rule Resolution](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/rule-limits-and-rule-resolution).
* Leave the cost per unit alone when a margin looks wrong. It should match what a point costs your business, and changing it recalculates all past reports.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.openloyalty.io/playbook/sample-setups/sample-product-analytics/finding-products-that-lose-money-on-points.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
