if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "12787",
"name": "Electra Townie Lee-Chi HV-126 Brake Caliper",
"price": "31.99",
"brand": "Electra",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36181",
"name": "Electra Brake Rotor Spacer",
"price": "5.5",
"brand": "Electra",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "28507",
"name": "Electra Coaster Brake Arm Clamps",
"price": "3.99",
"brand": "Electra",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}