if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41661",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "6499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36998",
"name": "Powerfly FS 4 Gen 3",
"price": "4749.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32759",
"name": "Powerfly FS 4 Gen 2",
"price": "3299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37043",
"name": "Powerfly 4 Gen 4",
"price": "2499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}