if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35193",
"name": "Fuel EX 9.8 GX AXS Gen 5",
"price": "4799.93",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33073",
"name": "Fuel EX 5 Gen 5",
"price": "2199.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_orangelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40626",
"name": "Fuel EX C Frameset",
"price": "3899.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33359",
"name": "Fuel EX C Gen 5 Frameset",
"price": "3719.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "30484",
"name": "Fuel EX C Gen 5 Frameset",
"price": "3299.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "33066",
"name": "Fuel EX AL Gen 5 Frameset",
"price": "2319.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}