if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "46146",
"name": "Top Fuel 9.9 XX AXS Gen 4",
"price": "18499.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "46145",
"name": "Top Fuel 9.9 X0 AXS Gen 4",
"price": "15499.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41576",
"name": "Fuel EX 9.9 X0 AXS T-Type Gen 6",
"price": "15999.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41658",
"name": "Fuel EXe 9.9 XX AXS T-Type",
"price": "12999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}