if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "12668",
"name": "Electra City Alloy Pedal Set",
"price": "19.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12667",
"name": "Electra Chopper Pedal Set",
"price": "19.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "29377",
"name": "Electra Grip Tape Pedal Set",
"price": "16.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44338",
"name": "Electra Barefoot EPB Pedal Set",
"price": "12.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "12669",
"name": "Electra Deluxe Block Pedal Set",
"price": "9.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "grey_black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}