Target recommendations only displays the first recommendation

Avatar

Avatar
Validate 1
Level 1
CallMeRob
Level 1

Likes

4 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
CallMeRob
Level 1

Likes

4 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
CallMeRob
Level 1

06-03-2019

As an organization, we are trying to use Adobe Target Premium for recommendations. This is my first time building a recommendation, so I am trying to build a prototype. The issue I am having is only the first recommendation ($entity1.name) properly displays information.   The design is coded to display 3 recommendations (entities). I am new to Recommendations, so my troubleshooting knowledge is limited.

I have created:

  • A sample feed with 14 products (CSV Feed). I confirmed it processed correctly.
  • Multiple sample criterias. I have enabled backup recommendations. No exclusions.
  • A 3 entity design, along with the Target sample designs.   I hardcoded the design, such as $entity1.name, $entity2.name, $entity3.name. It's not part of a function/loop.

While building the activity, the "preview" properly displays information on all 3 entities, however, when activated to production or using QA links only the the first recommendation displays information. The other 2 recommendations are blank.

I have tried testing different criterias and designs, but only the first recommendation displays. I am not sure what I am missing or what is left to troubleshoot.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
Level 7
Eric_Vidana
Level 7

Likes

157 likes

Total Posts

151 posts

Correct reply

37 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Contributor
Level 7
Eric_Vidana
Level 7

Likes

157 likes

Total Posts

151 posts

Correct reply

37 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back 25
View profile
Eric_Vidana
Level 7

06-03-2019

Not sure if super helpful but here is a go-to design for me to debug if data is coming through a particular criteria.

{

    "recommendations": [

        #set($start = 0)

        #set($end = 9)

        #set($range = [$start..$end])

       

        #foreach($i in $range)

            #if ($entities[$i].id)

                {

                    "id": "$entities[$i].id",

                    "title": "$entities[$i].name"

                }

                #if ($i < $end)

                ,

                #end

            #end

        #end

    ]

}

If you feel like the criteria is to blame, then you can set up an activity with front/back promotions that can be hard coded entities.

It is also worth passing a debug token (Setup -> Implementation -> Debugger Tools) on the url of the request. You will see it run through all the steps of the recommendation engine.

Answers (2)

Answers (2)

Avatar

Avatar
Coach
Employee
mikewebguy
Employee

Likes

635 likes

Total Posts

402 posts

Correct reply

85 solutions
Top badges earned
Coach
Contributor
Shape 25
Shape 1
Shape 10
View profile

Avatar
Coach
Employee
mikewebguy
Employee

Likes

635 likes

Total Posts

402 posts

Correct reply

85 solutions
Top badges earned
Coach
Contributor
Shape 25
Shape 1
Shape 10
View profile
mikewebguy
Employee

07-03-2019

Thank you for sharing!

Avatar

Avatar
Validate 1
Level 1
CallMeRob
Level 1

Likes

4 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
CallMeRob
Level 1

Likes

4 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
CallMeRob
Level 1

07-03-2019

Thanks Eric for sharing the template and advice.  I didn't know about the debugger tools. I will definitely keep the template for future testing.