if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35066",
"name": "Marlin 6 Gen 2",
"price": "949.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "749.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "29759",
"name": "Marlin 4 Gen 2",
"price": "799.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "649.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenvisibility_teal",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}