Exclude already recommended products | Community
Skip to main content
ambikaTewari_ATCI
Community Advisor
Community Advisor
June 21, 2023
Solved

Exclude already recommended products

  • June 21, 2023
  • 1 reply
  • 921 views

Hi Team,

 

We have two recommendations activity A and B running on same page and both use same Popularity Based Algorithm > Top Sellers across the website

 

A activity uses the collection C1

B activity uses the collection which is subset of C2

 

Current State : Both activities are showing sometime the same products since collection is not mutually exclusive and criteria algo is same. 

Is there we can customize the design?

entities.size() returns 99 entities. May be first entities.size() could be used in Activity A or next entities.size() could be used in activity B.

 

Any help on this would be great.

 

Thank you.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JacobTo1

Hi @ambikatewari_atci 

As far as I'm aware each recommendations activity has no visibility of other activities on the same page.
For example - using getOffers() to fetch 2 recommendations activities on the same page (your A and B activities)

The only way I can think of to meet your requirement is to fetch the first activity (A) and then pass the entity id's returned as dynamic exclusions when fetching the second recommendations activity (B) using the "excludedIds=1,2,3,4,5" mbox parameter.
This way you will force Target to exclude any items from activity A to be excluded from activity B.

https://experienceleague.adobe.com/docs/target/using/recommendations/recommendations-faq/recommendations-faq.html?lang=en#exclude 

1 reply

JacobTo1Accepted solution
Level 4
June 26, 2023

Hi @ambikatewari_atci 

As far as I'm aware each recommendations activity has no visibility of other activities on the same page.
For example - using getOffers() to fetch 2 recommendations activities on the same page (your A and B activities)

The only way I can think of to meet your requirement is to fetch the first activity (A) and then pass the entity id's returned as dynamic exclusions when fetching the second recommendations activity (B) using the "excludedIds=1,2,3,4,5" mbox parameter.
This way you will force Target to exclude any items from activity A to be excluded from activity B.

https://experienceleague.adobe.com/docs/target/using/recommendations/recommendations-faq/recommendations-faq.html?lang=en#exclude