Hi Team,
I am trying to access the values of ${user.endpoint.lastViewedEntity} but it is returning as blank.
The statement that I have used in the Design is :
#set ($offerids = "\${user.endpoint.lastViewedEntity}")
but $offerids is coming as blank.
The help doc advise to use in this manner but it is not driving me any results.
Any advise on this would be really helpful.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
@ambikaTewari_ATCI worked for me, I just used recently viewed criteria. below is the design block i used.
#set ($offerids = "\${user.endpoint.lastViewedEntity}")
<h1>First: $offerids </h1>
<h2> second: $entity1.id </h2>
mboxtrace output screenshot, h1 contains the code
Share your implementation details to understand the gap.
@ambikaTewari_ATCI : Few things to verify what's happening
1) implemented entity parameters like these based on page types https://experienceleague.adobe.com/docs/target/using/recommendations/entities/entity-attributes.html... then move to next.
2) In the same link you have below snippet, add and check to confirm that new visitor or returning visitor.
user.isFirstSession": "\${user.isFirstSession}
3) if new visitor or returning visitor and have not visited any of the page where entity parameters are not passed then you wont get this value.
4) Use mboxtrace for at.js and AEP debugger with edge transactions to verify that this valued get in initialized as soon as you visit the pages where entity details are passed to target.
Let me know if you need further assistance on this.
Views
Replies
Total Likes
Hi @nnakirikanti Thank you for your prompt reply.
1. Yes we have implemented entity.id param on our products pages
2. When I use
user.isFirstSession": "\${user.isFirstSession}
, it comes as false
3. When I user mboTrace I could see values under user.endpoint.lastViewedEntity
user.endpoint.lastViewedEntity: {,…}
Views
Replies
Total Likes
@ambikaTewari_ATCI worked for me, I just used recently viewed criteria. below is the design block i used.
#set ($offerids = "\${user.endpoint.lastViewedEntity}")
<h1>First: $offerids </h1>
<h2> second: $entity1.id </h2>
mboxtrace output screenshot, h1 contains the code
Share your implementation details to understand the gap.
Views
Likes
Replies