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": "36140",
"name": "Domane+ AL 5",
"price": "2999.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36100",
"name": "Émonda ALR 5",
"price": "2999.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33082",
"name": "Domane AL 3 Gen 3",
"price": "2199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "1999.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "white_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "33083",
"name": "Domane AL 2 Gen 3",
"price": "1799.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}