if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "40742",
"name": "Shimano PD-RS500 SPD-SL Pedal Set",
"price": "80.0",
"brand": "Shimano",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40741",
"name": "Shimano PD-ED500 SPD Pedal Set",
"price": "65.0",
"brand": "Shimano",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "00126",
"name": "Mirrycle Mirror",
"price": "22.0",
"brand": "Mirrycle",
"category": "Bike mirrors",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "22844",
"name": "Take-A-Look Cycling Mirror Compact",
"price": "21.95",
"brand": "Take-A-Look",
"category": "Bike mirrors",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}