If brand information is passed in the feed, we can filter recommendations by brand. Filters can be applied so that recommendations only include a given brand or brands, or alternatively, so that they exclude a given brand or brands.
Care must be taken when adding filters. Because recommendations are returned from run-time representations of your catalog and not the entire catalog, over-filtering can prevent any recommendations from appearing. If you plan to add more than one type of filter on a page, please let your RichRelevance team know so they can help guide you.
How To Make This Code Work For You
Add the following lines of code to your page tags, adding the required information to them:
| ||Replace Brand Name with the name of the primary brand on the page. You can only call setPageBrand once, but if you want to add more brands you can do so with |
| ||Replace |
| ||Select either |
addFilterBrand() in the Primary Code Block.
Primary Code Block
includeBrandFilteredProducts parameters to filter by brand when you call recsForPlacements.