if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "41587",
"name": "Domane AL 2 Gen 4",
"price": "1799.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33082",
"name": "Domane AL 3 Gen 3",
"price": "2199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33083",
"name": "Domane AL 2 Gen 3",
"price": "1799.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}