Exclude rules for slots
Exclude rules for slots
In the Recommendations manager of the Coveo Merchandising Hub (CMH), merchandisers can define exclude filter rules to hide specific products from being displayed in recommendation slots.
exclude rules can also be scheduled for a specific time, letting merchandisers plan and execute strategies effectively.
Use case examples
Exclude filter rules can be used to address a variety of use cases. Here are a few examples:
-
You want to ensure that out-of-stock products aren’t displayed in recommendation slots. For example, you can create a rule to exclude products where the
ec_in_stockattribute value isfalse. -
You want to ensure that products with certain undesirable attributes aren’t shown in a recommendation slot. For example, you can create a rule to exclude products where the
ec_categoryattribute value isPadlocks.
Prerequisites
Before you create rules in the Coveo Merchandising Hub (CMH):
-
In the Coveo Administration Console, map the metadata that you want to use as attributes in rules to the corresponding fields. These fields must have the Facet or Multi-value facet option enabled. For example, to use the
colormetadata as an attribute in a rule, map it to a field with the Facet or Multi-value facet option enabled. -
Choose the correct property to ensure that your changes affect the intended slots.
Create exclude rules
To create exclude rules
-
In the CMH, access the Recommendations manager.
-
From the navigation tabs, select filter rules and then click Create filter rule.
-
Under This rule will apply to, define the scope of the rule.
-
Under Choose an action, select exclude.
-
Under Attribute, select the attribute on which you want to apply the exclude rule. For example, to exclude products based on their brand, select
ec_brand. -
Under Operator, select the operator that you want to use.
-
Under Value, select one or more attribute values that you want to use to filter products. For example, to exclude products based on the
ec_brandattribute, enter the brand value that you want to use as a filter, such as Barca Sports.For a recommendation slot using a seeded strategy, you can select the Use "Same as product…" option to use a dynamic value. For example, on a PDP, you can create an exclude rule that uses the
ec_brandattribute and the Use "Same as product…" option to exclude products from the same brand as the product being viewed. When a visitor views aBarca Sportsproduct, the recommendation slot will exclude otherBarca Sportsproducts. -
(Optional) To add more attribute-value pairs to the exclude rule, click Add attribute and repeat the process.
-
For a recommendation slot using a seeded strategy, under Choose when to apply, select whether you want the rule to apply in any situation, or only if specific conditions are met.
-
Click Next: Review and publish.
-
Review your rule configuration.
Leading practicesUse the panel on the right to preview how the rule affects the products in the recommendation slot for a given locale.
If you’re previewing a rule for a recommendation slot using a seeded strategy, you must choose the products for which you want to simulate recommendations to see the effect of the rule.
The preview is an approximate simulation that won’t cover every scenario encountered in a live environment.
-
Click Next: Publish.
-
Under Rule name, enter a meaningful name for your rule.
-
Under Choose when to publish, select one of the following:
-
To apply the rule immediately, select Publish now.
-
To set a schedule for the rule, select Set a schedule, and then select the time frame in which the rule should apply.
-
-
Click Publish now.
The rule now applies or will apply as scheduled.
Modify exclude rules
To modify exclude rules
-
In the CMH, access the Recommendations manager.
-
From the navigation tabs, select filter rules.
-
Locate the rule that you want to modify.
-
Click
, and then click Modify.
-
You can modify the rule’s scope (Locale, Audiences, or slot) or its configuration by clicking Edit on the relevant card. These are the same settings covered in the rule creation section.
The Audience option is currently in early access. Contact your Customer Success Manager (CSM) to enable this option.
-
When you’ve finished editing the rule, or to modify its publishing settings, click Next: Publish.
-
Update the publishing settings, if applicable, and then click Publish now.
The modified rule now applies, or will apply as scheduled.
Delete exclude rules
To delete exclude rules
-
In the CMH, access the Recommendations manager.
-
From the navigation tabs, select filter rules.
-
Locate the rule that you want to delete.
-
Click
, and then click Delete.
-
Click Delete again to confirm.
The rule is deleted.