> For the complete documentation index, see [llms.txt](https://fredhopper.gitbook.io/product-discovery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fredhopper.gitbook.io/product-discovery/tracking-and-sending-events/activities/remove-from-cart.md).

# Remove from Cart

Track remove-from-cart actions to gain insights into user hesitations. Send a separate event for each product removed, excluding quantity adjustments.

{% hint style="info" %}
This section is relevant for **FHR** customers only.
{% endhint %}

**Remove from cart** actions can offer valuable insights into potential obstacles or hesitations a user may encounter during their purchase journey. Although typically restricted to a cart viewing page, this action may be performed in a range of contexts.

Whenever a user removes a product from a cart (or basket) you should send a **remove-from-cart** event.

{% hint style="warning" %}
Send a **remove-from-cart** event **only** when a product is **completely removed**, not when its quantity is reduced. Any discrepancies are covered by the **purchase** event.
{% endhint %}

{% hint style="warning" %}
You should send a new **remove-from-cart** event for each distinct product, even if they are removed from cart as part of the same action.
{% endhint %}

## Properties

```json
{
    "action":"remove-from-cart",
    "target": {
        "product":"product-id"
    },
    "metadata": {}
}
```

| Property         | Context | Description                                                                                                                                                                                                                                         |
| ---------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `action`         | All     | Must be specified as "remove-from-cart"                                                                                                                                                                                                             |
| `target.product` | All     | The ID of the product that was removed from cart; must be identical with the product ID used in FHR, i.e. `secondID` [in the FHR response query](/product-discovery/tracking-and-sending-events/activities/activity-object.md#fhr-response-mapping) |
| `metadata.*`     | All     | Additional information, such as **locale**                                                                                                                                                                                                          |

{% hint style="info" %}
You do **not** need to include a **source ID** for this event.
{% endhint %}

<details>

<summary>Example: Remove from cart</summary>

```json
{
    "action":"remove-from-cart",
    "target": {
        "product":"83647582"
    },
}
```

</details>
