Skip to main content
Solved

Does person.ViewedItems not work any longer?

  • September 9, 2024
  • 2 replies
  • 29 views

Forum|alt.badge.img+2
  • Problem Solver I
  • 12 replies

I’m trying to use the profile {{ person.ViewedItems }} and have tested with a profile that I know has viewed product events within the last hour (see my screenshot). When I send a test email however, there is nothing retrieved. Does this profile variable no longer work? I tried similarly with the RecentlyViewed product feed and it seems to present me with products as I would expect. Is there something that I would be missing here? I also tried for testing purposes to just pull out a simple field from the data as follows {{ person.ViewedItems.0.Title }} which also did not work.

For my use cases it is necessary that I can manipulate the recently viewed items in a programmatic way with template tags so the product feed doesn’t work for me.

 

Best answer by annasophiefc

Hi @obviyo 

 

Thank you for posting in the community.

The feauture can be replaced by a dynamic product feed in which you set it to “Products a customer has recently viewed”

Then it will automatically change from customer to customer and show fallbacks if the subscriber has only viewed one or two items.

 

I hope this helps :-)

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

annasophiefc
Partner - Platinum
Forum|alt.badge.img+22
  • 2025 Champion
  • 100 replies
  • Answer
  • September 11, 2024

Hi @obviyo 

 

Thank you for posting in the community.

The feauture can be replaced by a dynamic product feed in which you set it to “Products a customer has recently viewed”

Then it will automatically change from customer to customer and show fallbacks if the subscriber has only viewed one or two items.

 

I hope this helps :-)


Forum|alt.badge.img+2
  • Author
  • Problem Solver I
  • 12 replies
  • September 11, 2024

Right, 

I’m aware of the dynamic product feed but I want to use the customer profile variables as part of my integration in creating dynamic templates programmatically. Unfortunately I can’t programmatically create templates with dynamic product feed blocks in them at the moment but was hoping that this customer profile variable (ViewedItems) was still available.

 

Thanks