Hello Chaps,
I'm new to Magento2 and am trying to to build a robust dataLayer. I have tried a few google tag manager extensions/modules which provided a basic dataLayer and dived into the code in order to figure out the process. Things are now a little clearer but I have one problem for which I cannot find a solid answer. On my product listing pages (category pages and search pages) I would like to add all onscreen products to my dataLayer. Is there a preferred method for doing this?