if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "37095",
"name": "Trek Quantum Women's Fitness Bike Shorts",
"price": "129.99",
"brand": "Trek",
"category": "Women's fitness & commuter apparel",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "21729",
"name": "Bontrager Adorn Women's Mountain Shoe",
"price": "49.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "grey_teal",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}