Hi,
I am implementing a GTM dataLayer in a theme following these instructions. However, part of the requirements from my client are to add the products displayed in the “Recently viewed products” and “Related products” sections to the view_items_list event.
For context, this event is usually fired in the collection page and it uses the collection object to get the info about the products on the page. Is it possible to fire this event in dynamically added sections and how would I be able to get the products’ information, like id, variant, price, type etc?
Thanks in advance for your help!
Rossella