if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "47141",
"name": "Domane+ SLR 7",
"price": "13999.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "grey",
"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": "36717",
"name": "Domane+ SLR 7",
"price": "13999.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36699",
"name": "Domane+ SLR 6 Pro",
"price": "6999.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}