Adobe Target Recommendation Activity: The Most Viewed Products from Across the Site Algo | Community
Skip to main content
Level 2
October 7, 2024
Solved

Adobe Target Recommendation Activity: The Most Viewed Products from Across the Site Algo

  • October 7, 2024
  • 1 reply
  • 3397 views

Hello,

 

I am using the following algorithm to display the most viewed products ro teh customer as recommendations. However, I could not get any recommendations, so I am wondring what went wrong. For the contex, I am using the following JS code to push every viewed product to the mbox, but when I want to fetch recommendations, I got nothing. Any thought? Does the algo requires more time before generating the recommendations. 

 

 

### JS Code ###

 adobe.target.getOffer({
                "mbox": "target-global-mbox",
                "params": {
                    "entity.id": product.Key
                },
                "success": function(offer) {
                    const recommendation = offer[0].content;
                    console.log("Result: " + recommendation);
   
                    // Store the recommendation in localStorage
                    localStorage.setItem('recommendation', recommendation);
                },
                "error": function(status, error) {
                    console.log('Error', status, error);
                }
                });
            }
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 kandersen-1

yeah i removed the user based i got download option and the csv files shows nothing if possible can you please find the image attached and help regarding this

 


If you checked shortly after making the change, then that's the reason why it is empty. It takes a while for the criteria to populate. You can see timings here: https://experienceleague.adobe.com/en/docs/target/using/recommendations/recommendations-faq/recommendations-faq#how-long-does-it-take-for-a-change-to-the-configuration-of-my-recommendations-activity-offer-promotions-or-criteria-settings-to-be-reflected-on-my-site

 

And on the Activity overview page it will also say 'results ready' under the criteria. See my screendump in this reply: https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/adobe-target-recommendation-activity-the-most-viewed-products/m-p/708844/highlight/true#M11493 

1 reply

kandersen-1
Community Advisor
Community Advisor
October 7, 2024

Hi @soufianela 

 

Heres the things i would look into when validating things are correct configured:

 

1. confirm products are collected correctly, if you search for the products in the product catalogue are they then showing up as expected?

 

 

 

 

 

 

 

2. has the criteria feed generated, on the overview page for the activity look for the status below the criteria. Does it say results ready? If needed you can also click the 3 dot menu and download the data. This is a CSV file showing what products to recommend within each environment. Does it have products listed under the correct environment?

3. debug using mboxtrace, last but not least confirm what is being returned by Target on the page: https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/using-mboxtrace-to-debug-recommendations/m-p/356670 

I hope this helps!

Level 2
October 7, 2024

Hi @kandersen-1 

 

The catalogue contains the correct products. Moreover, I downloaded the data as you showed me, and it seems there are some recommendations were generated. 

 

What would be wrong?

sriharshanaladala98
Level 2
October 23, 2024

And you're still not seeing any data in the file?

I see you're running on localhost. Have you generated product views, so that Recommendation has behaviour it can base the criteria on? Otherwise it will stay empty.


i have 43 products in my feed and i have created a collection with them almost 2 to 3 weeks back