Hi Nick,
You are exactly right! You can achieve this by passing in the entity.id of the #2 pencil to a profile parameter of your choosing, such as "profile.lastItemAddedToCart"
Example 1:
function targetPageParams() {
return {
"profile.lastItemAddedToCart": "[ENTITY-ID-FOR-THE-NUMBER-2-PENCIL]"}
}
Example 2 (with a sample entity.id of 1337-273 for your #2 pencil to show syntax)
function targetPageParams() {
return {
"profile.lastItemAddedToCart": "1337-273"}
}
These examples assume you are using Premium Recommendations implementation. If not, you can do the same by passing the profile.lastItemAddedToCart into an mboxCreate function
Then you can create a criteria using the following settings: "Based on" > "Custom Attribute" > Select Attribute > "profile.lastItemAddedToCart"
Note: in order to see the profile.lastItemAddedToCart appear in the dropdown, you will need to fire off a call to our servers and it will lazy load into the UI.