if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35116",
"name": "Roscoe 7",
"price": "1699.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35117",
"name": "Roscoe 8",
"price": "1999.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37478",
"name": "Powerfly 4 Gen 4",
"price": "5999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35118",
"name": "Roscoe 9",
"price": "3899.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "tan_greendark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}