Custom Actions

Apart from the generic actions enabled by default, mentioned in Generic actions, 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.

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

xo.activity.send(customAction);

Last updated