Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Add Entity to Adobe Recommendation JSON

1982luca
Level 8
Level 8

Hello guys,

 

I am getting this answer from AT recommendation as Most Viewed Entity

 

"user.endpoint.mostViewedEntity": {
"value": "{\n \"ranksByEnvironment\" : {\n \"0\" : [ ],\n \"1702\" : [ {\n \"id\" : \"\",\n \"rank\" : -2\n }, {\n \"id\" : \"Product A \",\n \"rank\" : 65\n } ]\n }\n}",
"modifiedAt": "2021-06-10T02:26:25.653-04:00"
}

 

How can I use this value in the Design because it seems it is not in the possible attribute can be used? 

1982luca_0-1623412058261.jpeg

Yet, How can I add entity element to my JSON?

 

1 Accepted Solution
ryanr701
Correct answer by
Employee
Employee

Hi @1982luca

I'm not following your question. Can you clarify where the "answer" you are seeing is coming from. When you say how can I add entity element to my JSON, which element or attribute are you referring to? Any single-value attribute sent to Target for an entity can be used in a design.

Looking forward to your clarification to see if I can help better.

View solution in original post

6 Replies
ryanr701
Correct answer by
Employee
Employee

Hi @1982luca

I'm not following your question. Can you clarify where the "answer" you are seeing is coming from. When you say how can I add entity element to my JSON, which element or attribute are you referring to? Any single-value attribute sent to Target for an entity can be used in a design.

Looking forward to your clarification to see if I can help better.

View solution in original post

1982luca
Level 8
Level 8

Ok, My goal is to have an HTML recommendation answer with this information entity.id,entity.name and entity.message have been uploaded via Data Feed. My issue is I dont have this information in the answer from Adobe Target Recommendation. Currently I am using the  criteria below

 

1982luca_0-1623726185163.png

 

 

 

ryanr701
Employee
Employee

Got it. Thanks for clarifying. To change or update how the recommendations look that Target returns, you need to modify your Design. Which it looks like you were attempting from your earlier screen shot. Here's a simple HTML design you could use to get a single result from your criteria and display a thumbnail, name, id and message (updated via feed or otherwise):

<div>
  <a href="$entity1.pageUrl">
	<img src="$entity1.thumbnailUrl" />
	<br/><h3>$entity1.name</h3>
	<br/><p>$entity1.id</p>
	<br/><p>$entity1.message</p>
  </a>
</div>

 

1982luca
Level 8
Level 8

Yes I did but I still dont see HTML recommendation in my website. I am thinking, if I need to create mboxor using target-global-mbox?I mean the part below

1982luca_0-1623811272008.png

 

ryanr701
Employee
Employee
Yes, if you use the visual experience composer to setup the activity you need the target-global-mbox request to be made. Make sure the page load/auto created mbox is enabled and download your at.js after that is set.
1982luca
Level 8
Level 8

Hello ryanr701, i found the issue, I was using a criteria user based where i have no recommendations. After changing criteria I had no issue. BUT now after doing some tests I noticed that I have download data comes from Production instead of DEV. As showed below. How can I have data from DEV 1704?

 

1982luca_0-1624009761024.png