if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "33359",
"name": "Fuel EX C Gen 5 Frameset",
"price": "3719.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30484",
"name": "Fuel EX C Gen 5 Frameset",
"price": "3299.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33066",
"name": "Fuel EX AL Gen 5 Frameset",
"price": "2319.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33369",
"name": "Remedy 27.5 Al Frameset",
"price": "2319.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "yellow_red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "16705",
"name": "Fuel EX 27.5 Alloy Frameset",
"price": "599.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}