Expand my Community achievements bar.

SOLVED

Add Entity to Adobe Recommendation JSON

Avatar

Community Advisor

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

Avatar

Correct answer by
Employee Advisor

Hi @Luca_Lattarini

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

Avatar

Correct answer by
Employee Advisor

Hi @Luca_Lattarini

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.

Avatar

Community Advisor

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

 

 

 

Avatar

Employee Advisor

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>

 

Avatar

Community Advisor

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

 

Avatar

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

Avatar

Community Advisor

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