Need help in creating a DataElement
I'm trying to create a dataelement that will read an object called "transactionProds", and its properties. in my site code this is what i have:
var transactionProds = {
"sku": "SM-T280NZKAXAC",
"name": "Galaxy Tab A (7.0)",
"category": "",
"price": "199.99",
"quantity": "1",
"discount": "0.0"
};
digitalData.ecommerce.transactionProducts.transactionProds;
var transactionProds = {
"sku": "SM-G955WZKAXAC",
"name": "Galaxy S8+",
"category": "",
"price": "959.99",
"quantity": "1",
"discount": "0.0"
};
digitalData.ecommerce.transactionProducts.push(transactionProds);
it could be a single product or multiple products. how do get the dataelement to read the multiple objects and its properties. I have tried this - where i used digitalData.ecommerce.transactionProducts in the path - but the result is: [object%20Object]

