if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35648",
"name": "Top Fuel C Gen 3 Frameset",
"price": "3799.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35683",
"name": "Slash C Gen 5 Frameset",
"price": "3719.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33359",
"name": "Fuel EX C Gen 5 Frameset",
"price": "3719.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30484",
"name": "Fuel EX C Gen 5 Frameset",
"price": "3299.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}