if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "40689",
"name": "Shimano Deore XT PD-M8100 SPD Pedal Set",
"price": "125.0",
"brand": "Shimano",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40688",
"name": "Shimano PD-M540 SPD Pedal Set",
"price": "85.0",
"brand": "Shimano",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40741",
"name": "Shimano PD-ED500 SPD Pedal Set",
"price": "60.0",
"brand": "Shimano",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37789",
"name": "TIME ATAC DH 4 Pedal Set",
"price": "53.0",
"brand": "TIME Sports",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37790",
"name": "TIME ATAC MX 6 Pedal Set",
"price": "47.5",
"brand": "TIME Sports",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37791",
"name": "TIME ATAC MX 4 Pedal Set",
"price": "42.0",
"brand": "TIME Sports",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37786",
"name": "TIME ATAC XC 4 Pedal Set",
"price": "39.5",
"brand": "TIME Sports",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "37792",
"name": "TIME ATAC MX 2 Pedal Set",
"price": "37.0",
"brand": "TIME Sports",
"category": "Bike pedals",
"variant": "grey",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "37785",
"name": "TIME ATAC XC 2 Pedal Set",
"price": "29.0",
"brand": "TIME Sports",
"category": "Bike pedals",
"variant": "grey",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}