Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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);
                }
                });
            }
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/recommen...

 

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-... 

View solution in original post

15 Replies

Avatar

Community Advisor

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?
Screenshot 2024-10-07 at 14.46.29.png

 

 

 

 

 

 

 

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?

Screenshot 2024-10-07 at 14.52.08.png

Screenshot 2024-10-07 at 14.47.51.png

Screenshot 2024-10-07 at 14.49.51.png

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-rec... 

I hope this helps!

Avatar

Level 2

Hi @kandersen 

 

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?

Avatar

Community Advisor

@SoufianeLa next step would be to run TargetTrace and see what Target is doing on the page where you're expecting to see the recommendations. There's a video guide here: https://experienceleague.adobe.com/en/docs/target-learn/tutorials/troubleshooting/troubleshoot-with-...  In the video he is walking through the old chrome debugger, but concept is the same in the new one. 

Here's a step by step guide and details for use with Recommendation: https://experienceleague.adobe.com/en/docs/target/using/activities/troubleshoot-activities/content-t...

"Using mboxTrace on recommendations pages: Adding mboxTrace as a query parameter on pages with recommendations replaces the Recommendations design on the page with an mboxTrace details window, which displays in-depth information about your recommendations, including:

  • Recommendations returned vs. recommendations requested
  • The key used, and if it is generating recommendations
  • Criteria-generated recommendations vs. backup recommendations
  • Criteria configuration
  • Exclusions and inclusions applied
  • Collection rules

You do not need to include =console=json, or =window in the query parameter. When you are done with the mboxTrace details, add =disable and press Enter to return to the normal display mode.

The normal functioning and appearance of your site is not affected by mboxTrace. Visitors see your regular Recommendations design."

 

 

Let me know how it goes and if you run into any problems.

Avatar

Community Advisor

Hey @SoufianeLa 

Are you making any progress with the TargetTrace debugging?

Avatar

Level 2

I tried to download the data but there it showing

CSV download is not available for User-Based Recommendations.
 
 
 

Avatar

Community Advisor

Hi @sriharshanaladala98 , 

You can only download it for Criterias that a not based on the individual user. So for the criteria, 'Recommended for you' you won't be able to download anything.

Avatar

Level 2

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

 

Avatar

Correct answer by
Community Advisor

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/recommen...

 

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-... 

Avatar

Community Advisor

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.

Avatar

Level 2

no i dint know that can you please help in creating that actually iam newbie iam strugguling with recommendations. I even gone through documentation even now iam going through them to get understand what are the thing to needed to be in line to genarate recommendations

Avatar

Community Advisor

Can you create a new question thread, so we don't hijack this one. Create a new thread and tag me in it and I'll try and guide you.

Avatar

Level 2

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