---
title: "Associate an event or failure action with an item"
slug: "associate-an-event-or-failure-action-with-an-item"
abstract: "You can associate events and failure actions with items in the Content Editor."
---
# Associate an event or failure action with an item

Events track user activity on a website. Failure actions are a type of event that prevent a visitor from completing an action or achieving a goal.

You can associate events and failure actions with items, such as landing pages, registration forms, error pages, or search fields. Tracking events and failure actions help build up a more complete picture of a visitor’s behavior as they navigate your website.

You can also associate multiple items with events or failure actions using the search function in the Content Editor.

To assign an event to a content item:

1. In the **Content Editor**, expand the content tree and navigate to the item that you want to associate an event with.
2. On the **Analyze** tab, in the **Attributes** group, click **Attributes.** This opens the **Attributes** dialog box.
3. In the **Attributes** dialog box:
    - To associate an item with an event, click the **Events** tab. Select the event that you want to associate with the item.

        ![06DCD22DC5494EABB265B027BC6BE15B.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/100/sitecore-experience-platform/images/06DCD22DC5494EABB265B027BC6BE15B.png)

    - To associate the item with a failure action, click the **Failure Actions** tab. Select the event that you want to associate with the item.

        ![4E5697A7A0B6419A83F907C3ED4358ED.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/100/sitecore-experience-platform/images/4E5697A7A0B6419A83F907C3ED4358ED.png)

4. Click OK to save your changes and close the **Attributes** dialog box.

<details>
<summary><h2>Associate an event or failure action with multiple items</h2></summary>

To assign a custom profile value to multiple items:

1. In the **Content Editor**, select an item or item bucket.
2. In the search field enter \* to return all items in the item bucket.
3. Click the drop-down arrow to the left of the search field and select **Search Operations**.

    ![10593026B1D943DFBF0241F242031132.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/100/sitecore-experience-platform/images/10593026B1D943DFBF0241F242031132.png)

4. In **Search Operations**, click **Apply Campaign Events.**

    ![FB4A6C326EC24766A3A2B63FFBAED9BF.png](https://doc.sitecore.com/api/markdown-image/xp/en/users/100/sitecore-experience-platform/images/FB4A6C326EC24766A3A2B63FFBAED9BF.png)

5. In the **Attributes** dialog box, select either the event or the failure action that you want to associate with the items.
6. To associate the event with these items, click **OK**.

</details>