if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "23041",
"name": "Electra Townie Alloy Rear Rack",
"price": "165.0",
"brand": "Electra",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12673",
"name": "Electra Cruiser 26" Rear Rack",
"price": "165.0",
"brand": "Electra",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "12633",
"name": "Electra Townie Original 26" Fender Set",
"price": "139.0",
"brand": "Electra",
"category": "Bike fenders & accessories",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "12639",
"name": "Electra Ergo Long Grip",
"price": "78.67",
"brand": "Electra",
"category": "Bike handlebar grips & tape",
"variant": "brown",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "12710",
"name": "Electra Leather Handlebar Streamers",
"price": "25.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "12640",
"name": "Electra Finger Groove Grips",
"price": "14.0",
"brand": "Electra",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}