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
  • 3327 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!

Test forum signature
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?

kandersen-1
Community Advisor
Community Advisor
October 7, 2024

@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-target-traces  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-trouble

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

Test forum signature