if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35022",
"name": "Émonda SLR 6 AXS",
"price": "12999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35487",
"name": "Émonda SLR 7",
"price": "12499.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}