if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "41663",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "9999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37264",
"name": "Rail 9.9 XX1 AXS Gen 4",
"price": "12999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35432",
"name": "Rail 9 Gen 2",
"price": "10999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37137",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "8499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}