---
title: "Associate campaigns with an item using a rule"
slug: "associate-campaigns-with-an-item-using-a-rule"
abstract: "Trigger marketing campaigns based on rules that involve specific items."
---
# Associate campaigns with an item using a rule

You can associate [campaigns](https://doc.sitecore.com/xp/en/users/105/sitecore-experience-platform/create-and-edit-a-campaign-activity.html "Create and edit a campaign activity") with items using rules. A rule consists of a condition that, when met, triggers an action. For example, when a specific page or one of its descendant pages is visited, the content from one or more campaigns is shown.

The condition can also include tags that are assigned to items. For example, if a page with a specific tag is visited, it can trigger campaigns.

After defining a rule that triggers campaigns, you can define a new rule that personalizes the campaign content. For example, if a visitor keeps revisiting the same page, but you only want to display the campaign once, then you must [set up a personalization rule](https://doc.sitecore.com/xp/en/users/105/sitecore-experience-platform/walkthrough--personalizing-components.html "Walkthrough: Personalizing components") that hides the campaign content, or parts of it, when the page is revisited.

To associate campaigns with an item:

1. In the content tree, navigate to *sitecore/Content/System/Marketing Control Panel* and expand *Marketing Definition Mapping*.
2. Right-click **Rules** and click **Insert** > **Rule**.
3. In the dialog box, enter a name for the rule, for example, *Campaign rule*, and then click **OK**.
4. On the **Content** tab, in the **Data** section, click **Edit rule**.
5. In the **Create rule** dialog box:
    - Select the condition you want to use, for example, *where the item is the specific item or one of its ancestors*.
    - Select the *Apply campaigns: campaigns* action.

    ![Defining a rule that associates an item with campaigns](https://doc.sitecore.com/api/markdown-image/xp/en/users/105/sitecore-experience-platform/images/ce-campaign-define-rule-dialog.png)

    > [!note]
    > To select tags instead of items, in step 5, scroll down to Item Tags and select the *where the specific tag is assigned to the item* condition.

6. In the **Edit rule** section:
    - To select the item for the condition, click the *specific* link.
    - To select the campaign you want to trigger, click the *campaigns* link. You can select multiple campaigns.
    - Double-click the campaigns to move them to the **Selected** column.

    Now the item and campaigns are shown in the rule statement.

7. Save and publish the changes.