Send array of objects to google data layer

Job ID: 34214794

Budget: €8 – €30 EUR

I have a script that sends a push to google data layer on page load.
I have several products on a page and i need for each product to be sent to and array with independent objects, beeing each object a product on the page. All the code is almost done, the infos are beeing sent the problem is that all the products are going to the same object and not creating new objects, i need a quick fix on that push array.
Related categories: JavaScript Google Tag Management