> 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/resources/archived-pages/the-tracking-api-and-js-library/what-to-track/custom-actions.md).

# Custom Actions

Apart from the generic actions enabled by default, mentioned in [Generic actions](/product-discovery/resources/archived-pages/the-tracking-api-and-js-library/what-to-track/generic-actions.md), you can also send custom actions. In order to be able to send custom actions, they need to be set up. To do this, you need to contact Attraqt.

Once you have a custom action set up, you can send an event like any other. Make sure to include any information you need.

```javascript
const customAction = {
    "action":"add-to-wishlist",
    "target": {
        "product": "85292348"
    },
    "sourceId":"8efbbef2-6640-4c16-b263-1f5a84813a1c",
    "metadata": {
        "quantity": 1
    }
}

xo.activity.send(customAction);
```
