if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "13658",
"name": "Trek Madone 9 Aero IsoSpeed Cover Set",
"price": "55.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "white_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "26589",
"name": "Trek Madone SLR IsoSpeed Seat Tube Cover",
"price": "55.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34772",
"name": "Trek ProCaliber IsoSpeed Bearing Spacer",
"price": "13.99",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}