Skip to main content

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.

 

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 :-)


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


Reply