if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41554",
"name": "Fuel EXe 8 XT",
"price": "5499.98",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41476",
"name": "Fuel EXe 5",
"price": "4499.98",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41550",
"name": "Fuel EXe 8 GX AXS T-Type",
"price": "5999.98",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}