if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "29759",
"name": "Marlin 4 Gen 2",
"price": "799.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33491",
"name": "Roscoe 24",
"price": "769.99",
"brand": "Trek",
"category": "Kids' mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "749.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenvisibility_teal",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24503",
"name": "Procaliber SL Frameset",
"price": "3711.5",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}